Android 两个FrameLayout align和tabwidget显示在底部
我试图构建一个布局,其中两个FrameLayout(在下面的代码中标记为“mainfrg”和“aboutudet”)对齐,tabwidget显示在底部 Tabwidget出现在底部,但“aboutusdet”出现在“mainfrg”下面。 我尝试了以下布局,但没有成功。非常感谢您的帮助Android 两个FrameLayout align和tabwidget显示在底部,android,Android,我试图构建一个布局,其中两个FrameLayout(在下面的代码中标记为“mainfrg”和“aboutudet”)对齐,tabwidget显示在底部 Tabwidget出现在底部,但“aboutusdet”出现在“mainfrg”下面。 我尝试了以下布局,但没有成功。非常感谢您的帮助 <TabHost xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.a
<TabHost
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="0"
/>
<FrameLayout
android:id="@+id/mainfrg"
android:layout_width="400dp"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_marginRight="10dp"
/>
<FrameLayout
android:id="@+id/aboutusdet"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_marginRight="10dp"
/>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_marginBottom="-4dp"
android:layout_weight="0"
/>
</LinearLayout>
</TabHost>
但您的问题是什么?你会怎么做?你能分享截图吗?问题是“aboutusdet”的碎片布局出现在“mainfrg”下面。我想将其对齐在“mainfrg”的右侧(这是用于平板电脑布局)。不幸的是,我不允许上传图片。同时,我希望tabwidget继续出现在布局的底部