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"> +