Archived
Dialogs now use MaterialComponents styling, many elements now have rounded borders
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:scrollbars="vertical">
|
||||
android:scrollbars="vertical"
|
||||
android:background="@color/colorBackgroundLight">
|
||||
|
||||
<TableRow
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -61,7 +61,11 @@
|
||||
app:boxStrokeWidth="1dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/header_personalise">
|
||||
app:layout_constraintTop_toBottomOf="@+id/header_personalise"
|
||||
app:boxCornerRadiusTopStart="12dp"
|
||||
app:boxCornerRadiusTopEnd="12dp"
|
||||
app:boxCornerRadiusBottomStart="12dp"
|
||||
app:boxCornerRadiusBottomEnd="12dp">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/edittext_name"
|
||||
@@ -120,7 +124,11 @@
|
||||
android:layout_marginEnd="8dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/switch_greeting">
|
||||
app:layout_constraintTop_toBottomOf="@+id/switch_greeting"
|
||||
app:boxCornerRadiusTopStart="12dp"
|
||||
app:boxCornerRadiusTopEnd="12dp"
|
||||
app:boxCornerRadiusBottomStart="12dp"
|
||||
app:boxCornerRadiusBottomEnd="12dp">
|
||||
|
||||
<AutoCompleteTextView
|
||||
android:id="@+id/autocomplete_dark_mode"
|
||||
@@ -328,7 +336,11 @@
|
||||
app:layout_constraintEnd_toStartOf="@+id/button_group_help"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/header_filter"
|
||||
android:importantForAutofill="no">
|
||||
android:importantForAutofill="no"
|
||||
app:boxCornerRadiusTopStart="12dp"
|
||||
app:boxCornerRadiusTopEnd="12dp"
|
||||
app:boxCornerRadiusBottomStart="12dp"
|
||||
app:boxCornerRadiusBottomEnd="12dp">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/edittext_group"
|
||||
@@ -371,7 +383,11 @@
|
||||
app:boxStrokeWidth="1dp"
|
||||
app:layout_constraintStart_toStartOf="@+id/textinputlayout_group"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textinputlayout_group"
|
||||
app:layout_constraintEnd_toStartOf="@+id/button_courses_help">
|
||||
app:layout_constraintEnd_toStartOf="@+id/button_courses_help"
|
||||
app:boxCornerRadiusTopStart="12dp"
|
||||
app:boxCornerRadiusTopEnd="12dp"
|
||||
app:boxCornerRadiusBottomStart="12dp"
|
||||
app:boxCornerRadiusBottomEnd="12dp">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/edittext_courses"
|
||||
@@ -412,7 +428,11 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/button_order_help"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textinputlayout_courses">
|
||||
app:layout_constraintTop_toBottomOf="@+id/textinputlayout_courses"
|
||||
app:boxCornerRadiusTopStart="12dp"
|
||||
app:boxCornerRadiusTopEnd="12dp"
|
||||
app:boxCornerRadiusBottomStart="12dp"
|
||||
app:boxCornerRadiusBottomEnd="12dp">
|
||||
|
||||
<AutoCompleteTextView
|
||||
android:id="@+id/autocomplete_order"
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/colorBackgroundLight">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textviewtitle"
|
||||
@@ -39,7 +40,8 @@
|
||||
android:paddingBottom="24dp"
|
||||
android:paddingTop="8dp"/>
|
||||
|
||||
<Button
|
||||
<com.google.android.material.button.MaterialButton
|
||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
||||
android:id="@+id/btnResetLaunch"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -49,10 +51,11 @@
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:text="Reset launch counter"
|
||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
||||
tools:ignore="HardcodedText" />
|
||||
tools:ignore="HardcodedText"
|
||||
app:cornerRadius="12dp"/>
|
||||
|
||||
<Button
|
||||
<com.google.android.material.button.MaterialButton
|
||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
||||
android:id="@+id/btnResetNotif"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -63,8 +66,8 @@
|
||||
android:layout_marginEnd="24dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:text="Reset ping counter"
|
||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
||||
tools:ignore="HardcodedText" />
|
||||
tools:ignore="HardcodedText"
|
||||
app:cornerRadius="12dp"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorBackgroundLight">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textviewtitle"
|
||||
@@ -19,7 +20,7 @@
|
||||
android:textAlignment="viewStart"/>
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="8dp">
|
||||
|
||||
@@ -34,7 +35,7 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dialogtext"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:textColor="@color/colorText"/>
|
||||
|
||||
@@ -47,7 +48,11 @@
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:textColorHint="@color/colorHint"
|
||||
android:importantForAutofill="no">
|
||||
android:importantForAutofill="no"
|
||||
app:boxCornerRadiusTopStart="12dp"
|
||||
app:boxCornerRadiusTopEnd="12dp"
|
||||
app:boxCornerRadiusBottomStart="12dp"
|
||||
app:boxCornerRadiusBottomEnd="12dp">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/dialog_edittext"
|
||||
@@ -61,7 +66,7 @@
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<Button
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/dialog_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -69,7 +74,8 @@
|
||||
android:text="@string/apply"
|
||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
||||
app:strokeColor="@color/colorAccent"
|
||||
app:strokeWidth="2dp"/>
|
||||
app:strokeWidth="2dp"
|
||||
app:cornerRadius="12dp"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorBackgroundLight">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/empty_textviewtitle"
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorBackgroundLight">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/empty_textviewtitle"
|
||||
|
||||
Reference in New Issue
Block a user