Voglio rimuovere tra i pulsanti "0" e il Tasto "1". Il mio obiettivo è di avere lo stesso spazio tra di loro, come il Pulsante "X". UI risultato
Queste soluzioni non funzionano:
Come rimuovere lo spazio tra due righe in Tablelayout?
Come ridurre lo spazio tra le due righe della Tabella di Layout per android?
Inoltre, il Pulsante "X" dovrebbe spanna sopra le righe, che non solo, quando ho messo in una grande 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>
Grazie in anticipo per tutte le idee.
insetBottom
einsetTop
ho finalmente capito. :)