Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Booking App COM5007
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
austin.blanke
Booking App COM5007
Commits
d45cc8f1
Commit
d45cc8f1
authored
May 27, 2023
by
austin.blanke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Testing Login Button
parent
6b997b5a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
108 additions
and
20 deletions
+108
-20
LoginActivity.java
...va/com/example/bookingapp_austinblanke/LoginActivity.java
+25
-0
MainActivity.java
...ava/com/example/bookingapp_austinblanke/MainActivity.java
+5
-6
activity_main.xml
app/src/main/res/layout/activity_main.xml
+1
-14
login_activity.xml
app/src/main/res/layout/login_activity.xml
+77
-0
No files found.
app/src/main/java/com/example/bookingapp_austinblanke/LoginActivity.java
0 → 100644
View file @
d45cc8f1
package
com
.
example
.
bookingapp_austinblanke
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.EditText
;
import
android.widget.Toast
;
public
class
LoginActivity
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
login_activity
);
}
public
void
login
(
View
view
)
{
Intent
intent
=
new
Intent
(
this
,
MainActivity
.
class
);
startActivity
(
intent
);
}
}
\ No newline at end of file
app/src/main/java/com/example/bookingapp_austinblanke/MainActivity.java
View file @
d45cc8f1
package
com
.
example
.
bookingapp_austinblanke
;
package
com
.
example
.
bookingapp_austinblanke
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.EditText
;
import
android.widget.Toast
;
import
androidx.appcompat.app.AppCompatActivity
;
public
class
MainActivity
extends
AppCompatActivity
{
public
class
MainActivity
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_main
);
}
}
}
\ No newline at end of file
app/src/main/res/layout/activity_main.xml
View file @
d45cc8f1
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"#00050533"
android:background=
"#00050533"
android:text=
"
Blanke
Shows"
android:text=
"Shows"
android:textAppearance=
"@style/TextAppearance.AppCompat.Display1"
android:textAppearance=
"@style/TextAppearance.AppCompat.Display1"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
...
@@ -20,17 +20,4 @@
...
@@ -20,17 +20,4 @@
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.199"
/>
app:layout_constraintVertical_bias=
"0.199"
/>
<Button
android:id=
"@+id/button"
android:layout_width=
"168dp"
android:layout_height=
"55dp"
android:background=
"#0D698B"
android:text=
"Login"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.497"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.676"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/login_activity.xml
0 → 100644
View file @
d45cc8f1
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#F2F1E8"
tools:context=
".LoginActivity"
>
<TextView
android:id=
"@+id/textView"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"#00050533"
android:text=
"Blanke Shows"
android:textAppearance=
"@style/TextAppearance.AppCompat.Display1"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.199"
/>
<Button
android:id=
"@+id/Login"
android:layout_width=
"168dp"
android:layout_height=
"55dp"
android:background=
"#0D698B"
android:onClick=
"login"
android:text=
"Login"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.497"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.676"
/>
<Button
android:id=
"@+id/CreateAccount"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Create Account"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.498"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.809"
/>
<EditText
android:id=
"@+id/Username"
android:layout_width=
"218dp"
android:layout_height=
"68dp"
android:ems=
"10"
android:inputType=
"textPersonName"
android:text=
"Username"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.497"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.398"
/>
<EditText
android:id=
"@+id/Password"
android:layout_width=
"228dp"
android:layout_height=
"71dp"
android:ems=
"10"
android:hint=
"Password"
android:inputType=
"textPassword"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.502"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.52"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment