开发者

View width problem when going landscape

开发者 https://www.devze.com 2023-02-12 04:18 出处:网络
I have a TabHost->LinearLayout->Framelayout (all with the attribute android:layout_width=\"fill_parent\")

I have a TabHost->LinearLayout->Framelayout (all with the attribute android:layout_width="fill_parent")

In turn, the view contained in the FrameLayout is such that: ScrollView->HorizontalScrollView->TableLayout ,again all of them with the attribute android:layout_width="fil开发者_运维问答l_parent".

So why when I go landscape the view uses about 60% of the screen's width ?

Maybe such hierarchy of objects is not recommended ?

Thanks in advance.


Try this order,first horizontal scroll View

 HorizontalScrollView->ScrollView->TableLayout 
0

精彩评论

暂无评论...
验证码 换一张
取 消