Vreau să-l elimina între Butonul "0" și Butonul "1". Scopul meu este de a avea același spațiu între ele ca Butonul de "X". UI rezultat
Aceste soluții nu au de lucru:
Cum pentru a elimina spațiul dintre două rânduri în Tablelayout?
Cum de a reduce spațiul dintre două rânduri de Tabel Layout for android?
De asemenea, Butonul "X" interval de peste ambele rânduri, care nu numai, atunci când am pus într-o mai mare 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>
Multumesc anticipat pentru orice idei.
insetBottom
șiinsetTop
în cele din urmă am luat-o. :)