我为应用程序设计了一个屏幕。无法在屏幕方向上显示完整项目
这里是我的xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bghomescreen" >
<TableLayout
android:id="@+id/tlmaintable"
android:layout_width="match_parent"
android:layout_height="304dp"
android:layout_marginTop="100dp"
android:orientation="vertical">
<TableRow
android:id="@+id/tableRow1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="60dp" >
<Button
android:id="@+id/btnsearchbylocation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:background="@drawable/btn_bg_location" />
<Button
android:id="@+id/btnsearchbycuisine"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:background="@drawable/btn_bg_cuisine1" />
</TableRow>
<TableRow
android:id="@+id/tableRow2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="80dp">
<Button
android:id="@+id/btnquickbite"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:background="@drawable/btn_bg_quickbite" />
<Button
android:id="@+id/btnadvancesearch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:background="@drawable/btn_bg_cuisine"/>
</TableRow>
</TableLayout>
</LinearLayout>
当我运行我的应用程序,我可以看到在风景模式下,所有的项目,但是当我将其转换为肖像模式我只能看到我的表视图的第一行。我无法看到其他人。
我使用尺寸为480x800的屏幕。
有人可以帮助我。
感谢
使用scrollview。 – rajeshwaran 2013-03-15 12:35:45
@rajeshwaran thnx rajesh。你能否为我提供任何相同的文件。如果你有任何。感谢名单:)。但rajesh我认为我必须滚动查看其他图像。不能一次看到所有的图像?有没有办法做到这一点? – Beginner 2013-03-15 12:37:11
@ user2143817您不需要doc滚动视图,为LinearLayout设置定向,并且还将滚动视图 – Pragnani 2013-03-15 12:40:04