拨号的原生界面,
屏幕上方并排4个标签:拨号、通话记录、通讯录、收藏
是用tabhost实现的。怎么把标签放到屏幕底部。我试过吧tabhost布局的tabwidget 和framelayout 调换位置 ,但是效果很差。
这效果是用tabhost来实现的么?
如果不是,该怎么做
屏幕上方并排4个标签:拨号、通话记录、通讯录、收藏
是用tabhost实现的。怎么把标签放到屏幕底部。我试过吧tabhost布局的tabwidget 和framelayout 调换位置 ,但是效果很差。
这效果是用tabhost来实现的么?
如果不是,该怎么做
解决方案 »
- 怎么获取android项目assets目录里的文件写入流OutputStream
- Android socket通信时怎么做提醒
- android 摄像头应用
- 加入有米广告时AdManager.init(),第一个参数的问题
- android源码导入Eclipse中?
- android JNI转换问题
- android如何上传图片到服务器
- Arcgis for Android 怎么实现离线矢量地图
- 类型 FragmentTransaction 中的方法 replace(int, Fragment)对于参数(int, Fragment1)不适用
- Android如何获取连上wifi热点的所有设备的名称
- 请问新浪手机微博上的“转发”那部分的布局是怎么实现的?
- 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>