CircleLayout实现圆环Android布局
jopen
11年前
CircleLayout实现圆环Android布局。
用法: <ru.biovamp.widget.CircleLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/white" app:angleOffset="90.0"> <!-- Add here any views you want --> </ru.biovamp.widget.CircleLayout>
<ru.biovamp.widget.CircleLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/white" app:angleOffset="90.0"> <!-- Add here any views you want --> </ru.biovamp.widget.CircleLayout>
To arrange views in nice looking pie provide this property:
app:layoutMode="pie"
In pie mode some additional options available:
sliceDivider - color of divider between slices of pieinnerCircle - color or drawable that will be drawn in center of pie
dividerWidth - width of divider between slices