Commit 9ff2835a authored by SHAILESH KUMAR's avatar SHAILESH KUMAR

wallet

parent 4a13f121
......@@ -25,6 +25,7 @@ dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.android.support:design:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
......
......@@ -9,6 +9,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/appTheme">
<activity android:name=".wallets"></activity>
<activity
android:name=".SplashActivity"
android:theme="@style/splash_screen">
......@@ -27,7 +28,9 @@
<activity android:name=".total_slot_status" />
<activity android:name=".search" />
<activity android:name=".currentParks" />
<activity android:name=".developers" android:theme="@style/appTheme"></activity>
<activity
android:name=".developers"
android:theme="@style/appTheme" />
</application>
</manifest>
\ No newline at end of file
......@@ -8,12 +8,14 @@ import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
import static com.example.shady.parkingo.R.*;
public class dashboard extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.dashboard_layout);
setContentView(layout.dashboard_layout);
}
@Override
......@@ -37,27 +39,34 @@ public class dashboard extends Activity {
public void openNew(View v){
int id= v.getId();
Intent intent=null;
if(id==R.id.check_in)
if(id== R.id.check_in)
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);
else if(id==R.id.reprint)
else if(id== R.id.reprint)
intent = new Intent(dashboard.this, ticket.class);
//else if(id==R.id.search)
// 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);
else if(id==R.id.vehicle)
else if(id== R.id.vehicle)
intent = new Intent(dashboard.this, category_wise_availability.class);
else if(id== R.id.logout)
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);
}
if(intent!=null) {
startActivity(intent);
//finish();
if(id==R.id.logout){
if(id== R.id.logout){
Toast.makeText(this,"Thank You for coming",Toast.LENGTH_SHORT).show();
finish();
}
......
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);
}
}
<root>
<item name='android.widget.Button'>
<annotation name='java.lang.Deprecated' />
</item>
</root>
\ No newline at end of file
<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
......@@ -337,6 +337,7 @@
android:orientation="horizontal">
<android.support.v7.widget.CardView
android:id="@+id/wallet"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_column="1"
......@@ -347,6 +348,7 @@
android:paddingBottom="10dp"
app:cardBackgroundColor="#fff"
app:cardElevation="35dp"
android:onClick="openNew"
>
......
<resources>
<dimen name="fab_margin">16dp</dimen>
</resources>
<resources>
<string name="app_name">parkingo</string>
<string name="title_activity_wallet">wallet</string>
</resources>
......@@ -4,9 +4,19 @@
<style name="splash_screen" parent="android:Theme.NoTitleBar.Fullscreen">
<!-- Customize your theme here. -->
</style>
<style name="appTheme" parent="android:Theme.NoTitleBar">
<!-- Customize your theme here. -->
</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>
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