我在Android中的ScrollView有一点问题 [英] i have a little problem with ScrollView in android
本文介绍了我在Android中的ScrollView有一点问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
喜。
我正在使用ScrollView为Android应用程序设计我的用户界面。
我在高度和宽度上都使用了fill_parent参数,它完全覆盖了设备的屏幕,并且我在ScrollView中放置了一个LinearLayout。高度和宽度都是100dp。但不幸的是它没有显示LinearLayout。
hi.
i am using ScrollView to design my User interface for an android application .
i have used "fill_parent" parameter for the both height and width , and it covers the device's screen complitly and also i have put a LinearLayout inside the ScrollView .its height and width are "100dp" . but unfortunately it doesn't show the LinearLayout .
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/SV"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:removed="@color/bcfbc8"
android:orientation="vertical">
<LinearLayout
android:layout_width="100dp"
android:layout_height="100dp"
android:removed="@color/Black"
android:orientation="vertical"
android:id="@+id/ll">
</LinearLayout>
</ScrollView >
请帮助我提出你的想法。提前谢谢
please help me with your useful idea . thanks in advance
推荐答案
删除以下属性:
Remove the following attribute:
android:removed
你很好。
了解更多: Android UI布局和控件 [ ^ ]
这篇关于我在Android中的ScrollView有一点问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文