android 选项卡(TabHost)如何放置在屏幕的底部
2014-09-12 17:40
537 查看
如何将TAB放置在屏幕的底端,有很多的新手都想实现这种效果,本文搜集整理了一些,感兴趣的朋友可以参考下哦。
今天写Tab的时候由于TAB的跳转问题去查资料,倒反而发现更有趣的问题,就是如何将TAB放置在屏幕的底端。
复制代码 代码如下:
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns: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>
今天写Tab的时候由于TAB的跳转问题去查资料,倒反而发现更有趣的问题,就是如何将TAB放置在屏幕的底端。
复制代码 代码如下:
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns: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 选项卡(TabHost)如何放置在屏幕的底部
- TabHost如何设置在屏幕的底部
- android 底部选项卡(TabHost)
- Android 如何 ListView 判断滚动到最顶部或者底部 ,首行距离屏幕边缘距离
- Android中如何修改tabhost的默认打开的tab选项卡
- Android应用底部导航栏(选项卡)实例(TabHost&TabActivity)
- Android下利用Fragment+RadioGroup和TabHost实现底部选项卡的效果
- Android ViewPager实现Tabhost选项卡底部滑块动态滑动过渡
- android如何让控件摆放在屏幕底部
- 如何利用Android TabHost+ActivityGroup+Broadcast实现类似于iPhone的底部菜单
- android 底部选项卡(TabHost)
- 模拟Android微信APK底部的TabHost选项卡
- android如何让控件摆放在屏幕底部?
- android fragmenttabhost 如何让tabs位于底部(个人笔记)
- Android将TAB选项卡放在屏幕底部
- android底部选项卡(二)FragmentTabHost +Fragment 实现
- Android将TAB选项卡放在屏幕底部(转)
- Android ViewPager实现Tabhost选项卡底部滑块动态滑动过渡
- Android编程实现将tab选项卡放在屏幕底部的方法
- android开发之如何使TabHost的TabWidget位于屏幕下方