本文转载于:http://blog.csdn.net/zhangphil/article/details/44940339
完成这个效果的是使用了 IOS_Dialog_Library
下载地址:https://files.cnblogs.com/files/zzw1994/IOS_Dialog_Library.zip
或者:http://download.csdn.net/download/zhangphil/8573925
下载后导入到Eclipse中,然后作为Library引入到自己的工程中,直接作为第三方控件使用。
测试代码:
1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:layout_width="match_parent" 4 android:layout_height="match_parent" 5 android:orientation="vertical" > 6 7 <Button 8 android:id="@+id/btn1" 9 android:layout_width="match_parent" 10 android:layout_height="wrap_content" 11 android:text="消息" /> 12 13 <Button 14 android:id="@+id/btn2" 15 android:layout_width="match_parent" 16 android:layout_height="wrap_content" 17 android:text="图片" /> 18 19 <Button 20 android:id="@+id/btn3" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:text="列表" /> 24 25 <Button 26 android:id="@+id/btn4" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:text="退出" /> 30 31 <Button 32 android:id="@+id/btn5" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:text="错误提示" /> 36 37 </LinearLayout>