Skip to content

Commit

Permalink
Refactoring of buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandr7035 committed Nov 9, 2023
1 parent 9cab34e commit 9aac34f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/src/main/res/layout/filters_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/includeLanguagesLabel" />

<Button
<com.google.android.material.button.MaterialButton
android:id="@+id/applyButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_info_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
android:textSize="16sp"
tools:text="@string/error_cant_get_data_remote" />

<Button
<com.google.android.material.button.MaterialButton
android:id="@+id/dismissButton"
android:layout_marginTop="10dp"
android:layout_width="match_parent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
android:textSize="16sp"
android:text="@string/error_sync_authorization" />

<Button
<com.google.android.material.button.MaterialButton
android:id="@+id/logOutBtn"
android:layout_marginTop="10dp"
android:layout_width="match_parent"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_sync_failed_network.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
android:text="@string/error_cant_get_data_remote"
tools:text="@string/error_cant_get_data_remote" />

<Button
<com.google.android.material.button.MaterialButton
android:id="@+id/retryBtn"
android:layout_marginTop="10dp"
android:layout_width="match_parent"
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

<style name="BottomSheetDialogStyle" parent="Theme.MaterialComponents.Light.BottomSheetDialog">
<item name="bottomSheetStyle">@style/bottomSheetBackground</item>
<item name="materialButtonStyle">@style/PrimaryButton</item>
<item name="colorPrimary">@color/gray_400</item>
</style>

<style name="bottomSheetBackground">
Expand Down

0 comments on commit 9aac34f

Please sign in to comment.