拨号的原生界面,
屏幕上方并排4个标签:拨号、通话记录、通讯录、收藏
是用tabhost实现的。怎么把标签放到屏幕底部。我试过吧tabhost布局的tabwidget 和framelayout 调换位置 ,但是效果很差。
这效果是用tabhost来实现的么?
如果不是,该怎么做

解决方案 »

  1.   

    二楼,你的意思是说网上有很多关于tabhost底部的案例,但实际上都没有成功的么??楼主反正我也不会把tabhost放在screen的底部。给你发一个连结或许有用:http://www.eoeandroid.com/thread-10709-1-1.html 。我实验过用viewflipper与button相结合的方法,能模拟出来的还是,虽然不如tab自然。
      

  2.   

    将tabwidget的gravity值设为1,将framelayout的gravity值设为0试下
      

  3.   

    1.In your vertical LinearLayout, put the FrameLayout above the TabWidget
    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)我今天以这个实现了~楼主你可以试试
      

  4.   

    <Relativelayout>
    <include layout="@layout/navigationBar" android:align_ParentBotton="true">
    </Relativelayout>然后再做个布局navigation设layout_weight="1"然后做完就行了
    适应各个分辨率屏幕
      

  5.   

    http://stackoverflow.com/questions/2395661/android-tabs-at-the-bottom 楼主可以看看
      

  6.   

    <?xml version="1.0" encoding="utf-8"?>
    <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>
      

  7.   

        在xml布局文件中 ,那个想放到底部 ,就在那个属性中设置:android:gravity="bottom"