滚动型FILL_PARENT与" layout_weight" [英] Scrollview fill_parent with "layout_weight"
问题描述
我把 Android的时候遇到了问题:layout_width =FILL_PARENT
由于空间和吃所有的增长更大
I'm having problems when putting android:layout_width="fill_parent"
Because spaces eats and grows all the greater .
当我在WRAP_CONTENT,它工作正常,但是当我打开,我有一半的空白屏幕。
When I have in wrap_content , it works fine , but when I turn , I have half the blank screen.
有什么办法解决?
我的滚动(与行静态的,不是dinamically):
My scroll (with rows static, not dinamically):
<ScrollView
android:id="@+id/scrollView19"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:fillViewport="true">
我行
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center">
我的空间进滚动
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1.1">
我试图测试scrollviews为Android(谷歌)的所有案件没有不足之处。
I'm trying to test all cases of scrollviews for Android ( Google ) has no deficiencies.
推荐答案
我解决了创建新的布局,土地,,似乎开发商想过如何去创建布局,我试着给相同的布局(可调整大小所有存在意见),现在在相同的布局(人像horitzontal)不工作,也许在将来能不能创造一个布局的土地。
I solved create a new layout-land,, it seems the developers thought about how to go creating layouts, I tried to give the same layout (resizable for all views that exist), now in the same layout (portrait-horitzontal) does not work, maybe in the future can do not create a layout-land.
这篇关于滚动型FILL_PARENT与&QUOT; layout_weight&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!