Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
parkingo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
SHAILESH KUMAR
parkingo
Commits
4df4b9d7
Commit
4df4b9d7
authored
Nov 27, 2019
by
Bhavesh Yadav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc ui changes
parent
fa09ded7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
173 additions
and
135 deletions
+173
-135
app/src/main/java/com/example/infiniteLoop/parkingo/ticket.java
...c/main/java/com/example/infiniteLoop/parkingo/ticket.java
+9
-1
app/src/main/res/layout/checkout_layout.xml
app/src/main/res/layout/checkout_layout.xml
+164
-134
No files found.
app/src/main/java/com/example/infiniteLoop/parkingo/ticket.java
View file @
4df4b9d7
package
com.example.infiniteLoop.parkingo
;
import
android.app.Activity
;
import
android.app.ProgressDialog
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.util.Log
;
...
...
@@ -20,6 +21,7 @@ public class ticket extends Activity {
TextView
slot
,
tkt
,
time_tv
,
date_tv
,
vehicle
,
ticket_title
,
checkout_time
,
charge_value
;
TextView
checkout_date
;
ArrayList
ticketData
;
ProgressDialog
progress
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
...
...
@@ -50,6 +52,11 @@ public class ticket extends Activity {
ticket_no
=
i
.
getExtras
().
getString
(
"ticket_no"
);
sqlite_ops
so
=
new
sqlite_ops
(
this
);
so
.
getTicketDetails
(
ticket_no
,
this
);
progress
=
new
ProgressDialog
(
ticket
.
this
);
progress
.
setTitle
(
"Checking in"
);
progress
.
setMessage
(
"Getting ticket details..."
);
progress
.
setCancelable
(
false
);
// disable dismiss by tapping outside of the dialog
progress
.
show
();
//waiting popup
}
if
(
i
.
hasExtra
(
"checkout"
)){
...
...
@@ -89,6 +96,7 @@ public class ticket extends Activity {
}
public
void
showTicketDetails
(
ArrayList
ticketData
)
{
progress
.
dismiss
();
slot
.
setText
(
ticketData
.
get
(
1
).
toString
());
tkt
.
setText
(
ticketData
.
get
(
0
).
toString
().
substring
(
0
,
4
).
toUpperCase
());
long
datetime
=
Long
.
parseLong
(
ticketData
.
get
(
3
).
toString
());
...
...
@@ -108,5 +116,5 @@ public class ticket extends Activity {
finish
();
}
}
app/src/main/res/layout/checkout_layout.xml
View file @
4df4b9d7
This diff is collapsed.
Click to expand it.
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