android 关于底部控件遮挡上面list控件的解决办法
来源:互联网 发布:mac系统打符号 编辑:程序博客网 时间:2024/06/05 19:15
如题,这段时间遇到了这样的问题
如图:
这是由于,我们只在下面的控件中加入了:android:layout_alignParentBottom="true"
如:
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@android:id/tabhost"
>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp" >
<!--这个linerLayout中会产生list-->
<LinearLayout
android:id="@+id/tab_liner"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:gravity="clip_vertical"
android:padding="5dp"
>
<TabWidget android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
></TabWidget>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:padding="5dp" >
</FrameLayout>
</LinearLayout>
<RelativeLayout
android:id="@+id/tabButtomButtons"
android:layout_width="fill_parent"
android:layout_height="100dp"
android:layout_alignParentBottom="true"
android:background="@color/black_overlay"
android:padding="5dp"
>
</RelativeLayout>
</RelativeLayout>
</TabHost>
将上面的改为:
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@android:id/tabhost"
>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp" >
<LinearLayout
android:id="@+id/tab_liner"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:gravity="clip_vertical"
android:layout_above="@+id/tabButtomButtons"
android:padding="5dp"
>
<TabWidget android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
></TabWidget>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:padding="5dp" >
</FrameLayout>
</LinearLayout>
<RelativeLayout
android:id="@+id/tabButtomButtons"
android:layout_width="fill_parent"
android:layout_height="100dp"
android:layout_alignParentBottom="true"
android:background="@color/black_overlay"
android:padding="5dp"
>
</RelativeLayout>
</RelativeLayout>
</TabHost>
这样就好了:
- android 关于底部控件遮挡上面list控件的解决办法
- android 关于底部控件遮挡上面list控件的解决办法
- 底部控件遮挡上面list控件的解决办法总结
- Android 软键盘遮挡控件的解决办法
- Android 输入法键盘遮挡控件问题的解决办法
- surfaceview遮挡了上面的控件显示的解决方法
- Android中布局文件滚动及控件置于底部和控件遮挡问题
- 使DIV不被select等控件遮挡的解决办法
- IE下弹出层被DropDownList控件遮挡的解决办法
- 关于Bootstrap日期控件datetimepicker被模态框等遮罩在底部的问题及解决办法。
- Android虚拟键遮挡控件
- Android虚拟导航遮挡控件
- 关于键盘弹起不遮挡交互控件的问题
- 关于Android输入法遮挡控件处理方法!!!!!(可以指定控件,使其在输入法之上)
- android图片点击放大动画,并遮挡旁边的控件
- android studio toolbar遮挡住下面控件内容的解决方法
- Android 解决输入法遮挡布局控件的问题
- 关于Android设置控件margin无效的解决办法
- coursera-android-week4-3 layout menus and action bar
- [WebKit]管好页面缓存
- 【递推】【DP】-HDU-2175-汉诺塔⑨
- android xml异常:Attribute is missing the Android namespace prefix
- POJ 3617 Best Cow Line(字典序)
- android 关于底部控件遮挡上面list控件的解决办法
- hdu3183 RMQ模板 复杂度O(nlogn)
- 解读AtomicStampedReference的源码
- 内联函数与宏的比较
- 语言的歧义
- 内存管理寄存器
- apktool反编译资源时出现CastException的一则解决方法
- C语言知识点
- 学习Java10