테이블 레이아웃에서 tablerow를 동적으로 추가합니다. 가로 스크롤에 세로 및 가로 스크롤 막대를 모두 사용하고 있습니다. 레이아웃에서 일부 공간이 생깁니다. 내 xml 파일 내가 오른쪽에서 그 공간을 제거 할 IS-가로 스크롤 막대의 공간 제거
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scrollbars="none">
<HorizontalScrollView
android:id="@+id/horizontalScrollView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scrollbars="none">
<TableLayout
android:stretchColumns="*"
android:id="@+id/main_table"
android:layout_weight="1"
android:layout_height="wrap_content"
android:layout_width="match_parent">
</TableLayout>
</HorizontalScrollView>
</ScrollView>
</LinearLayout>
스크린 샷을 인걸요.
에
당신이 안드로이드'시도가 : layout_weight를이 = "wrap_content"는'당신'TableLayout을' –
Anushka, 나는이 layout_width = "당신은 설정해야합니다 생각 match_parent " –
plz 레이아웃 행 xml 파일 –