android选项卡(TabHost)如何放置在屏幕的底部
Android 如何 屏幕 底部 选项卡 放置 TabHost
2023-06-13 09:14:43 时间
今天写Tab的时候由于TAB的跳转问题去查资料,倒反而发现更有趣的问题,就是如何将TAB放置在屏幕的底端。
复制代码代码如下:
<?xmlversion="1.0"encoding="utf-8"?>
<TabHostxmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:padding="5dp"/>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
</TabHost>
相关文章
- android acitivity 跳转到fragment,android Activity跳转到指定的Fragment
- android开发笔记之 Android代码混淆打包
- android中适配器的作用,适配器模式 在Android中的简单理解「建议收藏」
- 测试android sdk是否安装成功,配置Android SDK
- android vlc 中文字幕,解决Android版vlc中文乱码问题
- Android GB28181接入端实时位置订阅和上报之-如何获取当前经纬度
- 如何在ios成功上架android tv?
- Android 标签栏pagerslidingtabstrip用法实例(含Demo)
- android 项目jar包冲突问题解决
- 【错误记录】Android Gradle 配置报错 ( gradle.properties 配置到 BuildConfig 中需要注意类型转换 | 位置: 类 BuildConfig )
- 【错误记录】编译 Android 版本的 ijkplayer 报错 ( You must define ANDROID_NDK before starting. | 下载指定版本 NDK )
- 【Android Gradle 插件】将自定义 Gradle 插件上传到自建 Maven 仓库 ⑤ ( 使用 Sonatype Nexus 搭建 Maven 仓库 )
- Android 程序崩溃 后台handle处理类详解手机开发
- [android] 表格布局和绝对布局详解手机开发
- 倒数日·Days Matter 正式推出 Android 官方免费版
- Your Phone更新:Win10可同时串流使用多个Android应用
- 如何搭建适用于Android设备的Linux手游服务器(linux手游服务器搭建)
- android计时器,时间计算器的实现方法
- Android中的android:layout_weight使用详解
- 如何在android中使用html作布局文件
- android实现在横竖屏切换时页面信息不被重置的示例分享
- Android中创建一个透明的进度对话框实例
- Android中的jQuery:AQuery简介