【问题标题】:How i put the android tabactivity at the bottom of activity?我如何将 android tabactivity 放在活动的底部?
【发布时间】:2013-11-13 13:31:07
【问题描述】:

默认情况下,选项卡活动位于活动的顶部 我如何将 android tabactivity 放在活动的底部? (如 ios tabview)

非常感谢 由

【问题讨论】:

  • 很多人会告诉你不要这样做。如果您正在为使用 android 的人做某事,那么他们期望 android 行为。
  • 然后如果你想这样做,你尝试过吗? stackoverflow.com/questions/19098366/…
  • 它不起作用但没问题;)

标签: android tabactivity android-tabactivity tabview uitabview


【解决方案1】:

试试这个:

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <FrameLayout
        android:id="@+id/realtabcontent"
        android:layout_width="match_parent"
        android:layout_height="0dip"
        android:layout_weight="1" />

    <android.support.v4.app.FragmentTabHost
        android:id="@android:id/tabhost"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" >

        <FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="0dp"
            android:layout_height="0dp"
            android:layout_weight="0" />
    </android.support.v4.app.FragmentTabHost>
</LinearLayout>

【讨论】:

    猜你喜欢
    • 2016-03-22
    • 2020-08-17
    • 2021-12-06
    • 1970-01-01
    • 2012-08-26
    • 1970-01-01
    • 1970-01-01
    • 2021-08-06
    • 1970-01-01
    相关资源
    最近更新 更多