自定义形状的Android imageview组件:Shape Image View

jopen 9年前

提供一组自定义自定义形状的Android imageview组件,和一个框架来定义更多形状。 实现了包括基于shaderbitmap 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定义不同的形状。
Android Bubble ImageView

<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"/>

项目主页:http://www.open-open.com/lib/view/home/1414488637700