TableLayout的使用
来源:互联网 发布:什么软件赚集分宝 编辑:程序博客网 时间:2024/04/27 10:56
请参考:http://www.jb51.net/article/120336.htm
http://www.jb51.net/article/120336.htm
使用tabLayout实现横向滑动菜单
1.添加依赖,,,,design.....添加依赖之后可能会报错
Attribute meta-data#android.support.VERSION@value value=(26.0.0-alpha1) from [com.android.support:appcompat-v7:26.0.0-alpha1] AndroidManifest.xml:27:9-38
is also present at [com.android.support:design:25.3.1] AndroidManifest.xml:27:9-31 value=(25.3.1).
2.上面报的错是因为版本号不一致....把当前应用中的build.grandle下面的版本号改成一致
3.xml文件中创建tabLayout布局,,,复制使用的相关的属性,,,并且把命名空间复制过来xmlns:app="http://schemas.android.com/apk/res-auto"
app:tabGravity="center" 设置居中对齐
app:tabIndicatorColor="@color/colorAccent" 下滑线的颜色
app:tabMode="scrollable" 设置tabLayoout菜单的模式,,,scrollable可以横向滚动
app:tabSelectedTextColor="@color/colorPrimaryDark" 选中的时候文字的颜色
app:tabTextColor="@color/colorPrimary" 文本默认的颜色
app:tabGravity="center"
app:tabIndicatorColor="@color/colorAccent"
app:tabMode="scrollable"
app:tabSelectedTextColor="@color/colorPrimaryDark"
app:tabTextColor="@color/colorPrimary"
使用自定义horizontalScrollView实现viewPager指示器
http://blog.csdn.net/u013835855/article/details/71159888
阅读全文
0 0
- TableLayout的使用
- TableLayout的简单使用
- TableLayout的使用
- Android TableLayout的使用
- TableLayout的使用
- TableLayout的使用
- TableLayout的使用
- tablelayout的使用
- TableLayout和TableRow的使用
- TableLayout表格简单的使用
- TableLayout和ViewPager的使用
- TableLayout的基本使用方式
- TableLayout的使用注意项
- tablelayout 使用
- 使用TableLayout
- 表格布局(TableLayout)的简单使用
- android表格布局TableLayout的使用
- TableLayout的使用来制作表格
- JavaScript~数组的复制
- 常用字符(串)处理函数
- 架构设计之高可用
- C#学习(1)——C#语言
- 什么叫以http形式传输?HTTP请求报文和HTTP响应报文(报文就是一串数据)
- TableLayout的使用
- Vue2.0实战
- 文件句柄数递增问题排查
- 《javascript语言精粹》——读书笔记
- 关于Sublime和HBuilder的less预编译配置
- 坦克
- mybatis的缓存机制
- C++ 智能指针简单实现
- kaggle冰山船只分类竞赛中遇到的Python列表推导式问题