Skip to content

Commit

Permalink
Fixed old UI, Created Remaja Login UI
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritzmauritz committed Dec 6, 2023
1 parent b22e665 commit 71b5054
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 8 deletions.
15 changes: 14 additions & 1 deletion .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added app/src/main/res/drawable/ilustrasi_remaja.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 14 additions & 7 deletions app/src/main/res/layout/activity_login_bidan.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
app:layout_constraintLeft_toLeftOf="parent"
android:layout_marginVertical="20dp"
android:hint="Username"
android:background="@drawable/rounded_text_input_layout_background">
app:boxCornerRadiusBottomStart="12dp"
app:boxCornerRadiusBottomEnd="12dp"
app:boxCornerRadiusTopEnd="12dp"
app:boxCornerRadiusTopStart="12dp"
>
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="match_parent"/>
Expand All @@ -50,9 +54,11 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="20dp"
android:background="@drawable/rounded_text_input_layout_background"
app:boxCornerRadiusBottomStart="12dp"
app:boxCornerRadiusBottomEnd="12dp"
app:boxCornerRadiusTopEnd="12dp"
app:boxCornerRadiusTopStart="12dp"
android:hint="Password"
app:hintTextAppearance="@font/inter_bold"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/usernameInput"
Expand All @@ -76,18 +82,19 @@
android:paddingVertical="14dp"
/>

<Button


<com.google.android.material.button.MaterialButton
android:id="@+id/loginButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cornerRadius="12dp"
android:text="Login"
app:layout_constraintTop_toBottomOf="@+id/hyperlinkLupaPassword"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
android:background="@drawable/button_background"
android:fontFamily="@font/inter_bold"
android:textSize="14dp"/>
/>

android:textSize="14sp"/>

</androidx.constraintlayout.widget.ConstraintLayout>
97 changes: 97 additions & 0 deletions app/src/main/res/layout/activity_login_remaja.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:paddingHorizontal="20dp"
android:paddingVertical="14dp">

<TextView
android:id="@+id/loginTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/inter_bold"
android:text="Login Sebagai Remaja"
android:textSize="20sp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
android:layout_marginTop="14dp"
/>

<ImageView
android:id="@+id/imageBidan"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="32dp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/loginTitle"
app:srcCompat="@drawable/ilustrasi_remaja" />

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/usernameInput"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/imageBidan"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
android:layout_marginVertical="20dp"
android:hint="Username"
app:boxCornerRadiusBottomStart="12dp"
app:boxCornerRadiusBottomEnd="12dp"
app:boxCornerRadiusTopEnd="12dp"
app:boxCornerRadiusTopStart="12dp"
>
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</com.google.android.material.textfield.TextInputLayout>

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/passwordInput"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="20dp"
app:boxCornerRadiusBottomStart="12dp"
app:boxCornerRadiusBottomEnd="12dp"
app:boxCornerRadiusTopEnd="12dp"
app:boxCornerRadiusTopStart="12dp"
android:hint="Password"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/usernameInput"
app:passwordToggleEnabled="true">

<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"/>
</com.google.android.material.textfield.TextInputLayout>

<TextView
android:id="@+id/hyperlinkLupaPassword"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Lupa Password?"
android:autoLink="web"
android:linksClickable="true"
app:layout_constraintTop_toBottomOf="@+id/passwordInput"
app:layout_constraintEnd_toEndOf="@+id/passwordInput"
android:paddingVertical="14dp"
/>

<com.google.android.material.button.MaterialButton
android:id="@+id/loginButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cornerRadius="12dp"
android:text="Login"
app:layout_constraintTop_toBottomOf="@+id/hyperlinkLupaPassword"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
android:background="@drawable/button_background"
android:fontFamily="@font/inter_bold"
android:textSize="14sp"/>

</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit 71b5054

Please sign in to comment.