Refactored login, fixed skip and variable names
This commit is contained in:
@@ -26,7 +26,7 @@ public class GetStart1Activity extends AppCompatActivity {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
|
||||
Intent newScreen = new Intent(getApplicationContext(), GetStart2Activity.class);
|
||||
Intent newScreen = new Intent(getApplicationContext(), LoginActivity.class);
|
||||
startActivity(newScreen);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -3,7 +3,6 @@ package com.example.myapp_1;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.MenuItem;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
@@ -21,7 +20,7 @@ public class HomeActivity extends AppCompatActivity {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_home);
|
||||
|
||||
BottomNavigationView bottomNavigationView = findViewById(R.id.bottomview);
|
||||
BottomNavigationView bottomNavigationView = findViewById(R.id.homeBottomView);
|
||||
bottomNavigationView.setOnNavigationItemSelectedListener(
|
||||
new BottomNavigationView.OnNavigationItemSelectedListener() {
|
||||
@Override
|
||||
@@ -43,6 +42,7 @@ public class HomeActivity extends AppCompatActivity {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,17 +30,17 @@ public class LoginActivity extends AppCompatActivity {
|
||||
|
||||
username = findViewById(R.id.editTextText);
|
||||
password = findViewById(R.id.editTextTextPassword);
|
||||
forgetpassword = findViewById(R.id.forgetpass);
|
||||
// forgetpassword = findViewById(R.id.forgetpass);
|
||||
login = findViewById(R.id.button);
|
||||
signup = findViewById(R.id.button2);
|
||||
guestLogin= findViewById(R.id.button3);
|
||||
forgetpassword.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent newScreen = new Intent(getApplicationContext(), PasswordResetActivity.class);
|
||||
startActivity(newScreen);
|
||||
}
|
||||
});
|
||||
// forgetpassword.setOnClickListener(new View.OnClickListener() {
|
||||
// @Override
|
||||
// public void onClick(View v) {
|
||||
// Intent newScreen = new Intent(getApplicationContext(), PasswordResetActivity.class);
|
||||
// startActivity(newScreen);
|
||||
// }
|
||||
// });
|
||||
signup.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
||||
Reference in New Issue
Block a user