feat(login-ui): Improve button UI & add arrow icon

This commit is contained in:
Peter Vacho 2024-12-23 18:07:17 +01:00
parent db4fc34fe7
commit adc3e4d87f
Signed by: school
GPG key ID: 8CFC3837052871B4
2 changed files with 18 additions and 4 deletions

View file

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:pathData="M647,520L160,520v-80h487L423,216l57,-56 320,320 -320,320 -57,-56 224,-224Z"
android:fillColor="#e8eaed"/>
</vector>

View file

@ -44,7 +44,7 @@
</com.google.android.material.textfield.TextInputLayout>
<!-- Login Button -->
<Button
<com.google.android.material.button.MaterialButton
android:id="@+id/loginButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
@ -52,17 +52,22 @@
android:text="@string/login"
app:layout_constraintTop_toBottomOf="@id/passwordInputLayout"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
app:layout_constraintEnd_toEndOf="parent"
style="@style/Widget.MaterialComponents.Button" />
<!-- Register Button -->
<Button
<com.google.android.material.button.MaterialButton
android:id="@+id/registerButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="@string/register"
app:icon="@drawable/ic_arrow_forward"
app:iconGravity="textStart"
app:iconPadding="8dp"
app:layout_constraintTop_toBottomOf="@id/loginButton"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
app:layout_constraintEnd_toEndOf="parent"
style="@style/Widget.MaterialComponents.Button.OutlinedButton" />
</androidx.constraintlayout.widget.ConstraintLayout>