으로 수정했습니다. 3 개의 버튼이 있고 그 다음 버튼 아래에 3 개의 이름 (해당 버튼에 해당하는 이름)이 있습니다.하지만 내 문제는 이름 변경시 버튼의 크기도 변경됩니다. 하지만 버튼의 크기가 여기에 당신이 버튼의 크기를 고정 피하고 싶은 경우 나 재산 alignBaseline
와 아마, TableLayout
보다 RelativeLayout
및 TextViews
을 다른 레이아웃을 사용하는 것이 좋습니다 것, 나에게안드로이드는 이미지 크기를
<TableLayout android:background="@drawable/toptab"
android:layout_width="fill_parent" android:id="@+id/tableLayout"
android:layout_height="wrap_content"
android:stretchColumns="1" android:gravity="center_vertical"
android:layout_alignParentBottom="true">
<TableRow>
<ImageButton android:id="@+id/btnPrev" android:background="@drawable/imgPrev"
android:layout_marginLeft="5dp"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
<ImageButton android:id="@+id/btnRefresh"
android:layout_gravity="center" android:background="@drawable/refreshbutton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<ImageButton android:id="@+id/btnNext"
android:background="@drawable/imgNext"
android:layout_width="5dp"
android:layout_height="20dp"
android:layout_marginRight="5dp" />
</TableRow>
<TableRow >
<TextView android:id="@+id/prev" android:text="Hk" android:layout_marginLeft="5dp" />
<TextView android:id="@+id/refresh" android:text="Refresh" android:layout_gravity="center" />
<TextView android:id="@+id/next" android:text="RS" android:layout_marginRight="5dp" />
</TableRow>
</TableLayout>
사용하여 이미지 뷰와 소스 안드로이드로 제공 : SRC = "@ 드로어 블/imgNext을". –
이미지보기를 사용하는 경우 크기가 커지면 텍스트가 이미지와 겹칠 때 –