Guest Login
This commit is contained in:
@@ -19,6 +19,8 @@ public class LoginActivity extends AppCompatActivity {
|
|||||||
Button login;
|
Button login;
|
||||||
Button signup;
|
Button signup;
|
||||||
|
|
||||||
|
Button guestLogin;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
@@ -29,7 +31,7 @@ public class LoginActivity extends AppCompatActivity {
|
|||||||
forgetpassword = findViewById(R.id.forgetpass);
|
forgetpassword = findViewById(R.id.forgetpass);
|
||||||
login = findViewById(R.id.button);
|
login = findViewById(R.id.button);
|
||||||
signup = findViewById(R.id.button2);
|
signup = findViewById(R.id.button2);
|
||||||
|
guestLogin= findViewById(R.id.button3);
|
||||||
forgetpassword.setOnClickListener(new View.OnClickListener() {
|
forgetpassword.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
@@ -44,6 +46,16 @@ public class LoginActivity extends AppCompatActivity {
|
|||||||
startActivity(newScreen);
|
startActivity(newScreen);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
guestLogin.setOnClickListener(new View.OnClickListener(){
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
Intent newScreen = new Intent(getApplicationContext(), HomeActivity.class);
|
||||||
|
startActivity(newScreen);
|
||||||
|
}
|
||||||
|
});
|
||||||
login.setOnClickListener(new View.OnClickListener() {
|
login.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
|||||||
@@ -87,9 +87,25 @@
|
|||||||
android:text="SignUp"
|
android:text="SignUp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintHorizontal_bias="0.487"
|
app:layout_constraintHorizontal_bias="0.407"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/button"
|
app:layout_constraintTop_toBottomOf="@+id/button"
|
||||||
app:layout_constraintVertical_bias="0.0" />
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/button3"
|
||||||
|
style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
|
||||||
|
android:layout_width="372dp"
|
||||||
|
android:layout_height="60dp"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:background="#2155F3"
|
||||||
|
android:backgroundTint="#2155F3"
|
||||||
|
android:text="Guest Login"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintHorizontal_bias="0.41"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/button"
|
||||||
|
app:layout_constraintVertical_bias="0.278" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@@ -4,5 +4,5 @@
|
|||||||
# Location of the SDK. This is only used by Gradle.
|
# Location of the SDK. This is only used by Gradle.
|
||||||
# For customization when using a Version Control System, please read the
|
# For customization when using a Version Control System, please read the
|
||||||
# header note.
|
# header note.
|
||||||
#Wed Dec 06 17:47:01 EET 2023
|
#Wed Dec 20 09:27:23 EET 2023
|
||||||
sdk.dir=C\:\\Users\\Beast\\AppData\\Local\\Android\\Sdk
|
sdk.dir=C\:\\Users\\ahmed\\AppData\\Local\\Android\\Sdk
|
||||||
|
|||||||
Reference in New Issue
Block a user