Explorar el Código

fix style in layout

MrOzOn hace 4 años
padre
commit
5cc45cdcd9

+ 1 - 0
feature_auth/build.gradle

@@ -70,6 +70,7 @@ dependencies {
     implementation legacySupport
     implementation appCompat
     implementation androidxCore
+    implementation material
     //Unit test
     testImplementation junit
     testImplementation mockitoCore

+ 4 - 2
feature_auth/src/main/res/layout/fragment_login.xml

@@ -27,6 +27,7 @@
 
             <EditText
                 android:id="@+id/etUserName"
+                style="@style/AppTheme"
                 android:layout_width="0dp"
                 android:layout_height="wrap_content"
                 android:layout_marginStart="32dp"
@@ -41,6 +42,7 @@
 
             <EditText
                 android:id="@+id/etUserPassword"
+                style="@style/AppTheme"
                 android:layout_width="0dp"
                 android:layout_height="wrap_content"
                 android:layout_marginStart="32dp"
@@ -56,7 +58,7 @@
 
             <Button
                 android:id="@+id/btnLogin"
-                style="@style/Widget.AppCompat.Button.Colored"
+                style="@style/Widget.MaterialComponents.Button"
                 android:layout_width="0dp"
                 android:layout_height="wrap_content"
                 android:layout_marginStart="32dp"
@@ -70,7 +72,7 @@
 
             <Button
                 android:id="@+id/btnRegistration"
-                style="@style/Widget.AppCompat.Button.Borderless.Colored"
+                style="@style/Widget.MaterialComponents.Button.OutlinedButton"
                 android:layout_width="0dp"
                 android:layout_height="wrap_content"
                 android:layout_marginStart="32dp"