Material3: Switch to M3 button everywhere
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn_forward"
|
android:id="@+id/btn_forward"
|
||||||
style="@style/Widget.MaterialComponents.Button.TextButton"
|
style="@style/Widget.Material3.Button.TextButton"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="56dp"
|
android:layout_height="56dp"
|
||||||
android:layout_margin="@dimen/margin_xsmall"
|
android:layout_margin="@dimen/margin_xsmall"
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn_backward"
|
android:id="@+id/btn_backward"
|
||||||
style="@style/Widget.MaterialComponents.Button.TextButton"
|
style="@style/Widget.Material3.Button.TextButton"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="56dp"
|
android:layout_height="56dp"
|
||||||
android:layout_margin="@dimen/margin_xsmall"
|
android:layout_margin="@dimen/margin_xsmall"
|
||||||
@@ -83,4 +83,4 @@
|
|||||||
app:rippleColor="@color/colorTabDefault" />
|
app:rippleColor="@color/colorTabDefault" />
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
|
|||||||
@@ -72,10 +72,10 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn_beta_Action"
|
android:id="@+id/btn_beta_Action"
|
||||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="end"
|
android:layout_gravity="end"
|
||||||
android:minWidth="128dp"
|
android:minWidth="128dp"
|
||||||
android:text="@string/action_join" />
|
android:text="@string/action_join" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -134,7 +134,7 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn_uninstall"
|
android:id="@+id/btn_uninstall"
|
||||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/action_uninstall"
|
android:text="@string/action_uninstall"
|
||||||
@@ -145,7 +145,7 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn_open"
|
android:id="@+id/btn_open"
|
||||||
style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
|
style="@style/Widget.Material3.Button.UnelevatedButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/action_open"
|
android:text="@string/action_open"
|
||||||
@@ -155,4 +155,4 @@
|
|||||||
app:strokeColor="?colorAccent" />
|
app:strokeColor="?colorAccent" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</ViewFlipper>
|
</ViewFlipper>
|
||||||
|
|||||||
@@ -115,9 +115,9 @@
|
|||||||
</HorizontalScrollView>
|
</HorizontalScrollView>
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
|
style="@style/Widget.Material3.Button.UnelevatedButton"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/height_button"
|
android:layout_height="@dimen/height_button"
|
||||||
android:layout_margin="@dimen/margin_large"
|
android:layout_margin="@dimen/margin_large"
|
||||||
android:text="Install" />
|
android:text="Install" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -103,7 +103,7 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn_secondary"
|
android:id="@+id/btn_secondary"
|
||||||
style="@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush"
|
style="@style/Widget.Material3.Button.TextButton.Dialog.Flush"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="@dimen/height_button"
|
android:layout_height="@dimen/height_button"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
@@ -111,10 +111,10 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn_primary"
|
android:id="@+id/btn_primary"
|
||||||
style="@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush"
|
style="@style/Widget.Material3.Button.TextButton.Dialog.Flush"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="@dimen/height_button"
|
android:layout_height="@dimen/height_button"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="@string/action_disable" />
|
android:text="@string/action_disable" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -142,7 +142,7 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn_positive"
|
android:id="@+id/btn_positive"
|
||||||
style="@style/Widget.MaterialComponents.Button.TextButton"
|
style="@style/Widget.Material3.Button.TextButton"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="@dimen/height_button"
|
android:layout_height="@dimen/height_button"
|
||||||
android:text="@string/action_filter_apply"
|
android:text="@string/action_filter_apply"
|
||||||
@@ -154,7 +154,7 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn_negative"
|
android:id="@+id/btn_negative"
|
||||||
style="@style/Widget.MaterialComponents.Button.TextButton"
|
style="@style/Widget.Material3.Button.TextButton"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="@dimen/height_button"
|
android:layout_height="@dimen/height_button"
|
||||||
android:text="@string/action_close"
|
android:text="@string/action_close"
|
||||||
@@ -165,4 +165,4 @@
|
|||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:rippleColor="@color/colorTransparent" />
|
app:rippleColor="@color/colorTransparent" />
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|||||||
@@ -93,7 +93,7 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn_secondary"
|
android:id="@+id/btn_secondary"
|
||||||
style="@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush"
|
style="@style/Widget.Material3.Button.TextButton.Dialog.Flush"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="@dimen/height_button"
|
android:layout_height="@dimen/height_button"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
@@ -101,10 +101,10 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn_primary"
|
android:id="@+id/btn_primary"
|
||||||
style="@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush"
|
style="@style/Widget.Material3.Button.TextButton.Dialog.Flush"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="@dimen/height_button"
|
android:layout_height="@dimen/height_button"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="@string/action_ok" />
|
android:text="@string/action_ok" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -117,7 +117,7 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn_secondary"
|
android:id="@+id/btn_secondary"
|
||||||
style="@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush"
|
style="@style/Widget.Material3.Button.TextButton.Dialog.Flush"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="@dimen/height_button"
|
android:layout_height="@dimen/height_button"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
@@ -125,10 +125,10 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn_primary"
|
android:id="@+id/btn_primary"
|
||||||
style="@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush"
|
style="@style/Widget.Material3.Button.TextButton.Dialog.Flush"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="@dimen/height_button"
|
android:layout_height="@dimen/height_button"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="@string/action_check" />
|
android:text="@string/action_check" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn"
|
android:id="@+id/btn"
|
||||||
style="@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush"
|
style="@style/Widget.Material3.Button.TextButton.Dialog.Flush"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn_action"
|
android:id="@+id/btn_action"
|
||||||
style="@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush"
|
style="@style/Widget.Material3.Button.TextButton.Dialog.Flush"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/icon_size_category"
|
android:layout_height="@dimen/icon_size_category"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
@@ -60,4 +60,4 @@
|
|||||||
android:layout_marginEnd="@dimen/margin_small"
|
android:layout_marginEnd="@dimen/margin_small"
|
||||||
android:padding="@dimen/padding_xsmall"
|
android:padding="@dimen/padding_xsmall"
|
||||||
android:text="@string/action_update_all" />
|
android:text="@string/action_update_all" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|||||||
@@ -43,11 +43,11 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn_action"
|
android:id="@+id/btn_action"
|
||||||
style="@style/Widget.MaterialComponents.Button.TextButton.Dialog.Flush"
|
style="@style/Widget.Material3.Button.TextButton.Dialog.Flush"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginStart="@dimen/margin_small"
|
android:layout_marginStart="@dimen/margin_small"
|
||||||
android:text="@string/action_grant" />
|
android:text="@string/action_grant" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn"
|
android:id="@+id/btn"
|
||||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton.Icon"
|
style="@style/Widget.Material3.Button.OutlinedButton.Icon"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btnPositive"
|
android:id="@+id/btnPositive"
|
||||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/action_update"
|
android:text="@string/action_update"
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btnQueued"
|
android:id="@+id/btnQueued"
|
||||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btnNegative"
|
android:id="@+id/btnNegative"
|
||||||
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/action_cancel"
|
android:text="@string/action_cancel"
|
||||||
|
|||||||
Reference in New Issue
Block a user