0
다음 Android 레이아웃은 내 listactivity에 대한 맞춤 행입니다. tablerow의 두 번째 textview는 원하는대로 열을 맞출 수 없습니다. 내가 다른 사람들을 간결하게하기 위해 tablerow가 하나만 있음을 주목하라.android tableview issue
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="6dip">
<ImageView
android:id="@+id/DocTypeIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/icon"
android:layout_gravity="center_vertical" />
<TableLayout
android:id="@+id/tableLayout1"
android:layout_toRightOf="@id/DocTypeIcon"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:stretchColumns="1">
<TableRow
android:id="@+id/tableRow1"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Pages"
android:textStyle="bold"
android:layout_marginRight="10dp" />
<TextView
android:id="@+id/DynamicTextHere"
android:layout_height="wrap_content"
android:layout_width="fill_parent" />
</TableRow>
<!-- Other rows stripped for brevity -->
</TableLayout>
</RelativeLayout>
stretchColumns = "1"을 입력하면 화면에 아티팩트가 표시됩니다. stretchColumns가없는 경우 레이아웃은 고정 폭으로 만 이동합니다. RelativeLayout이 나를 망쳐 놓는 것 같아요. 그러나 그것은 내가 원하는 것보다 훨씬 과감한 변화입니다. 이 행을 내 화면 (세로 및 가로)에 맞추기 위해 작은 것을 할 수 있습니까?