Commit 36e83edd authored by Viktor De Pasquale's avatar Viktor De Pasquale

Fixed dialog buttons after a theme change

parent 6b045ead
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/dialog_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
......@@ -27,33 +28,36 @@
android:orientation="horizontal"
android:padding="2dp">
<Button
<com.google.android.material.button.MaterialButton
android:id="@+id/negative"
style="?android:attr/buttonBarButtonStyle"
style="@style/Widget.Button.Text"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:layout_weight="1"
android:maxLines="2" />
android:maxLines="2"
tools:text="Negative" />
<Button
<com.google.android.material.button.MaterialButton
android:id="@+id/neutral"
style="?android:attr/buttonBarButtonStyle"
style="@style/Widget.Button.Text"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:layout_weight="1"
android:maxLines="2" />
android:maxLines="2"
tools:text="Neutral" />
<Button
<com.google.android.material.button.MaterialButton
android:id="@+id/positive"
style="?android:attr/buttonBarButtonStyle"
style="@style/Widget.Button.Text"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:layout_weight="1"
android:maxLines="2" />
android:maxLines="2"
tools:text="Positive" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
</LinearLayout>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment