Android 查看横向时的视图宽度问题

Android 查看横向时的视图宽度问题,android,view,width,landscape,Android,View,Width,Landscape,我有一个TabHost->LinearLayout->Framelayout(所有的属性都是android:layout\u width=“fill\u parent”) 反过来,FrameLayout中包含的视图是:ScrollView->HorizontalScrollView->TableLayout,所有视图都具有属性android:layout\u width=“fill\u parent” 那么,为什么当我横向浏览时,视图会占用屏幕宽度的60%左右呢 也许不推荐这样的对象层次结构 提

我有一个TabHost->LinearLayout->Framelayout(所有的属性都是android:layout\u width=“fill\u parent”)

反过来,FrameLayout中包含的视图是:ScrollView->HorizontalScrollView->TableLayout,所有视图都具有属性android:layout\u width=“fill\u parent”

那么,为什么当我横向浏览时,视图会占用屏幕宽度的60%左右呢

也许不推荐这样的对象层次结构


提前感谢。

试试这个顺序,第一个水平滚动视图

 HorizontalScrollView->ScrollView->TableLayout 

我不知道发生了什么,但是
fill\u parent
是-使用
match\u parent
。但这不应该引起您的问题。我一直使用4,它无法识别匹配的父属性,因此无法尝试。