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
9ff2835a
Commit
9ff2835a
authored
Nov 08, 2019
by
SHAILESH KUMAR
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wallet
parent
4a13f121
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
243 additions
and
9 deletions
+243
-9
.idea/caches/build_file_checksums.ser
.idea/caches/build_file_checksums.ser
+0
-0
.idea/caches/gradle_models.ser
.idea/caches/gradle_models.ser
+0
-0
app/build.gradle
app/build.gradle
+1
-0
app/src/main/AndroidManifest.xml
app/src/main/AndroidManifest.xml
+4
-1
app/src/main/java/com/example/shady/parkingo/dashboard.java
app/src/main/java/com/example/shady/parkingo/dashboard.java
+17
-8
app/src/main/java/com/example/shady/parkingo/wallets.java
app/src/main/java/com/example/shady/parkingo/wallets.java
+14
-0
app/src/main/res/drawable/android/widget/annotations.xml
app/src/main/res/drawable/android/widget/annotations.xml
+5
-0
app/src/main/res/layout/activity_wallets.xml
app/src/main/res/layout/activity_wallets.xml
+186
-0
app/src/main/res/layout/dashboard_layout.xml
app/src/main/res/layout/dashboard_layout.xml
+2
-0
app/src/main/res/values/dimens.xml
app/src/main/res/values/dimens.xml
+3
-0
app/src/main/res/values/strings.xml
app/src/main/res/values/strings.xml
+1
-0
app/src/main/res/values/styles.xml
app/src/main/res/values/styles.xml
+10
-0
No files found.
.idea/caches/build_file_checksums.ser
View file @
9ff2835a
No preview for this file type
.idea/caches/gradle_models.ser
View file @
9ff2835a
No preview for this file type
app/build.gradle
View file @
9ff2835a
...
@@ -25,6 +25,7 @@ dependencies {
...
@@ -25,6 +25,7 @@ dependencies {
implementation
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
implementation
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
implementation
'com.android.support.constraint:constraint-layout:1.1.2'
implementation
'com.android.support.constraint:constraint-layout:1.1.2'
implementation
'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation
'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation
'com.android.support:design:28.0.0'
testImplementation
'junit:junit:4.12'
testImplementation
'junit:junit:4.12'
androidTestImplementation
'com.android.support.test:runner:1.0.2'
androidTestImplementation
'com.android.support.test:runner:1.0.2'
androidTestImplementation
'com.android.support.test.espresso:espresso-core:3.0.2'
androidTestImplementation
'com.android.support.test.espresso:espresso-core:3.0.2'
...
...
app/src/main/AndroidManifest.xml
View file @
9ff2835a
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
android:roundIcon=
"@mipmap/ic_launcher_round"
android:roundIcon=
"@mipmap/ic_launcher_round"
android:supportsRtl=
"true"
android:supportsRtl=
"true"
android:theme=
"@style/appTheme"
>
android:theme=
"@style/appTheme"
>
<activity
android:name=
".wallets"
></activity>
<activity
<activity
android:name=
".SplashActivity"
android:name=
".SplashActivity"
android:theme=
"@style/splash_screen"
>
android:theme=
"@style/splash_screen"
>
...
@@ -27,7 +28,9 @@
...
@@ -27,7 +28,9 @@
<activity
android:name=
".total_slot_status"
/>
<activity
android:name=
".total_slot_status"
/>
<activity
android:name=
".search"
/>
<activity
android:name=
".search"
/>
<activity
android:name=
".currentParks"
/>
<activity
android:name=
".currentParks"
/>
<activity
android:name=
".developers"
android:theme=
"@style/appTheme"
></activity>
<activity
android:name=
".developers"
android:theme=
"@style/appTheme"
/>
</application>
</application>
</manifest>
</manifest>
\ No newline at end of file
app/src/main/java/com/example/shady/parkingo/dashboard.java
View file @
9ff2835a
...
@@ -8,12 +8,14 @@ import android.os.Bundle;
...
@@ -8,12 +8,14 @@ import android.os.Bundle;
import
android.view.View
;
import
android.view.View
;
import
android.widget.Toast
;
import
android.widget.Toast
;
import
static
com
.
example
.
shady
.
parkingo
.
R
.*;
public
class
dashboard
extends
Activity
{
public
class
dashboard
extends
Activity
{
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
dashboard_layout
);
setContentView
(
layout
.
dashboard_layout
);
}
}
@Override
@Override
...
@@ -37,27 +39,34 @@ public class dashboard extends Activity {
...
@@ -37,27 +39,34 @@ public class dashboard extends Activity {
public
void
openNew
(
View
v
){
public
void
openNew
(
View
v
){
int
id
=
v
.
getId
();
int
id
=
v
.
getId
();
Intent
intent
=
null
;
Intent
intent
=
null
;
if
(
id
==
R
.
id
.
check_in
)
if
(
id
==
R
.
id
.
check_in
)
intent
=
new
Intent
(
dashboard
.
this
,
checkin
.
class
);
intent
=
new
Intent
(
dashboard
.
this
,
checkin
.
class
);
else
if
(
id
==
R
.
id
.
availability
)
else
if
(
id
==
R
.
id
.
availability
)
intent
=
new
Intent
(
dashboard
.
this
,
developers
.
class
);
intent
=
new
Intent
(
dashboard
.
this
,
developers
.
class
);
else
if
(
id
==
R
.
id
.
reprint
)
else
if
(
id
==
R
.
id
.
reprint
)
intent
=
new
Intent
(
dashboard
.
this
,
ticket
.
class
);
intent
=
new
Intent
(
dashboard
.
this
,
ticket
.
class
);
//else if(id==R.id.search)
//else if(id==R.id.search)
// intent = new Intent(dashboard.this, search.class);
// intent = new Intent(dashboard.this, search.class);
else
if
(
id
==
R
.
id
.
checkout
)
else
if
(
id
==
R
.
id
.
wallet
)
{
Toast
.
makeText
(
this
,
"Clicked"
,
Toast
.
LENGTH_SHORT
).
show
();
intent
=
new
Intent
(
dashboard
.
this
,
wallets
.
class
);
}
else
if
(
id
==
R
.
id
.
checkout
)
intent
=
new
Intent
(
dashboard
.
this
,
checkout
.
class
);
intent
=
new
Intent
(
dashboard
.
this
,
checkout
.
class
);
else
if
(
id
==
R
.
id
.
vehicle
)
else
if
(
id
==
R
.
id
.
vehicle
)
intent
=
new
Intent
(
dashboard
.
this
,
category_wise_availability
.
class
);
intent
=
new
Intent
(
dashboard
.
this
,
category_wise_availability
.
class
);
else
if
(
id
==
R
.
id
.
logout
)
else
if
(
id
==
R
.
id
.
logout
)
intent
=
new
Intent
(
dashboard
.
this
,
login_activity
.
class
);
intent
=
new
Intent
(
dashboard
.
this
,
login_activity
.
class
);
else
if
(
id
==
R
.
id
.
curparks
)
else
if
(
id
==
R
.
id
.
curparks
)
{
intent
=
new
Intent
(
dashboard
.
this
,
currentParks
.
class
);
intent
=
new
Intent
(
dashboard
.
this
,
currentParks
.
class
);
}
if
(
intent
!=
null
)
{
if
(
intent
!=
null
)
{
startActivity
(
intent
);
startActivity
(
intent
);
//finish();
//finish();
if
(
id
==
R
.
id
.
logout
){
if
(
id
==
R
.
id
.
logout
){
Toast
.
makeText
(
this
,
"Thank You for coming"
,
Toast
.
LENGTH_SHORT
).
show
();
Toast
.
makeText
(
this
,
"Thank You for coming"
,
Toast
.
LENGTH_SHORT
).
show
();
finish
();
finish
();
}
}
...
...
app/src/main/java/com/example/shady/parkingo/wallets.java
0 → 100644
View file @
9ff2835a
package
com.example.shady.parkingo
;
import
android.app.Activity
;
import
android.support.v7.app.AppCompatActivity
;
import
android.os.Bundle
;
public
class
wallets
extends
Activity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_wallets
);
}
}
app/src/main/res/drawable/android/widget/annotations.xml
0 → 100644
View file @
9ff2835a
<root>
<item
name=
'android.widget.Button'
>
<annotation
name=
'java.lang.Deprecated'
/>
</item>
</root>
\ No newline at end of file
app/src/main/res/layout/activity_wallets.xml
0 → 100644
View file @
9ff2835a
<LinearLayout
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:orientation=
"vertical"
android:background=
"#0C0C0C"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"80dp"
android:src=
"@drawable/logo"
android:background=
"@color/black"
android:contentDescription=
"Logo"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
android:paddingTop=
"20dp"
>
<android.support.v7.widget.CardView
android:id=
"@+id/balance"
android:layout_width=
"match_parent"
android:layout_height=
"150dp"
android:layout_column=
"1"
android:layout_margin=
"10dp"
android:paddingLeft=
"10dp"
android:paddingTop=
"0dp"
android:paddingRight=
"10dp"
android:paddingBottom=
"10dp"
app:cardBackgroundColor=
"#10F7C9"
app:cardElevation=
"35dp"
app:cardCornerRadius=
"30dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:textSize=
"70dp"
android:id=
"@+id/balance_amount"
android:text=
"\u20B9 3243"
android:textColor=
"#fff"
android:textColorHighlight=
"#00f"
android:textColorLink=
"@color/black"
android:shadowColor=
"#000"
android:outlineSpotShadowColor=
"#000"
>
</TextView>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id=
"@+id/transactions"
android:layout_width=
"match_parent"
android:layout_height=
"70dp"
android:layout_column=
"1"
android:layout_margin=
"10dp"
android:layout_marginTop=
"50dp"
android:paddingLeft=
"10dp"
android:paddingTop=
"0dp"
android:paddingRight=
"10dp"
android:paddingBottom=
"5dp"
app:cardBackgroundColor=
"#fff"
app:cardElevation=
"15dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:textSize=
"30dp"
android:text=
"\u2022 Transactions"
android:textColor=
"#000"
android:paddingLeft=
"25dp"
android:textColorHighlight=
"#00f"
android:textColorLink=
"@color/black"
android:shadowColor=
"#000"
android:outlineSpotShadowColor=
"#000"
>
</TextView>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"right|center_vertical"
android:text=
"view"
android:layout_marginEnd=
"20dp"
android:background=
"#fff"
android:padding=
"10dp"
android:textSize=
"20dp"
></TextView>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id=
"@+id/topup"
android:layout_width=
"match_parent"
android:layout_height=
"70dp"
android:layout_column=
"1"
android:layout_margin=
"10dp"
android:layout_marginTop=
"50dp"
android:paddingLeft=
"10dp"
android:paddingTop=
"0dp"
android:paddingRight=
"10dp"
android:paddingBottom=
"5dp"
app:cardBackgroundColor=
"#fff"
app:cardElevation=
"15dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:textSize=
"30dp"
android:text=
"\u2022 Top-Up"
android:textColor=
"#000"
android:paddingLeft=
"25dp"
android:textColorHighlight=
"#00f"
android:textColorLink=
"@color/black"
android:shadowColor=
"#000"
android:outlineSpotShadowColor=
"#000"
>
</TextView>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"right|center_vertical"
android:text=
"view"
android:layout_marginEnd=
"20dp"
android:background=
"#fff"
android:padding=
"10dp"
android:textSize=
"20dp"
></TextView>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id=
"@+id/withdraw"
android:layout_width=
"match_parent"
android:layout_height=
"70dp"
android:layout_column=
"1"
android:layout_margin=
"10dp"
android:layout_marginTop=
"50dp"
android:paddingLeft=
"10dp"
android:paddingTop=
"0dp"
android:paddingRight=
"10dp"
android:paddingBottom=
"5dp"
app:cardBackgroundColor=
"#fff"
app:cardElevation=
"15dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:textSize=
"26dp"
android:text=
"\u2022 Withdraw Money"
android:textColor=
"#000"
android:paddingLeft=
"25dp"
android:textColorHighlight=
"#00f"
android:textColorLink=
"@color/black"
android:shadowColor=
"#000"
android:outlineSpotShadowColor=
"#000"
>
</TextView>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"right|center_vertical"
android:text=
"view"
android:layout_marginEnd=
"20dp"
android:background=
"#fff"
android:padding=
"10dp"
android:textSize=
"20dp"
></TextView>
</android.support.v7.widget.CardView>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/dashboard_layout.xml
View file @
9ff2835a
...
@@ -337,6 +337,7 @@
...
@@ -337,6 +337,7 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<android.support.v7.widget.CardView
<android.support.v7.widget.CardView
android:id=
"@+id/wallet"
android:layout_width=
"150dp"
android:layout_width=
"150dp"
android:layout_height=
"150dp"
android:layout_height=
"150dp"
android:layout_column=
"1"
android:layout_column=
"1"
...
@@ -347,6 +348,7 @@
...
@@ -347,6 +348,7 @@
android:paddingBottom=
"10dp"
android:paddingBottom=
"10dp"
app:cardBackgroundColor=
"#fff"
app:cardBackgroundColor=
"#fff"
app:cardElevation=
"35dp"
app:cardElevation=
"35dp"
android:onClick=
"openNew"
>
>
...
...
app/src/main/res/values/dimens.xml
0 → 100644
View file @
9ff2835a
<resources>
<dimen
name=
"fab_margin"
>
16dp
</dimen>
</resources>
app/src/main/res/values/strings.xml
View file @
9ff2835a
<resources>
<resources>
<string
name=
"app_name"
>
parkingo
</string>
<string
name=
"app_name"
>
parkingo
</string>
<string
name=
"title_activity_wallet"
>
wallet
</string>
</resources>
</resources>
app/src/main/res/values/styles.xml
View file @
9ff2835a
...
@@ -4,9 +4,19 @@
...
@@ -4,9 +4,19 @@
<style
name=
"splash_screen"
parent=
"android:Theme.NoTitleBar.Fullscreen"
>
<style
name=
"splash_screen"
parent=
"android:Theme.NoTitleBar.Fullscreen"
>
<!-- Customize your theme here. -->
<!-- Customize your theme here. -->
</style>
</style>
<style
name=
"appTheme"
parent=
"android:Theme.NoTitleBar"
>
<style
name=
"appTheme"
parent=
"android:Theme.NoTitleBar"
>
<!-- Customize your theme here. -->
<!-- Customize your theme here. -->
</style>
</style>
<style
name=
"appTheme.NoActionBar"
>
<item
name=
"windowActionBar"
>
false
</item>
<item
name=
"windowNoTitle"
>
true
</item>
</style>
<style
name=
"appTheme.AppBarOverlay"
parent=
"ThemeOverlay.AppCompat.Dark.ActionBar"
/>
<style
name=
"appTheme.PopupOverlay"
parent=
"ThemeOverlay.AppCompat.Light"
/>
</resources>
</resources>
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