拨号的原生界面,
屏幕上方并排4个标签:拨号、通话记录、通讯录、收藏
是用tabhost实现的。怎么把标签放到屏幕底部。我试过吧tabhost布局的tabwidget 和framelayout 调换位置 ,但是效果很差。
这效果是用tabhost来实现的么?
如果不是,该怎么做
屏幕上方并排4个标签:拨号、通话记录、通讯录、收藏
是用tabhost实现的。怎么把标签放到屏幕底部。我试过吧tabhost布局的tabwidget 和framelayout 调换位置 ,但是效果很差。
这效果是用tabhost来实现的么?
如果不是,该怎么做
解决方案 »
- notification使用中跳转时的问题?
- android 文件管理中找不到/data/data/...路径
- android opengl es 如何解决纹理2次幂的问题
- 运行模拟器时和DDMS时,出现“error loading preferences”错误
- 调整控件View大小的问题
- 软引用存储bitmap或者Drawable内存溢出
- 问个新手问题
- 新人发帖-google map如何得到生活信息
- 请教关于linux串口读写的问题
- 关于安卓通知Notification的使用,不能现实出来,请求解决,谢谢!
- 请问新浪手机微博上的“转发”那部分的布局是怎么实现的?
- android如何将界面分成2个部分
2.Set layout_width to "wrap_content" on both FrameLayout and TabWidget
3.Set FrameLayout's *android:layout_weight="1"
4.Set TabWidget's android:layout_weight="0"*(0 is default, but for emphasis, readability, etc)我今天以这个实现了~楼主你可以试试
<include layout="@layout/navigationBar" android:align_ParentBotton="true">
</Relativelayout>然后再做个布局navigation设layout_weight="1"然后做完就行了
适应各个分辨率屏幕
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost" android:layout_height="fill_parent"
android:layout_width="fill_parent">
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<FrameLayout android:id="@android:id/tabcontent" android:layout_marginTop="5dip"
android:layout_weight="1.0" android:layout_width="fill_parent"
android:layout_height="fill_parent">
</FrameLayout>
<TabWidget android:id="@android:id/tabs" android:padding="0dip"
android:layout_alignParentBottom="true" android:background="@drawable/tab_indicator"
android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
</TabHost>