0

TableLayout의 2 열을 어떻게 확장합니까? 레이블이있는 2 개의 행이 있고 1 행에 텍스트를 편집하고 전체 두 번째 행에 걸쳐 단일 단추를 늘리고 싶습니다.테이블 레이아웃의 2 행에 걸쳐 늘이기

<?xml version="1.0" encoding="utf-8"?> 
<TableLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_height="fill_parent" 
    android:layout_width="fill_parent" 
    android:background="#000000" 
    android:stretchColumns="1"> 

    <TableRow> 
     <TextView 
      android:text = "Name: " /> 
     <EditText 
      android:id = "@+id/txtAddName" 
      android:gravity = "right" 
      android:layout_width = "fill_parent" /> 
    </TableRow> 
    <TableRow> 
     <TextView 
      android:text = "Phone: " /> 
     <EditText 
      android:id = "@+id/txtAddPhone" 
      android:gravity = "right" 
      android:layout_width = "fill_parent" />   
    </TableRow> 
    <TableRow> 
     <Button 
      android:id = "@+id/btnAdd" 
      android:text = "Add Entrie" 
      android:layout_width = "fill_parent" /> 
    </TableRow> 
    <TableRow> 
     <Button 
      android:id = "@+id/btnShow" 
      android:text = "Show all Entries" 
      android:layout_width = "fill_parent" /> 
    </TableRow> 
    <TableRow> 
     <Button 
      android:id = "@+id/btnDelete" 
      android:text = "Delete all Entries" 
      android:layout_width = "fill_parent" /> 
    </TableRow> 
</TableLayout> 

답변

관련 문제