mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-06-20 08:00:58 +00:00
Migrate App Compat Buttons To Material Buttons
This commit is contained in:
parent
1e6175854c
commit
a9806fcfb7
3 changed files with 33 additions and 11 deletions
|
@ -28,10 +28,8 @@
|
|||
android:layout_height="250dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.496"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/toolbar_layout"
|
||||
app:layout_constraintVertical_bias="0.399" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/toolbar_layout" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvTransfer"
|
||||
|
@ -41,6 +39,7 @@
|
|||
android:textColor="?attr/primaryText"
|
||||
android:textSize="22sp"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginBottom="5dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/tvDescription"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
@ -54,10 +53,7 @@
|
|||
android:text="@string/transfer_entry_description"
|
||||
app:layout_constraintBottom_toTopOf="@+id/ivQrCode"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="1.0" />
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvIssuer"
|
||||
|
@ -88,7 +84,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
style="@style/Widget.MaterialComponents.Button.TextButton"
|
||||
android:text="@string/next"
|
||||
android:textAllCaps="false"
|
||||
android:textColor="@color/code_primary_text"
|
||||
|
@ -101,7 +97,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
style="@style/Widget.MaterialComponents.Button.TextButton"
|
||||
android:text="@string/previous"
|
||||
android:textAllCaps="false"
|
||||
android:visibility="invisible"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingTop="12dp"
|
||||
|
@ -53,7 +54,8 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/colorSecondary"
|
||||
android:text="@string/save"
|
||||
style="?android:attr/borderlessButtonStyle" />
|
||||
app:rippleColor="@color/dialog_button_ripple_color"
|
||||
style="@style/Widget.MaterialComponents.Button.TextButton" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnClear"
|
||||
|
@ -61,7 +63,8 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/colorSecondary"
|
||||
android:text="@string/clear"
|
||||
style="?android:attr/borderlessButtonStyle" />
|
||||
app:rippleColor="@color/dialog_button_ripple_color"
|
||||
style="@style/Widget.MaterialComponents.Button.TextButton" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue