解决Android布局周围出现半透明阴影的问题
来源:互联网 发布:cf自动准备源码 编辑:程序博客网 时间:2024/05/17 01:16
先放几张问题截图:
问题描述:
如图,今天在做项目时突然遇到了这个问题,很是费解,折腾了一个晚上,最终找到了原因,原因在于RelativeLayout 的问题,于是把下面的RelativeLayout替换成LinearLayout问题就解决了。但是具体原因还是不清楚,希望有知道的大神能解答一下,在下感激不尽。(ps:之前这段代码用RelativeLayout 还没出现这个问题,真是见了鬼了==)
原代码:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".ui.common.MainActivity"> <include android:id="@+id/main_appBarLayout" layout="@layout/common_toolbar" /> <LinearLayout android:id="@+id/main_tabs" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/bg_content_area" android:layout_below="@+id/main_appBarLayout" android:orientation="vertical" /> <com.ashokvarma.bottomnavigation.BottomNavigationBar android:id="@+id/main_bottom_nav_bar" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentBottom="true" /></RelativeLayout>
修改如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".ui.common.MainActivity" > ...省略代码</LinearLayout>
0 0
- 解决Android布局周围出现半透明阴影的问题
- android AppBarLayout 布局阴影去不掉的问题
- 我的电脑 布局出现问题 解决
- 解决SeekBar拖动过程中thumb周围产生的圆形阴影/白色圆圈
- 最近在研究的问题,如何实现下面的龙周围的白雾阴影。
- 解决Android 5.0以上Button自带阴影的问题
- Android Footer半透明布局
- div+css布局控制div定位浮动层在背景图片上的半透明阴影效果
- Android 解决布局问题
- css解决fixed布局不会出现滚动条的问题
- 在文字周围环绕一层阴影效果[android:shadow] 使用
- Android中使用canvas定制控件(控件周围阴影)
- android ImageView布局时出现警告的解决
- android ImageView布局时出现警告的解决
- C++:GDI+ 半透明的阴影效果
- 解决桌面图标有蓝色阴影的问题
- 解决画阴影卡的问题
- Android 出现多种问题的解决
- 重构自己
- 1078. Hashing
- 计划任务:不允许一个用户使用一个以上用户名与一个服务器或共享资源的多重连接。中断与此服务器或共享资源的连接,然后在试一次
- Objective-c - @property的参数
- 警告 1 warning C4018: “<”: 有符号/无符号不匹配
- 解决Android布局周围出现半透明阴影的问题
- 利用互斥对象实现线程同步的实例说明
- 微信小程序学习具备
- Centos系统下Lamp环境的快速搭建(超详细)
- 模板类开发问题
- Java内部类
- Django 官方文档write your first Django app --1
- Python下web服务器的原始实现(socket)《Head First Python》第七章
- 连续第一百天