diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-11 18:05:27 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-11 18:05:27 -0600 |
commit | 513a2cc43df86058d3402f1b786cd258ed37cb95 (patch) | |
tree | 8386a1422f860572d12ada458c3b58051f1e9375 /androidApp/src/main/res/layout | |
parent | 1c877fcc48fba0afa0362ae7273cf9e0cd03458f (diff) | |
download | etbsa-trackermap-mobile-513a2cc43df86058d3402f1b786cd258ed37cb95.tar.gz etbsa-trackermap-mobile-513a2cc43df86058d3402f1b786cd258ed37cb95.tar.bz2 etbsa-trackermap-mobile-513a2cc43df86058d3402f1b786cd258ed37cb95.zip |
Minor layout improvements
Diffstat (limited to 'androidApp/src/main/res/layout')
-rw-r--r-- | androidApp/src/main/res/layout/unit_item.xml | 11 | ||||
-rw-r--r-- | androidApp/src/main/res/layout/unit_map_fragment.xml | 8 |
2 files changed, 9 insertions, 10 deletions
diff --git a/androidApp/src/main/res/layout/unit_item.xml b/androidApp/src/main/res/layout/unit_item.xml index 7c0241e..49fce55 100644 --- a/androidApp/src/main/res/layout/unit_item.xml +++ b/androidApp/src/main/res/layout/unit_item.xml @@ -17,8 +17,7 @@ android:layout_gravity="end" android:paddingTop="@dimen/card_padding" android:paddingBottom="@dimen/card_padding" - android:paddingStart="@dimen/card_padding" - android:paddingEnd="@dimen/card_padding" + android:paddingHorizontal="@dimen/card_padding" android:gravity="center" android:orientation="horizontal" android:visibility="visible"> @@ -31,8 +30,8 @@ app:cardBackgroundColor="@color/colorAccent" android:text="@string/unit_details" android:textColor="@color/colorAccent" - android:textSize="12sp" - style="?borderlessButtonStyle" /> + android:textSize="@dimen/card_action_text" + style="?borderlessButtonStyle"/> <com.google.android.material.button.MaterialButton android:id="@+id/reportsButton" @@ -42,7 +41,7 @@ android:layout_weight="1" android:text="@string/unit_reports" android:textColor="@color/colorAccent" - android:textSize="12sp" + android:textSize="@dimen/card_action_text" style="?borderlessButtonStyle" /> <com.google.android.material.button.MaterialButton @@ -52,7 +51,7 @@ android:layout_weight="1" android:text="@string/unit_commands" android:textColor="@color/colorAccent" - android:textSize="12sp" + android:textSize="@dimen/card_action_text" style="?borderlessButtonStyle" /> </LinearLayout> diff --git a/androidApp/src/main/res/layout/unit_map_fragment.xml b/androidApp/src/main/res/layout/unit_map_fragment.xml index 3c7c059..f0fd113 100644 --- a/androidApp/src/main/res/layout/unit_map_fragment.xml +++ b/androidApp/src/main/res/layout/unit_map_fragment.xml @@ -155,7 +155,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/gridLayout" - android:layout_marginTop="@dimen/padding" + android:layout_marginVertical="@dimen/padding" android:gravity="center" android:orientation="horizontal" android:visibility="visible"> @@ -167,7 +167,7 @@ android:layout_weight="1" android:text="@string/unit_details" android:textColor="@color/colorAccent" - android:textSize="12sp" + android:textSize="@dimen/card_action_text" style="?borderlessButtonStyle" /> <com.google.android.material.button.MaterialButton @@ -178,7 +178,7 @@ android:layout_weight="1" android:text="@string/unit_reports" android:textColor="@color/colorAccent" - android:textSize="12sp" + android:textSize="@dimen/card_action_text" style="?borderlessButtonStyle" /> <com.google.android.material.button.MaterialButton @@ -188,7 +188,7 @@ android:layout_weight="1" android:text="@string/unit_commands" android:textColor="@color/colorAccent" - android:textSize="12sp" + android:textSize="@dimen/card_action_text" style="?borderlessButtonStyle" /> </LinearLayout> |