diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 1f943f0..3599197 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -17,7 +17,7 @@
android:networkSecurityConfig="@xml/network_security_config">
+ android:exported="false">
{
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
- Button nextButton = (Button)findViewById(R.id.newAccount);
- nextButton.setOnClickListener(new View.OnClickListener(){
+ // username = findViewById(R.id.username);
+ // password = findViewById(R.id.password);
+ // loginButton = findViewById(R.id.loginButton);
+
+ Button loginButton = (Button)findViewById(R.id.loginButton);
+ loginButton.setOnClickListener(new View.OnClickListener(){
+
+ public void onClick(View v){
+ Intent intent = new Intent(LoginActivity.this,MainActivity.class);
+ startActivity(intent);
+ }
+ });
+ Button newButton = (Button)findViewById(R.id.newAccount);
+ newButton.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
Intent intent = new Intent(LoginActivity.this,MainActivity.class);
diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml
index 18a868c..775e98c 100644
--- a/app/src/main/res/layout/activity_login.xml
+++ b/app/src/main/res/layout/activity_login.xml
@@ -1,90 +1,102 @@
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:card_view="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/main"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/loginbkg_1"
+ android:gravity="center"
+ android:orientation="vertical"
+ tools:context=".MainActivity">
+
+
+ android:id="@+id/linearLayout"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintHorizontal_bias="0.0"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintVertical_bias="0.503">
+ android:id="@+id/cardView2"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="30dp"
+ android:background="@color/purple_200"
+ app:cardCornerRadius="30dp"
+ app:cardElevation="20dp"
+ tools:layout_editor_absoluteX="30dp">
-
+ android:layout_width="376dp"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:padding="40dp"
+ android:orientation="vertical">
+ android:id="@+id/loginText"
+ android:textStyle="bold"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Login"
+ android:textAlignment="center"
+ android:textColor="#00BCD4"
+ android:textSize="36sp" />
-
+ android:id="@+id/username"
+ android:layout_width="match_parent"
+ android:layout_height="50dp"
+ android:layout_marginTop="40dp"
+ android:padding="8dp"
+ android:drawableLeft="@drawable/baseline_face_24"
+ android:drawablePadding="8dp"
+ android:hint="Username"
+ android:textColor="@color/black"
+ android:textColorHighlight="@color/cardview_dark_background" />
-
+ android:id="@+id/password"
+ android:layout_width="match_parent"
+ android:layout_height="50dp"
+ android:layout_marginTop="20dp"
+ android:padding="13dp"
+ android:drawableLeft="@android:drawable/ic_secure"
+ android:drawablePadding="8dp"
+ android:hint=" Password"
+ android:inputType="textPassword"
+ android:textColor="@color/black"
+ android:textColorHighlight="@color/cardview_dark_background" />
+ android:id="@+id/loginButton"
+ android:layout_width="match_parent"
+ android:layout_height="60dp"
+ android:layout_marginTop="30dp"
+ android:backgroundTint="#00BCD4"
+ android:text="Login"
+ android:textSize="18sp"
+ app:cornerRadius="20dp" />
@@ -96,19 +108,5 @@
-
-
\ No newline at end of file