make the input boxes look prettier

This commit is contained in:
Kay Faraday 2023-06-05 21:39:07 +00:00
parent fac728df0a
commit 139a64a765
3 changed files with 7 additions and 11 deletions

View File

@ -12,7 +12,8 @@
<com.google.android.material.textfield.TextInputLayout
style="@style/my_style"
android:id="@+id/subtotal_text_input_layout"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Subtotal">
@ -27,10 +28,11 @@
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/tax_input_layout"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Tax"
style="@style/my_style"
>
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/tax_edit"
@ -41,7 +43,8 @@
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
style="@style/my_style"
android:id="@+id/gratuity_input_layout"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Gratuity"
@ -67,7 +70,7 @@
<TextView
android:id="@+id/results_text"
style="@style/my_style"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="24sp"

View File

@ -3,5 +3,4 @@
<dimen name="padding">16dp</dimen>
<dimen name="small_padding">8dp</dimen>
<dimen name="layout_margin">16dp</dimen>
</resources>

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="my_style">
<item name="android:layout_marginTop">@dimen/layout_margin</item>
<item name="android:paddingTop">@dimen/small_padding</item>
</style></resources>