Android FrameLayout和TabHost-换行/滚动
我的布局有问题。在大屏幕上,选项卡内容被包装(在内容末尾和底部按钮之间,您将只看到背景) 另一方面,在小屏幕上可以看到滚动条。有没有办法做一些适合屏幕的把戏 我的布局如下所示:Android FrameLayout和TabHost-换行/滚动,android,android-layout,android-scroll,android-wrap-content,Android,Android Layout,Android Scroll,Android Wrap Content,我的布局有问题。在大屏幕上,选项卡内容被包装(在内容末尾和底部按钮之间,您将只看到背景) 另一方面,在小屏幕上可以看到滚动条。有没有办法做一些适合屏幕的把戏 我的布局如下所示: TabHost (fill_parrent, fill_parrent) LinearLayout (fill_parrent, fill_parrent) LinearLayout (wrap_content, wrap_content) FrameLayout (fill_pa
TabHost (fill_parrent, fill_parrent)
LinearLayout (fill_parrent, fill_parrent)
LinearLayout (wrap_content, wrap_content)
FrameLayout (fill_parrent, fill_parrent)
TabWidget (fill_parrent, wrap_content)
框架布局的代码:
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:layout_weight="1"
android:padding="5dp" />