override layout defaults to shrink table rows

This commit is contained in:
Eric House 2020-08-18 16:29:09 -07:00
parent 374fd4a0b6
commit e5eb1aab6e
2 changed files with 11 additions and 5 deletions

View file

@ -94,8 +94,9 @@
<CheckBox style="@style/pat_table_check"
/>
</org.eehouse.android.xw4.PatTableRow>
<TableRow android:layout_width="fill_parent"
android:layout_height="wrap_content"
<LinearLayout android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:orientation="horizontal"
>
<Button android:id="@+id/button_addBlank"
android:layout_height="wrap_content"
@ -103,8 +104,10 @@
android:text="@string/button_addBlank"
android:layout_span="1"
android:enabled="false"
android:minHeight="0dp"
android:minWidth="0dp"
/>
</TableRow>
</LinearLayout>
<LinearLayout android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:orientation="horizontal"

View file

@ -119,7 +119,9 @@
<item name="android:layout_gravity">center_vertical</item>
</style>
<style name="pat_table_edit" parent="edit_w_clear">
<style name="pat_table_edit">
<item name="android:paddingTop">5dp</item>
<item name="android:paddingBottom">5dp</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:maxLines">1</item>
@ -129,6 +131,7 @@
</style>
<style name="pat_table_check">
<item name="android:padding">0dp</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_gravity">center</item>