나는 ScrollView에있는 TableLayout을 가지고 있으므로 세로 스크롤을 얻습니다. 그러나 기둥이 화면을 초과하면 가로 스크롤도 필요합니다.가로 스크롤 필요 (안드로이드)
어떻게하면됩니까? 도와주세요.
감사합니다, Farha
내가 함께가는 것나는 ScrollView에있는 TableLayout을 가지고 있으므로 세로 스크롤을 얻습니다. 그러나 기둥이 화면을 초과하면 가로 스크롤도 필요합니다.가로 스크롤 필요 (안드로이드)
어떻게하면됩니까? 도와주세요.
감사합니다, Farha
내가 함께가는 것: 당신이있는 ScrollView를 사용하는 경우 그러나, 그것은 수평 스크롤을 지원하지 않습니다, 뷰의 당신의 XML 정의에
android:scrollbars="horizontal"
, 그래서 막대가 표시되지 않습니다 ...
스크롤 속성 태그에 put 특성이 있습니다.
android:scrollbars="horizontal"
horizontalscrollview http://developer.android.com/reference/android/widget/HorizontalScrollView.html이 살펴
1.5에서 추가되었다, 그것은 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>
위에서 설명한대로 HorizontalScrollView를 ScrollView 내부에 배치하십시오. 당신이있는 ScrollView를 사용하는 경우 내가 말했듯이 그것은 나를 위해 작동 http://androiddevblog.blogspot.com/2009/12/creating-two-dimensions-scroll-view.html
Try this link .... – Rohith