关于FloatingActionButton
2015-12-09 15:03
288 查看
Support Library中简单的控件
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
android:src="@android:drawable/ic_dialog_email" />
悬浮在UI界面上的一个按钮,其作用相当于一个ImageButton,我们可以自己设置图标 ,设置setOnClickListenter监听事件。
CoordinatorLayout 实现了多种Material Design中提到的滚动效果。
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
android:src="@android:drawable/ic_dialog_email" />
悬浮在UI界面上的一个按钮,其作用相当于一个ImageButton,我们可以自己设置图标 ,设置setOnClickListenter监听事件。
CoordinatorLayout 实现了多种Material Design中提到的滚动效果。
相关文章推荐
- poj 3259(bellman最短路径)
- 在 NetBeans 中开发一般 Java 应用程序时配置 Allatori 进行代码混淆
- HttpClient 学习整理 (转)
- Office 365管理员指引 9 ——Lync 自定义会议邀请
- 【codechef】n个数,多少种取法的异或值==m【二项式定理】
- SVN过滤测试
- x86 function call and return --- stack save the return address.
- Spring 各jar包作用
- 计时器
- 1到1000的水仙花数
- OC-019.instancetype和id的异同点
- Fix 使用JMX读取Weblogic性能信息的时候报
- FSMC
- gzip:stdin:not in gzip format的解决办法
- nginx 【logformat】日志格式
- 解决Unity3D离线HTML文件打开缓慢问题
- asp.net关于post和get传值的问题
- css3学习笔记(二)
- 学习笔记代码,js 之构造函数
- MFC网络编程学习