去掉TabLayout下的阴影,AppBarLayout下的阴影
来源:互联网 发布:数码宝贝 网络侦探图鉴 编辑:程序博客网 时间:2024/05/20 01:46
去掉TabLayout,AppBarLayout下的阴影
在使用TabLayout实现顶部黏贴效果时,会发现AppBarLayout下有阴影 ,如下效果:
开始还以为是TabLayout在高版本系统上的特殊表现呢,没有在意,后面在测试的时候,老是觉得别扭,后来在网上查了下,原来是在TabLayout放在AppBarLayout里面才有这样的效果,只需要对AppBarLayout设置一个属性:
app:elevation=”0dp”,
值得注意的是: 不是
android:elevation="0dp"
以下是全部代码
<android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content" app:elevation="0dp"> <android.support.design.widget.TabLayout android:id="@+id/tab" android:layout_width="match_parent" android:layout_height="wrap_content"> </android.support.design.widget.TabLayout></android.support.design.widget.AppBarLayout>
阅读全文
0 0
- 去掉TabLayout下的阴影,AppBarLayout下的阴影
- 去掉TabLayout下的阴影,AppBarLayout下的阴影
- 去掉桌面图标下的阴影
- 针对去掉ActivitionBar下的那条黑色的阴影
- android design 取消appbarlayout 默认的阴影
- android AppBarLayout 布局阴影去不掉的问题
- 去掉桌面图标文字的阴影
- 去掉actionbar上面的阴影
- 去掉导航栏的阴影
- 去掉actionbar顶部的阴影
- 去掉list系统的阴影
- 去掉Toolbar的阴影效果
- google阴影下的专业搜索引擎们
- ie6下png阴影问题的解决方案
- actionbar的下阴影线如何消除
- 模拟实时光照下的阴影
- safari浏览器下 input 表单的阴影
- 图片下的阴影 box-shadow
- 关于spring boot自动注入出现Consider defining a bean of type 'xxx' in your configuration问题解决方案
- leetcode 208. Implement Trie (Prefix Tree)
- 简单 12 步理解 Python 装饰器
- 以太网的最大和最小帧长是怎样计算的
- 解决emoji插入不到数据库的问题
- 去掉TabLayout下的阴影,AppBarLayout下的阴影
- Vuex requires a Promise polyfill in this browser
- 物联网团队成功交付必须要养成的习惯
- Spring一个类包含多个构造函数且带的参数相同所存在的注入类型问题
- Jenkins SVN自动构建
- echart 桑基图
- C语言进阶-第22~23讲:问题求解的一般过程&数据结构及算法概述
- Android学习笔记: Android动画特效
- Mac下kafka的环境搭建