Skip to content
Snippets Groups Projects
Commit f841558c authored by Antonio Natthan Krishna's avatar Antonio Natthan Krishna
Browse files

Merge branch 'feat/login-page' into 'develop'

Feat/login page

See merge request !4
parents 8964fed7 1b0c6300
Branches
Tags
2 merge requests!10Develop,!4Feat/login page
Showing
with 166 additions and 1 deletion
...@@ -55,6 +55,7 @@ dependencies { ...@@ -55,6 +55,7 @@ dependencies {
implementation("androidx.constraintlayout:constraintlayout:2.1.4") implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("com.google.devtools.ksp:symbol-processing-api:1.9.22-1.0.17") implementation("com.google.devtools.ksp:symbol-processing-api:1.9.22-1.0.17")
implementation("androidx.compose.runtime:runtime:1.6.3") implementation("androidx.compose.runtime:runtime:1.6.3")
implementation("androidx.cardview:cardview:1.0.0")
val nav_version = "2.7.7" val nav_version = "2.7.7"
......
...@@ -12,11 +12,15 @@ ...@@ -12,11 +12,15 @@
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.BondoMan" android:theme="@style/Theme.BondoMan"
tools:targetApi="31"> tools:targetApi="31">
<activity
android:name=".activities.LoginActivity"
android:exported="false" />
<activity <activity
android:name=".activities.MainActivity" android:name=".activities.MainActivity"
android:exported="true"> android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </intent-filter>
</activity> </activity>
......
package com.example.bondoman.activities
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.bondoman.R
class LoginActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_login)
}
}
\ No newline at end of file
app/src/main/res/drawable/bondoman.png

50.9 KiB

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke android:color="@color/gray" android:width="1dp"/>
<corners android:radius="70dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="10dp"/>
<solid android:color="@color/green"/>
</shape>
\ No newline at end of file
File added
File added
File added
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activities.LoginActivity"
>
<ImageView
android:id="@+id/imageView"
android:layout_width="266dp"
android:layout_height="94dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.496"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.262"
app:srcCompat="@drawable/bondoman"
/>
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="40dp"
android:layout_marginEnd="8dp"
app:cardCornerRadius="30dp"
app:cardElevation="4dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView"
app:layout_constraintVertical_bias="0.1"
app:strokeColor="@color/gray"
app:strokeWidth="1dp"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginVertical="30dp"
android:orientation="vertical"
>
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_600"
android:text="Masuk"
android:textAlignment="center"
android:textColor="@color/black"
android:textColorHint="@color/black"
android:textSize="24sp"
android:textStyle="bold" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="12dp"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:fontFamily="@font/montserrat_500"
android:text="Email"
android:textColor="@color/black"
android:textSize="14sp" />
<EditText
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="@drawable/input_bg"
android:layout_marginTop="10dp"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:fontFamily="@font/montserrat_500"
android:text="Password"
android:textColor="@color/black"
android:textSize="14sp" />
<EditText
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="@drawable/input_bg"
android:layout_marginTop="10dp"
/>
</LinearLayout>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_700"
android:background="@drawable/rounded_button"
android:text="Masuk"
android:layout_marginTop="20dp"
android:layout_gravity="center_horizontal"
android:textColor="@color/white"
android:paddingHorizontal="15dp"
/>
</LinearLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
</com.google.android.material.textfield.TextInputLayout>
</com.google.android.material.card.MaterialCardView>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<resources>
<dimen name="activity_horizontal_margin">48dp</dimen>
</resources>
\ No newline at end of file
<resources>
<dimen name="activity_horizontal_margin">200dp</dimen>
</resources>
\ No newline at end of file
<resources>
<dimen name="activity_horizontal_margin">48dp</dimen>
</resources>
\ No newline at end of file
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
<color name="teal_700">#FF018786</color> <color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color> <color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color> <color name="white">#FFFFFFFF</color>
<color name="gray">#D9D9D9</color>
<color name="brown_1">#F1E4C3</color> <color name="brown_1">#F1E4C3</color>
<color name="brown_2">#C6A969</color> <color name="brown_2">#C6A969</color>
<color name="green">#597E52</color> <color name="green">#597E52</color>
</resources> </resources>
\ No newline at end of file
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
</resources>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment