Skip to content
Snippets Groups Projects
Unverified Commit c3f180ea authored by axelherbstreith's avatar axelherbstreith Committed by GitHub
Browse files

Person Button Styling(EXPOSUREAPP-5160) (#2408)

* added basic button style

* removed divider

* refactoring

* Removed comments
parent a7e6637c
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/colorBackground" android:state_checked="false" />
<item android:color="@color/colorAccentTintButtonPressed" android:state_checked="true" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/colorTextPrimary2" android:state_enabled="false" /> <!-- disabled -->
<item android:color="@color/colorBackground" android:state_enabled="false" /> <!-- disabled -->
<item android:color="@color/colorTextEmphasizedButton" /> <!-- default -->
</selector>
\ No newline at end of file
......@@ -22,15 +22,23 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/duration_below_15"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="match_parent"
app:backgroundTint="@color/colorBackground"
style="@style/contactDiaryPersonButton"
android:layout_height="match_parent"
android:layout_weight="1"
android:paddingHorizontal="5dp"
android:text="@string/contact_diary_person_encounter_duration_below_15_min" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/cwaGrayHighlight" />
<com.google.android.material.button.MaterialButton
android:id="@+id/duration_above_15"
style="?attr/materialButtonOutlinedStyle"
style="@style/contactDiaryPersonButton"
app:backgroundTint="@color/colorBackground"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
......@@ -52,15 +60,17 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/mask_with"
style="?attr/materialButtonOutlinedStyle"
style="@style/contactDiaryPersonButton"
android:layout_width="match_parent"
app:backgroundTint="@color/colorBackground"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/contact_diary_person_encounter_mask_with" />
<com.google.android.material.button.MaterialButton
android:id="@+id/mask_without"
style="?attr/materialButtonOutlinedStyle"
style="@style/contactDiaryPersonButton"
app:backgroundTint="@color/colorBackground"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
......@@ -82,17 +92,19 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/environment_outside"
style="?attr/materialButtonOutlinedStyle"
style="@style/contactDiaryPersonButton"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:backgroundTint="@color/colorBackground"
android:layout_weight="1"
android:text="@string/contact_diary_person_encounter_environment_outside" />
<com.google.android.material.button.MaterialButton
android:id="@+id/environment_inside"
style="?attr/materialButtonOutlinedStyle"
style="@style/contactDiaryPersonButton"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:backgroundTint="@color/colorBackground"
android:layout_weight="1"
android:text="@string/contact_diary_person_encounter_environment_inside" />
......
......@@ -104,6 +104,17 @@
<item name="android:textColor">@color/button_text_color_emphasized</item>
</style>
<style name="contactDiaryPersonButton" parent="Widget.MaterialComponents.Button.OutlinedButton">
<item name="strokeColor">@color/button_contact_diary_person</item>
<item name="strokeWidth">2dp</item>
<item name="android:letterSpacing">0</item>
<item name="textAllCaps">false</item>
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#000000</item>
</style>
<style name="buttonReset" parent="button">
<item name="android:backgroundTint">@color/button_red</item>
<item name="android:textColor">@color/button_text_color_emphasized</item>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment