Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CarRental_Christopher_Foster
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
christopher.foster
CarRental_Christopher_Foster
Commits
c115fbd7
Commit
c115fbd7
authored
May 13, 2020
by
christopher.foster
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Review Buttons added, no reviews yet
parent
ff985e3b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
3 deletions
+63
-3
MainActivity.java
app/src/main/java/com/example/assignment/MainActivity.java
+3
-3
activity_carlist.xml
app/src/main/res/layout/activity_carlist.xml
+60
-0
No files found.
app/src/main/java/com/example/assignment/MainActivity.java
View file @
c115fbd7
...
@@ -49,9 +49,9 @@ public class MainActivity extends AppCompatActivity {
...
@@ -49,9 +49,9 @@ public class MainActivity extends AppCompatActivity {
handler
.
addNewUser
(
Name
.
getText
().
toString
(),
UserName
.
getText
().
toString
(),
Password
.
getText
().
toString
());
handler
.
addNewUser
(
Name
.
getText
().
toString
(),
UserName
.
getText
().
toString
(),
Password
.
getText
().
toString
());
//Error Here
//
Toast.makeText(getApplicationContext(),
Toast
.
makeText
(
getApplicationContext
(),
//
"registration complete\n" + handler.finduser(UserName.getText().toString()), Toast.LENGTH_LONG).show();
"registration complete\n"
+
handler
.
finduser
(
UserName
.
getText
().
toString
()),
Toast
.
LENGTH_LONG
).
show
();
}
}
public
void
loginBtn
(
View
v
)
public
void
loginBtn
(
View
v
)
{
{
...
...
app/src/main/res/layout/activity_carlist.xml
View file @
c115fbd7
...
@@ -237,4 +237,64 @@ air conditioning, ABS brakes, 2 people "
...
@@ -237,4 +237,64 @@ air conditioning, ABS brakes, 2 people "
android:text=
"£8"
android:text=
"£8"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/textView22"
/>
app:layout_constraintTop_toBottomOf=
"@+id/textView22"
/>
<Button
android:id=
"@+id/benzReview"
android:layout_width=
"77dp"
android:layout_height=
"33dp"
android:layout_marginStart=
"2dp"
android:layout_marginLeft=
"2dp"
android:layout_marginTop=
"7dp"
android:text=
"Review"
android:textSize=
"11sp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/textView7"
/>
<Button
android:id=
"@+id/toyReview"
android:layout_width=
"77dp"
android:layout_height=
"33dp"
android:layout_marginStart=
"2dp"
android:layout_marginLeft=
"2dp"
android:layout_marginTop=
"7dp"
android:text=
"Review"
android:textSize=
"11sp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/textView8"
/>
<Button
android:id=
"@+id/honReview"
android:layout_width=
"77dp"
android:layout_height=
"33dp"
android:layout_marginStart=
"2dp"
android:layout_marginLeft=
"2dp"
android:layout_marginTop=
"7dp"
android:text=
"Review"
android:textSize=
"11sp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/textView9"
/>
<Button
android:id=
"@+id/jagReview"
android:layout_width=
"77dp"
android:layout_height=
"33dp"
android:layout_marginStart=
"2dp"
android:layout_marginLeft=
"2dp"
android:layout_marginTop=
"7dp"
android:text=
"Review"
android:textSize=
"11sp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/textView10"
/>
<Button
android:id=
"@+id/audReview"
android:layout_width=
"77dp"
android:layout_height=
"33dp"
android:layout_marginStart=
"2dp"
android:layout_marginLeft=
"2dp"
android:layout_marginTop=
"7dp"
android:text=
"Review"
android:textSize=
"11sp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/textView11"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</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