一.扇形菜单的实现:
借鉴了大神们的源码,那我们来看一下扇形菜单是怎么实现的:
效果图:
主界面布局:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background">
<!--
android:clipChildren的意思:是否限制子View在其范围内
android:clipToPadding就是说控件的绘制区域是否在padding里面的
-->
<RelativeLayout
android:id="@+id/buttons_wrapper_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:clipChildren="false"
android:clipToPadding="false" >
<ImageButton
android:id="@+id/button_photo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
an