를 제거하려 사 버튼을"0"Button"1"입니다. 내 목적은 그것이 동일한 공간이 그들을 버튼으로"X". UI 결과
이러한 솔루션을 작동하지 않았다:
는 방법을 제거하는 공간 사이의 두 개의 행 Tablelayout?
을 줄이는 방법을 공간 사이의 두 개의 행 테이블의 레이아웃을 위한 안드로이드?
또한 버튼은"X"해야에 걸쳐서 모두 행은 그것만은,나는 때에 넣어 크 textSize
.
<TableLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TableRow>
<TableLayout android:layout_width="0sp"
android:layout_height="match_parent"
android:layout_weight="1">
<TableRow android:layout_width="0sp"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_margin="0sp"
android:padding="0sp">
<com.google.android.material.button.MaterialButton
android:layout_width="0sp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="0"
android:layout_margin="2sp"
/>
</TableRow>
<TableRow
android:layout_width="0sp"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_margin="0sp"
android:padding="0sp">
<com.google.android.material.button.MaterialButton
android:layout_width="0sp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="1"
android:layout_margin="2sp"
/>
</TableRow>
</TableLayout>
<TableLayout
android:layout_width="0sp"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_margin="0sp"
android:padding="0sp">
<TableRow>
<com.google.android.material.button.MaterialButton
android:layout_width="0sp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="X"
android:layout_margin="2sp"
/>
</TableRow>
</TableLayout>
</TableRow>
</TableLayout>
사전에 감사를 위한 아이디어.
insetBottom
고insetTop
마지막으로 그것을 얻었다. :)