滚动型FILL_PARENT与" layout_weight" [英] Scrollview fill_parent with "layout_weight"

查看:290
本文介绍了滚动型FILL_PARENT与" 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆