自定義形狀的Android imageview組件:Shape Image View
提供一組自定義自定義形狀的Android imageview組件,和一個框架來定義更多形狀。 實現了包括基于shader 和 bitmap mask 的 image views。
- Shader based one uses canvas draw methods and Path class,
- Mask based one uses xfermode to draw image on bitmaps defined by android shape XML's or resource bitmaps.
有許多項目的在線執行這樣的部件,但是這個項目的目標之一是提供一種高性能的/平滑滾動圖像視圖組件框架來為imageviews定義不同的形狀。
<com.github.siyamed.shapeimageview.BubbleImageView android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/neo" app:siArrowPosition="right" app:siSquare="true"/>
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!