我有一个问题,我的滚动视图...在滚动视图没有滚动
我的xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ScrollView android:id="@+id/scrollView1" android:layout_width="wrap_content" android:layout_height="match_parent">
<RelativeLayout [...]>
<TextView [...]></TextView>
<Spinner [...]></Spinner>
<Button [...]></Button>
<ImageButton [...]></ImageButton>
<TextView [...]></TextView>
<TableLayout [...]>
<TableRow [...]>
<TextView [...]></TextView>
<TextView [...]></TextView>
<TextView [...]></TextView>
</TableRow>
<TableRow [...]>
<AutoCompleteTextView [...]></AutoCompleteTextView>
<AutoCompleteTextView [...]></AutoCompleteTextView>
<Spinner [...]></Spinner>
</TableRow>
</TableLayout>
</RelativeLayout>
</ScrollView>
</LinearLayout>
当我尝试在我的应用程序滚动它不会工作...我做了什么错? 我删除了元素的属性。如果你需要他们来解决问题,我可以添加它们。 我做了它,以获得更好的概述。
感谢, prexx
做到了,不会工作既不... – Prexx
此外,为什么你保持一个linearlayout内relativelayout?你可以尝试删除linearlayout – Carnal
我设置滚动视图为父母如你所说仍然不工作 也许是因为这个活动与这个XML是在一个tabview? – Prexx