1
A
回答
1
我將有一個去:
android:scrollbars="horizontal"
在視圖中的你的XML定義
,但是如果你使用的是滾動視圖,它不支持水平滾動,所以酒吧將不會顯示...
1
把屬性放在滾動視圖標籤。
android:scrollbars="horizontal"
1
horizontalscrollview http://developer.android.com/reference/android/widget/HorizontalScrollView.html在1.5
6
加入看一看這一點,它可以是U想要什麼。
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<HorizontalScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableRow
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView android:src="@drawable/icon"/>
<ImageView android:src="@drawable/tube"/>
</TableRow>
<TableRow ....
</TableRow>
<TableRow ....
</TableRow>
</TableLayout>
</HorizontalScrollView>
</ScrollView>
1
如上所述將HorizontalScrollView放置在ScrollView中。 這裏是如何做到這一點的教程: http://androiddevblog.blogspot.com/2009/12/creating-two-dimensions-scroll-view.html
Try this link它爲我.... – Rohith 2013-05-29 05:04:53