TableLayout的使用
来源:互联网 发布:男生打扮的软件 编辑:程序博客网 时间:2024/03/29 01:23
请参考: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的使用来制作表格
- RAID磁盘阵列的原理与搭建
- wannfly练习赛8 给个n,求1到n的所有数的约数个数的和
- python 爬虫 大众点评美食排名
- AAA
- equals和"=="的区别
- TableLayout的使用
- 前人挖坑,后人种树
- MySQL水平分割案例
- Collections排序BigDecimal
- Xshell显示图形化界面
- Docker入门实操
- python从FTP上传下载文件
- 故障分析模板
- 自行车轮组:基本几何与动力学