From d246d0b73047a069bcee3d61d4d25a9efba101d3 Mon Sep 17 00:00:00 2001 From: Pixtxa <Pixtxa@vspace.one> Date: Sun, 10 Jan 2021 00:06:15 +0100 Subject: [PATCH] Nicer Buttons: - use whole scren width - use colors - switched no-contact and off - so it's the same order as when switching the state on card10 with `(state+1)%5` - NO CONTACT/OFF is still easy to access with the thumb --- app/src/main/res/layout/mood_fragment.xml | 54 ++++++++++++++++++----- 1 file changed, 44 insertions(+), 10 deletions(-) diff --git a/app/src/main/res/layout/mood_fragment.xml b/app/src/main/res/layout/mood_fragment.xml index 622421e..b5ed7fb 100644 --- a/app/src/main/res/layout/mood_fragment.xml +++ b/app/src/main/res/layout/mood_fragment.xml @@ -9,14 +9,48 @@ > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/personal_state"/> - <Button android:id="@+id/mood_chaos" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/chaos"/> - <Button android:id="@+id/mood_communication" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/communication"/> - <Button android:id="@+id/mood_camp" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/camp"/> - <Button android:id="@+id/no_contact" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/no_contact"/> - <Button android:id="@+id/no_state" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/off"/> + + <Button + android:id="@+id/mood_chaos" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:backgroundTint="#0076BA" + android:text="@string/chaos" + android:textColor="#005383" + android:textSize="30sp" /> + + <Button + android:id="@+id/mood_communication" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:backgroundTint="#ffc600" + android:text="@string/communication" + android:textColor="#d39a00" + android:textSize="30sp" /> + + <Button + android:id="@+id/mood_camp" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:backgroundTint="#99ba00" + android:text="@string/camp" + android:textColor="#6f8700" + android:textSize="30sp" /> + + <Button + android:id="@+id/no_state" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/off" + android:textColor="#939393" + android:textSize="30sp" /> + + <Button + android:id="@+id/no_contact" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:backgroundTint="#ff0000" + android:text="@string/no_contact" + android:textColor="#BA0000" + android:textSize="30sp" /> </LinearLayout> -- GitLab