Commit 747fe30e authored by chris.crook's avatar chris.crook

> basic navigation wip done

parent 4c62cf61
...@@ -2,7 +2,9 @@ package com.example.summative_chris_crook; ...@@ -2,7 +2,9 @@ package com.example.summative_chris_crook;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.view.View;
public class AdminMenu extends AppCompatActivity { public class AdminMenu extends AppCompatActivity {
...@@ -11,4 +13,9 @@ public class AdminMenu extends AppCompatActivity { ...@@ -11,4 +13,9 @@ public class AdminMenu extends AppCompatActivity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_admin_menu); setContentView(R.layout.activity_admin_menu);
} }
public void goback (View view){
Intent intent = new Intent(this,MainActivity.class);
startActivity(intent);
}
} }
\ No newline at end of file
...@@ -2,7 +2,9 @@ package com.example.summative_chris_crook; ...@@ -2,7 +2,9 @@ package com.example.summative_chris_crook;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.view.View;
public class UserMenu extends AppCompatActivity { public class UserMenu extends AppCompatActivity {
...@@ -11,4 +13,9 @@ public class UserMenu extends AppCompatActivity { ...@@ -11,4 +13,9 @@ public class UserMenu extends AppCompatActivity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_user_menu); setContentView(R.layout.activity_user_menu);
} }
public void goback (View view){
Intent intent = new Intent(this,MainActivity.class);
startActivity(intent);
}
} }
\ No newline at end of file
...@@ -2,7 +2,9 @@ package com.example.summative_chris_crook; ...@@ -2,7 +2,9 @@ package com.example.summative_chris_crook;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.view.View;
public class register_page extends AppCompatActivity { public class register_page extends AppCompatActivity {
...@@ -11,4 +13,9 @@ public class register_page extends AppCompatActivity { ...@@ -11,4 +13,9 @@ public class register_page extends AppCompatActivity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_register_page); setContentView(R.layout.activity_register_page);
} }
public void goback (View view){
Intent intent = new Intent(this,MainActivity.class);
startActivity(intent);
}
} }
\ No newline at end of file
...@@ -6,4 +6,16 @@ ...@@ -6,4 +6,16 @@
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".AdminMenu"> tools:context=".AdminMenu">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<Button
android:id="@+id/button5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="goback"
android:text="Log Out" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
...@@ -6,4 +6,16 @@ ...@@ -6,4 +6,16 @@
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".register_page"> tools:context=".register_page">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<Button
android:id="@+id/button3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="goback"
android:text="Log in page" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
...@@ -6,4 +6,16 @@ ...@@ -6,4 +6,16 @@
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".UserMenu"> tools:context=".UserMenu">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<Button
android:id="@+id/button4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="goback"
android:text="Log Out" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
Markdown is supported
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