├── .gitignore
├── .idea
├── compiler.xml
├── copyright
│ └── profiles_settings.xml
├── gradle.xml
├── misc.xml
├── modules.xml
└── runConfigurations.xml
├── README.md
├── Screenshot_20170321-183901.png
├── Screenshot_20170321-183922.png
├── app
├── .gitignore
├── build.gradle
├── libs
│ ├── cloudinary-android-1.2.2.jar
│ └── cloudinary-core-1.2.2.jar
├── proguard-rules.pro
└── src
│ ├── androidTest
│ └── java
│ │ └── com
│ │ └── example
│ │ └── mayankaggarwal
│ │ └── appathon
│ │ └── ExampleInstrumentedTest.java
│ ├── main
│ ├── AndroidManifest.xml
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── mayankaggarwal
│ │ │ └── appathon
│ │ │ ├── AddContact.java
│ │ │ ├── AddProduct.java
│ │ │ ├── Data.java
│ │ │ ├── Globals.java
│ │ │ ├── ItemView.java
│ │ │ ├── MainActivity.java
│ │ │ ├── Prefs.java
│ │ │ ├── RVConatctList.java
│ │ │ ├── RVOrderList.java
│ │ │ ├── SeeOrder.java
│ │ │ ├── SuccessActivity.java
│ │ │ ├── SuccessProduct.java
│ │ │ └── rest
│ │ │ ├── ApiClient.java
│ │ │ ├── ApiInterface.java
│ │ │ └── LoginRequest.java
│ └── res
│ │ ├── anim
│ │ └── alphaanimation.xml
│ │ ├── drawable-v21
│ │ ├── ic_menu_camera.xml
│ │ ├── ic_menu_gallery.xml
│ │ ├── ic_menu_manage.xml
│ │ ├── ic_menu_send.xml
│ │ ├── ic_menu_share.xml
│ │ └── ic_menu_slideshow.xml
│ │ ├── drawable
│ │ ├── addproduct.png
│ │ ├── arrow.png
│ │ ├── bar.png
│ │ ├── best.gif
│ │ ├── bg.png
│ │ ├── cardone.png
│ │ ├── cardthree.png
│ │ ├── cardtwo.png
│ │ ├── drawable-hdpi
│ │ │ └── ic_launcher.png
│ │ ├── drawable-mdpi
│ │ │ └── ic_launcher.png
│ │ ├── drawable-xhdpi
│ │ │ └── ic_launcher.png
│ │ ├── drawable-xxhdpi
│ │ │ └── ic_launcher.png
│ │ ├── drawable-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ ├── help.png
│ │ ├── ic_launcher.png
│ │ ├── navicon.png
│ │ ├── options.png
│ │ ├── shopone.png
│ │ ├── shopping.png
│ │ ├── side_nav_bar.xml
│ │ ├── ticcck.gif
│ │ ├── tick.png
│ │ ├── tiiiik.png
│ │ └── untick.png
│ │ ├── layout
│ │ ├── activity_add_contact.xml
│ │ ├── activity_add_product.xml
│ │ ├── activity_main.xml
│ │ ├── activity_see_order.xml
│ │ ├── activity_success.xml
│ │ ├── activity_success_product.xml
│ │ ├── app_bar_main.xml
│ │ ├── content_main.xml
│ │ ├── item_view.xml
│ │ ├── itemsecondary.xml
│ │ ├── nav_header_main.xml
│ │ └── order_item_layout.xml
│ │ ├── menu
│ │ ├── activity_main_drawer.xml
│ │ └── main.xml
│ │ ├── values-v21
│ │ └── styles.xml
│ │ ├── values-w820dp
│ │ └── dimens.xml
│ │ └── values
│ │ ├── colors.xml
│ │ ├── dimens.xml
│ │ ├── drawables.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── mayankaggarwal
│ └── appathon
│ └── ExampleUnitTest.java
├── build.gradle
├── customandroid.gif
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── layout1.png
├── layout2.png
└── settings.gradle
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .externalNativeBuild
10 |
--------------------------------------------------------------------------------
/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
19 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # CustomAndroidLayout
2 | This project is created using custom Android Components. Circular Reveal animation is also added to the app along with the usage of GIF in Android and fetching contacts from phone.
3 |
4 | 
5 |
6 | 
7 |
8 | 
9 |
--------------------------------------------------------------------------------
/Screenshot_20170321-183901.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/Screenshot_20170321-183901.png
--------------------------------------------------------------------------------
/Screenshot_20170321-183922.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/Screenshot_20170321-183922.png
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 25
5 | buildToolsVersion "25.0.2"
6 | defaultConfig {
7 | applicationId "com.example.mayankaggarwal.appathon"
8 | minSdkVersion 19
9 | targetSdkVersion 25
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 |
25 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
26 | exclude group: 'com.android.support', module: 'support-annotations'
27 | })
28 | compile 'com.android.support:appcompat-v7:25.1.1'
29 | compile 'com.android.support:design:25.1.1'
30 |
31 | compile 'com.android.support:cardview-v7:25.1.1'
32 | compile 'com.android.support:support-v4:25.1.1'
33 | compile 'com.google.code.gson:gson:2.7'
34 | compile 'com.squareup.retrofit2:retrofit:2.1.0'
35 | compile 'com.squareup.retrofit2:converter-gson:2.1.0'
36 | compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
37 | compile 'com.squareup.okhttp3:okhttp:3.4.1'
38 | compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
39 |
40 | compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.5'
41 |
42 | compile 'de.hdodenhof:circleimageview:2.1.0'
43 |
44 |
45 |
46 | testCompile 'junit:junit:4.12'
47 | }
48 |
--------------------------------------------------------------------------------
/app/libs/cloudinary-android-1.2.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/libs/cloudinary-android-1.2.2.jar
--------------------------------------------------------------------------------
/app/libs/cloudinary-core-1.2.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/libs/cloudinary-core-1.2.2.jar
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/mayankaggarwal/Library/Android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/app/src/androidTest/java/com/example/mayankaggarwal/appathon/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.example.mayankaggarwal.appathon", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
24 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
37 |
39 |
42 |
45 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/mayankaggarwal/appathon/AddContact.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon;
2 |
3 | import android.Manifest;
4 | import android.annotation.TargetApi;
5 | import android.content.DialogInterface;
6 | import android.content.Intent;
7 | import android.content.pm.PackageManager;
8 | import android.database.Cursor;
9 | import android.graphics.drawable.Drawable;
10 | import android.os.Build;
11 | import android.provider.ContactsContract;
12 | import android.support.v4.app.ActivityCompat;
13 | import android.support.v4.content.ContextCompat;
14 | import android.support.v7.app.AlertDialog;
15 | import android.support.v7.app.AppCompatActivity;
16 | import android.os.Bundle;
17 | import android.support.v7.widget.LinearLayoutManager;
18 | import android.support.v7.widget.RecyclerView;
19 | import android.util.Log;
20 | import android.view.View;
21 | import android.view.Window;
22 | import android.view.WindowManager;
23 | import android.widget.Button;
24 | import android.widget.Toast;
25 |
26 | import java.util.ArrayList;
27 | import java.util.List;
28 |
29 | public class AddContact extends AppCompatActivity {
30 |
31 |
32 | private static final int PERMISSION_REQUEST_CONTACT =1 ;
33 | List nameList=new ArrayList<>();
34 | List numberList=new ArrayList<>();
35 | private RecyclerView recyclerView;
36 | public static Button addButton;
37 |
38 | @Override
39 | protected void onCreate(Bundle savedInstanceState) {
40 | super.onCreate(savedInstanceState);
41 | setContentView(R.layout.activity_add_contact);
42 |
43 | Drawable drawable = ContextCompat.getDrawable(getApplicationContext(),R.drawable.bg);
44 |
45 | // requestWindowFeature(Window.FEATURE_NO_TITLE);
46 | this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
47 | getSupportActionBar().setBackgroundDrawable(drawable);
48 | getSupportActionBar().setTitle("Add People");
49 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
50 |
51 | Globals.nameList.clear();
52 | Globals.numberList.clear();
53 |
54 | recyclerView=(RecyclerView)findViewById(R.id.recycler_view);
55 | recyclerView.setLayoutManager(new LinearLayoutManager(this));
56 | addButton=(Button)findViewById(R.id.button);
57 |
58 | addButton.setOnClickListener(new View.OnClickListener() {
59 | @Override
60 | public void onClick(View v) {
61 | // Log.d("tagg", String.valueOf(Globals.nameList.size()));
62 | if(Globals.nameList.size()>0){
63 | finish();
64 | Intent intent=new Intent(AddContact.this,SuccessActivity.class);
65 | startActivity(intent);
66 | }else{
67 | Toast.makeText(AddContact.this,"None Selected",Toast.LENGTH_LONG);
68 | }
69 |
70 | }
71 | });
72 |
73 | askForContactPermission();
74 | }
75 |
76 | public void askForContactPermission() {
77 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
78 | if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) {
79 |
80 | if (ActivityCompat.shouldShowRequestPermissionRationale(this,
81 | Manifest.permission.READ_CONTACTS)) {
82 | AlertDialog.Builder builder = new AlertDialog.Builder(this);
83 | builder.setTitle("Contacts access needed");
84 | builder.setPositiveButton(android.R.string.ok, null);
85 | builder.setMessage("Please confirm Contacts access");//TODO put real question
86 | builder.setOnDismissListener(new DialogInterface.OnDismissListener() {
87 | @TargetApi(Build.VERSION_CODES.M)
88 | @Override
89 | public void onDismiss(DialogInterface dialog) {
90 | requestPermissions(
91 | new String[]
92 | {Manifest.permission.READ_CONTACTS}
93 | , PERMISSION_REQUEST_CONTACT);
94 | }
95 | });
96 | builder.show();
97 | } else {
98 | ActivityCompat.requestPermissions(this,
99 | new String[]{Manifest.permission.READ_CONTACTS},
100 | PERMISSION_REQUEST_CONTACT);
101 | }
102 | } else {
103 | getContact();
104 | }
105 | } else {
106 | getContact();
107 | }
108 | }
109 |
110 | private void getContact() {
111 |
112 | Cursor cursor = getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, null, null, null);
113 |
114 | while (cursor.moveToNext()) {
115 | String name = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME));
116 | String phoneNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));
117 | if(name.toLowerCase().contains("dharavi")){
118 | if(nameList.contains(name)){
119 | continue;
120 | }
121 | nameList.add(name);
122 | numberList.add(phoneNumber);
123 | // Log.d("tagg", "name:" + name + " phone:" + phoneNumber);
124 |
125 | }
126 | }
127 |
128 | recyclerView.setAdapter(new RVConatctList(nameList,numberList, this));
129 |
130 | }
131 |
132 |
133 |
134 |
135 | @Override
136 | public void onRequestPermissionsResult(int requestCode,
137 | String permissions[], int[] grantResults) {
138 | switch (requestCode) {
139 | case PERMISSION_REQUEST_CONTACT: {
140 | // If request is cancelled, the result arrays are empty.
141 | if (grantResults.length > 0
142 | && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
143 | getContact();
144 |
145 | } else {
146 | Toast.makeText(this, "No Permissions ", Toast.LENGTH_SHORT).show();
147 | }
148 | return;
149 | }
150 |
151 | }
152 | }
153 |
154 | }
155 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/mayankaggarwal/appathon/AddProduct.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon;
2 |
3 | import android.Manifest;
4 | import android.app.AlertDialog;
5 | import android.app.ProgressDialog;
6 | import android.content.DialogInterface;
7 | import android.content.Intent;
8 | import android.content.pm.PackageManager;
9 | import android.database.Cursor;
10 | import android.graphics.Bitmap;
11 | import android.graphics.Color;
12 | import android.graphics.Matrix;
13 | import android.graphics.drawable.ColorDrawable;
14 | import android.graphics.drawable.Drawable;
15 | import android.net.Uri;
16 | import android.os.Build;
17 | import android.os.Environment;
18 | import android.provider.ContactsContract;
19 | import android.provider.MediaStore;
20 | import android.support.annotation.NonNull;
21 | import android.support.v4.app.ActivityCompat;
22 | import android.support.v4.content.ContextCompat;
23 | import android.support.v7.app.AppCompatActivity;
24 | import android.os.Bundle;
25 | import android.text.TextUtils;
26 | import android.util.Log;
27 | import android.view.View;
28 | import android.view.WindowManager;
29 | import android.widget.AdapterView;
30 | import android.widget.ArrayAdapter;
31 | import android.widget.Button;
32 | import android.widget.EditText;
33 | import android.widget.ImageView;
34 | import android.widget.Spinner;
35 | import android.widget.Toast;
36 |
37 | import com.cloudinary.Cloudinary;
38 | import com.cloudinary.utils.ObjectUtils;
39 |
40 | import org.json.JSONException;
41 | import org.json.JSONObject;
42 |
43 | import java.io.File;
44 | import java.io.FileInputStream;
45 | import java.io.FileNotFoundException;
46 | import java.io.IOException;
47 | import java.io.InputStream;
48 | import java.util.ArrayList;
49 | import java.util.Arrays;
50 | import java.util.Calendar;
51 | import java.util.HashMap;
52 | import java.util.List;
53 | import java.util.Map;
54 | import java.util.concurrent.Future;
55 |
56 | import retrofit2.Response;
57 |
58 | import static android.R.attr.path;
59 |
60 | public class AddProduct extends AppCompatActivity implements AdapterView.OnItemSelectedListener {
61 |
62 |
63 | private static final int REQUEST_PERMISSION = 1;
64 | private static final int img=1;
65 | private static final int cap=2;
66 |
67 | EditText name,price,desc;
68 | Button addproduct;
69 | ImageView addimage;
70 | static int flag=0;
71 | static Uri capturedImageUri = null;
72 | int number=0;
73 | File file;
74 |
75 | Intent mainData;
76 |
77 | ProgressDialog pd ;
78 |
79 |
80 | @Override
81 | protected void onCreate(Bundle savedInstanceState) {
82 | super.onCreate(savedInstanceState);
83 | setContentView(R.layout.activity_add_product);
84 |
85 | this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
86 | getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor("#a856b1")));
87 | getSupportActionBar().setTitle("Add Product");
88 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
89 |
90 | name=(EditText)findViewById(R.id.name);
91 | price=(EditText)findViewById(R.id.price);
92 | desc=(EditText)findViewById(R.id.desc);
93 | addimage=(ImageView) findViewById(R.id.addimage);
94 |
95 | pd= new ProgressDialog(AddProduct.this);
96 | pd.setMessage("Uploading");
97 |
98 |
99 | Spinner spinner = (Spinner) findViewById(R.id.spinner);
100 |
101 | spinner.setOnItemSelectedListener(this);
102 |
103 | List categories = new ArrayList();
104 |
105 |
106 | String serialized = Prefs.getPrefs("storenamelist",this);
107 | serialized=serialized.replace("[","").replace("]","");
108 | List list = Arrays.asList(TextUtils.split(serialized, ","));
109 |
110 |
111 | for(String n:list){
112 | categories.add(n);
113 | }
114 |
115 | ArrayAdapter dataAdapter = new ArrayAdapter(this, android.R.layout.simple_spinner_item, categories);
116 |
117 | dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
118 |
119 | spinner.setAdapter(dataAdapter);
120 |
121 |
122 |
123 | addimage.setOnClickListener(new View.OnClickListener() {
124 | @Override
125 | public void onClick(View v) {
126 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M
127 | && ContextCompat.checkSelfPermission(AddProduct.this, Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
128 | ActivityCompat.requestPermissions(AddProduct.this, new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},
129 | REQUEST_PERMISSION);
130 | return;
131 | }
132 | AlertDialog.Builder builder=new AlertDialog.Builder(AddProduct.this);
133 | CharSequence[] array = {"Camera","Gallery"};
134 | builder.setTitle("Choose");
135 | builder.setSingleChoiceItems(array, 0, new DialogInterface.OnClickListener() {
136 | @Override
137 | public void onClick(DialogInterface dialog, int which) {
138 | number=which;
139 | }
140 | }).setPositiveButton("Ok", new DialogInterface.OnClickListener() {
141 | @Override
142 | public void onClick(DialogInterface dialog, int which) {
143 | if(number==0){
144 | flag=0;
145 | Calendar cal = Calendar.getInstance();
146 | File dir=new File(Environment.getExternalStorageDirectory()+"/Pik69");
147 | if(!dir.exists()){
148 | dir.mkdir();
149 | }
150 | file = new File(dir,(cal.getTimeInMillis() + ".jpg"));
151 | if (!file.exists()) {
152 | try {
153 | file.createNewFile();
154 | } catch (IOException e) {
155 | // TODO Auto-generated catch block
156 | e.printStackTrace();
157 | }
158 | } else {
159 | file.delete();
160 | try {
161 | file.createNewFile();
162 | } catch (IOException e) {
163 | // TODO Auto-generated catch block
164 | e.printStackTrace();
165 | }
166 | }
167 | capturedImageUri = Uri.fromFile(file);
168 | Log.v("uri",capturedImageUri.toString());
169 | Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
170 | intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, capturedImageUri);
171 | startActivityForResult(intent,cap);
172 |
173 | }else{
174 | Intent intent=new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
175 | intent.setType("image/*");
176 | startActivityForResult(Intent.createChooser(intent,"Select Picture"),img);
177 | }
178 | }
179 | }).setNegativeButton("No", new DialogInterface.OnClickListener() {
180 | @Override
181 | public void onClick(DialogInterface dialog, int which) {
182 | dialog.dismiss();
183 | }
184 | });
185 |
186 | builder.create();
187 | builder.show();
188 | }
189 | });
190 |
191 | addproduct=(Button)findViewById(R.id.addproduct);
192 |
193 | addproduct.setOnClickListener(new View.OnClickListener() {
194 | @Override
195 | public void onClick(View v) {
196 | uploadFile(mainData,name.getText().toString(),price.getText().toString(),desc.getText().toString());
197 | }
198 | });
199 | }
200 |
201 |
202 |
203 | @Override
204 | public void onRequestPermissionsResult(final int requestCode, @NonNull final String[] permissions, @NonNull final int[] grantResults) {
205 | super.onRequestPermissionsResult(requestCode, permissions, grantResults);
206 | if (requestCode == REQUEST_PERMISSION) {
207 | if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
208 | // Permission granted.
209 | // Prefs.setPrefs("readPermission","1",this);
210 | } else {
211 | // User refused to grant permission.
212 | // Prefs.setPrefs("readPermission","0",this);
213 | }
214 | }
215 | }
216 |
217 | @Override
218 | protected void onActivityResult(int requestCode, int resultCode, Intent data) {
219 | flag = 0;
220 | super.onActivityResult(requestCode, resultCode, data);
221 | if (requestCode == img && resultCode == RESULT_OK && data != null && data.getData() != null) {
222 | data.getData();
223 | //Log.e("uridata",data.getData().toString());
224 |
225 | if (data.getData() != null) {
226 | //Log.v("uri",data.getData().toString());
227 | Bitmap photo = null;
228 | try {
229 | photo = MediaStore.Images.Media.getBitmap(getContentResolver()
230 | , data.getData());
231 | flag = 2;
232 | photo = getResizedBitmap(photo, 900, 900);
233 | addimage.setImageBitmap(photo);
234 | mainData=data;
235 | } catch (IOException e) {
236 | e.printStackTrace();
237 | }
238 |
239 | //Bitmap bitmap = ((BitmapDrawable)imageView.getDrawable()).getBitmap();
240 | //mFaceOverlayView.setBitmap(bitmap);
241 | } else if (requestCode == cap && resultCode == RESULT_OK) {
242 | flag = 0;
243 | //Bundle extra=data.getExtras();
244 | //Bitmap photo=(Bitmap)extra.get("data");
245 | Bitmap photo = null;
246 | try {
247 | photo = MediaStore.Images.Media.getBitmap(getContentResolver()
248 | , capturedImageUri);
249 |
250 | flag = 1;
251 | photo = getResizedBitmap(photo, 900, 1200);
252 | addimage.setImageBitmap(photo);
253 | mainData=data;
254 | } catch (IOException e) {
255 | e.printStackTrace();
256 | }
257 |
258 | }
259 | }
260 |
261 | }
262 |
263 | public void uploadFile(Intent data,String name,String price,String desc){
264 | pd.show();
265 | Uri uripath= data.getData();
266 | String uri = getRealPathFromURI( uripath);
267 |
268 | FileInputStream is=null;
269 | try {
270 | is = new FileInputStream(uri);
271 | } catch (FileNotFoundException e) {
272 | e.printStackTrace();
273 | }
274 |
275 | Log.d("tagg","working");
276 |
277 | Data.updateAttendance(this, is,name,price,desc, new Data.UpdateCallback() {
278 | @Override
279 | public void onUpdate() {
280 | pd.dismiss();
281 | }
282 |
283 | @Override
284 | public void onFailure() {
285 | pd.dismiss();
286 | }
287 | });
288 | }
289 |
290 | public String getRealPathFromURI(Uri contentUri) {
291 | Cursor cursor = null;
292 | try {
293 | String[] proj = { MediaStore.Images.Media.DATA };
294 | cursor =getContentResolver().query(contentUri, proj, null, null, null);
295 | int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
296 | cursor.moveToFirst();
297 | return cursor.getString(column_index);
298 | } finally {
299 | if (cursor != null) {
300 | cursor.close();
301 | }
302 | }
303 | }
304 |
305 | public Bitmap getResizedBitmap(Bitmap bm, int newWidth, int newHeight) {
306 | int width = bm.getWidth();
307 | int height = bm.getHeight();
308 | float scaleWidth = ((float) newWidth) / width;
309 | float scaleHeight = ((float) newHeight) / height;
310 | // CREATE A MATRIX FOR THE MANIPULATION
311 | Matrix matrix = new Matrix();
312 | // RESIZE THE BIT MAP
313 | matrix.postScale(scaleWidth, scaleHeight);
314 |
315 | // "RECREATE" THE NEW BITMAP
316 | Bitmap resizedBitmap = Bitmap.createBitmap(
317 | bm, 0, 0, width, height, matrix, false);
318 | bm.recycle();
319 | return resizedBitmap;
320 | }
321 |
322 | @Override
323 | public void onItemSelected(AdapterView> parent, View view, int position, long id) {
324 | // String item = parent.getItemAtPosition(position).toString();
325 |
326 | // Showing selected spinner item
327 | // Toast.makeText(parent.getContext(), "Selected: " + item, Toast.LENGTH_LONG).show();
328 | }
329 |
330 | @Override
331 | public void onNothingSelected(AdapterView> parent) {
332 |
333 | }
334 | }
335 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/mayankaggarwal/appathon/Data.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon;
2 |
3 | import android.app.Activity;
4 | import android.content.Intent;
5 | import android.os.AsyncTask;
6 | import android.util.Log;
7 |
8 | import com.cloudinary.Cloudinary;
9 | import com.cloudinary.utils.ObjectUtils;
10 | import com.example.mayankaggarwal.appathon.rest.ApiClient;
11 | import com.example.mayankaggarwal.appathon.rest.ApiInterface;
12 | import com.example.mayankaggarwal.appathon.rest.LoginRequest;
13 | import com.google.gson.JsonObject;
14 |
15 | import java.io.IOException;
16 | import java.io.InputStream;
17 | import java.util.ArrayList;
18 | import java.util.HashMap;
19 | import java.util.List;
20 | import java.util.Map;
21 | import java.util.UUID;
22 |
23 | import retrofit2.Call;
24 | import retrofit2.Callback;
25 | import retrofit2.Response;
26 |
27 | /**
28 | * Created by mayankaggarwal on 12/02/17.
29 | */
30 |
31 | public class Data {
32 |
33 | public static void updateAttendance(final Activity activity, final InputStream is, final String name, final String price, final String desc, final UpdateCallback updateCallback) {
34 | GetAttendance getAttendance = new GetAttendance(is, name, price, desc, updateCallback);
35 | getAttendance.execute(activity);
36 | }
37 |
38 |
39 | public static class GetAttendance extends AsyncTask {
40 |
41 | UpdateCallback updateCallback;
42 | Cloudinary cloudinary;
43 | InputStream is;
44 | String name;
45 | String price;
46 | String desc;
47 |
48 | GetAttendance(InputStream is, String name, String price, String desc, UpdateCallback updateCallback) {
49 | this.is = is;
50 | this.name = name;
51 | this.price = price;
52 | this.desc = desc;
53 | this.updateCallback = updateCallback;
54 | }
55 |
56 | @Override
57 | protected Integer doInBackground(Activity... params) {
58 | final Activity activity = params[0];
59 | Map config = new HashMap();
60 | config.put("cloud_name", "dcgslof1v");
61 | config.put("api_key", "931346753328684");
62 | config.put("api_secret", "pNqgkD40iYDAKsP4wez6Ha3IqAM");
63 | cloudinary = new Cloudinary(config);
64 |
65 | try {
66 | String random_number=UUID.randomUUID().toString();
67 | cloudinary.uploader().upload(is, ObjectUtils.asMap("public_id",random_number));
68 | String link = cloudinary.url().generate(random_number);
69 | // Log.d("tagg", cloudinary.url().generate("sample_remote.jpg"));
70 | ApiInterface apiInterface = new ApiClient().getClient(activity).create(ApiInterface.class);
71 | LoginRequest loginRequest = new LoginRequest();
72 | loginRequest.name = name;
73 | loginRequest.price = price;
74 | loginRequest.descripition = desc;
75 | loginRequest.link = link;
76 | final Call attendance = apiInterface.pushData(loginRequest);
77 | attendance.enqueue(new Callback() {
78 | @Override
79 | public void onResponse(Call call, Response response) {
80 | // Log.d("tagg", response.body().toString());
81 | activity.finish();
82 | activity.startActivity(new Intent(activity, SuccessProduct.class));
83 | }
84 |
85 | @Override
86 | public void onFailure(Call call, Throwable t) {
87 |
88 | }
89 | });
90 | } catch (Exception e) {
91 | e.printStackTrace();
92 | // // Log.d("tagg", "exceptionthrowm");
93 | // updateCallback.onFailure();
94 | }
95 | return 0;
96 | }
97 |
98 | @Override
99 | protected void onPostExecute(Integer integer) {
100 | // Log.d("tagg","out of async");
101 | updateCallback.onUpdate();
102 | }
103 | }
104 |
105 |
106 | public interface UpdateCallback {
107 | void onUpdate();
108 |
109 | void onFailure();
110 | }
111 | }
112 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/mayankaggarwal/appathon/Globals.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon;
2 |
3 | import java.util.ArrayList;
4 | import java.util.List;
5 |
6 | /**
7 | * Created by mayankaggarwal on 04/03/17.
8 | */
9 |
10 | public class Globals {
11 |
12 | public static List nameList=new ArrayList<>();
13 |
14 | public static List numberList=new ArrayList<>();
15 |
16 | public static String done=null;
17 |
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/mayankaggarwal/appathon/ItemView.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon;
2 |
3 | import android.content.Context;
4 | import android.util.AttributeSet;
5 | import android.view.LayoutInflater;
6 | import android.widget.ImageView;
7 | import android.widget.LinearLayout;
8 | import android.widget.TextView;
9 |
10 | /**
11 | * Created by mayankaggarwal on 05/03/17.
12 | */
13 |
14 | public class ItemView extends LinearLayout {
15 |
16 | ImageView checkbox;
17 | TextView name;
18 | TextView number;
19 | Boolean checking;
20 |
21 | public void intialize() {
22 | LayoutInflater layoutInflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
23 | layoutInflater.inflate(R.layout.item_view, this, true);
24 |
25 | checkbox = (ImageView) findViewById(R.id.tickimage);
26 | name = (TextView) findViewById(R.id.name);
27 | number = (TextView) findViewById(R.id.phone);
28 |
29 | }
30 |
31 |
32 | public void setValues(Boolean checked, String nameString, String phoneString) {
33 | setCheck(checked);
34 | name.setText(nameString);
35 | number.setText(phoneString);
36 | }
37 |
38 | public void setImageClick(Boolean checked){
39 | setCheck(checked);
40 | }
41 |
42 | public ImageView getCheckButton() {
43 | return checkbox;
44 | }
45 |
46 | public void setCheck(Boolean checked) {
47 | if (checked != null) {
48 | if (checked) {
49 | checking=true;
50 | checkbox.setImageResource(R.drawable.tick);
51 | } else {
52 | checking=false;
53 | checkbox.setImageResource(R.drawable.untick);
54 | }
55 | } else {
56 | checkbox.setImageResource(R.drawable.untick);
57 | }
58 | }
59 |
60 | public Boolean getCheck() {
61 | return checking;
62 | }
63 |
64 | public ItemView(Context context) {
65 | super(context);
66 | intialize();
67 | }
68 |
69 | public ItemView(Context context, AttributeSet attrs) {
70 | super(context, attrs);
71 | intialize();
72 | }
73 |
74 | public ItemView(Context context, AttributeSet attrs, int defStyleAttr) {
75 | super(context, attrs, defStyleAttr);
76 | intialize();
77 | }
78 |
79 |
80 | }
81 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/mayankaggarwal/appathon/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon;
2 |
3 | import android.Manifest;
4 | import android.animation.Animator;
5 | import android.annotation.TargetApi;
6 | import android.content.DialogInterface;
7 | import android.content.Intent;
8 | import android.content.pm.PackageManager;
9 | import android.database.Cursor;
10 | import android.graphics.Color;
11 | import android.graphics.drawable.ColorDrawable;
12 | import android.graphics.drawable.Drawable;
13 | import android.media.Image;
14 | import android.net.Uri;
15 | import android.os.Build;
16 | import android.os.Bundle;
17 | import android.provider.ContactsContract;
18 | import android.support.annotation.RequiresApi;
19 | import android.support.design.widget.FloatingActionButton;
20 | import android.support.design.widget.Snackbar;
21 | import android.support.v4.app.ActivityCompat;
22 | import android.support.v4.content.ContextCompat;
23 | import android.support.v4.media.MediaMetadataCompat;
24 | import android.support.v7.app.AlertDialog;
25 | import android.support.v7.widget.CardView;
26 | import android.support.v7.widget.LinearLayoutManager;
27 | import android.support.v7.widget.RecyclerView;
28 | import android.util.Log;
29 | import android.view.Gravity;
30 | import android.view.LayoutInflater;
31 | import android.view.View;
32 | import android.support.design.widget.NavigationView;
33 | import android.support.v4.view.GravityCompat;
34 | import android.support.v4.widget.DrawerLayout;
35 | import android.support.v7.app.ActionBarDrawerToggle;
36 | import android.support.v7.app.AppCompatActivity;
37 | import android.support.v7.widget.Toolbar;
38 | import android.view.Menu;
39 | import android.view.MenuItem;
40 | import android.view.ViewAnimationUtils;
41 | import android.view.WindowManager;
42 | import android.widget.ArrayAdapter;
43 | import android.widget.ImageView;
44 | import android.widget.LinearLayout;
45 | import android.widget.ListView;
46 | import android.widget.TextView;
47 | import android.widget.Toast;
48 |
49 | import java.util.ArrayList;
50 | import java.util.List;
51 |
52 | public class MainActivity extends AppCompatActivity
53 | implements NavigationView.OnNavigationItemSelectedListener {
54 |
55 | ImageView optionone,optiontwo,optionthree,optiononeset,optiontwoset,optionthreeset;
56 | CardView card,extraone,extratwo,cardtwo,cardthree,extrathree;
57 | LinearLayout calltext;
58 | TextView bugs;
59 |
60 | @Override
61 | protected void onCreate(Bundle savedInstanceState) {
62 |
63 | super.onCreate(savedInstanceState);
64 | setContentView(R.layout.activity_main);
65 |
66 | this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
67 |
68 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
69 | setSupportActionBar(toolbar);
70 |
71 |
72 | // final DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
73 | // ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
74 | // this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
75 | // drawer.setDrawerListener(toggle);
76 | // toggle.syncState();
77 | //
78 | // NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
79 | // navigationView.setNavigationItemSelectedListener(this);
80 |
81 | // toggle.setDrawerIndicatorEnabled(false);
82 | toolbar.setNavigationIcon(R.drawable.navicon);
83 | toolbar.setNavigationOnClickListener(new View.OnClickListener() {
84 | @Override
85 | public void onClick(View v) {
86 | // drawer.openDrawer(GravityCompat.START);
87 | }
88 | });
89 |
90 | Drawable drawable = ContextCompat.getDrawable(getApplicationContext(),R.drawable.help);
91 | toolbar.setOverflowIcon(drawable);
92 |
93 |
94 | optionone=(ImageView)findViewById(R.id.optionone);
95 | optiontwo=(ImageView)findViewById(R.id.optiontwo);
96 | optionthree=(ImageView)findViewById(R.id.optionthree);
97 | optiononeset=(ImageView)findViewById(R.id.optiononeset);
98 | optiontwoset=(ImageView)findViewById(R.id.optiontwoset);
99 | optionthreeset=(ImageView)findViewById(R.id.optionthreeset);
100 | card=(CardView)findViewById(R.id.card);
101 | cardtwo=(CardView)findViewById(R.id.cardtwo);
102 | cardthree=(CardView)findViewById(R.id.cardthree);
103 | extraone=(CardView)findViewById(R.id.extraone);
104 | extratwo=(CardView)findViewById(R.id.extratwo);
105 | extrathree=(CardView)findViewById(R.id.extrathree);
106 |
107 | calltext=(LinearLayout) findViewById(R.id.call);
108 |
109 | calltext.setOnClickListener(new View.OnClickListener() {
110 | @Override
111 | public void onClick(View v) {
112 | String phone = "+919585418609";
113 | Intent intent = new Intent(Intent.ACTION_DIAL, Uri.fromParts("tel", phone, null));
114 | startActivity(intent);
115 | }
116 | });
117 |
118 | bugs=(TextView)findViewById(R.id.bugs);
119 |
120 | bugs.setOnClickListener(new View.OnClickListener() {
121 | @Override
122 | public void onClick(View v) {
123 | Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(
124 | "mailto","client@gmail.com", null));
125 | emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Report Bugs");
126 | emailIntent.putExtra(Intent.EXTRA_TEXT, "No Bugs");
127 | startActivity(Intent.createChooser(emailIntent, "Send email..."));
128 | }
129 | });
130 |
131 |
132 | optionone.setOnClickListener(new View.OnClickListener() {
133 | @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
134 | @Override
135 | public void onClick(View v) {
136 | CardView view = (CardView) findViewById(R.id.card);
137 | int centerX = view.getRight();
138 | int centerY = view.getBottom();
139 |
140 | int startRadius = 0;
141 | int endRadius = (int) Math.hypot(view.getWidth(), view.getHeight());
142 |
143 | Animator anim =
144 | ViewAnimationUtils.createCircularReveal(view, centerX, centerY, startRadius, endRadius);
145 |
146 | anim.start();
147 | anim.addListener(new Animator.AnimatorListener() {
148 | @Override
149 | public void onAnimationStart(Animator animation) {
150 | }
151 |
152 | @Override
153 | public void onAnimationEnd(Animator animation) {
154 | extraone.setVisibility(View.VISIBLE);
155 | }
156 |
157 | @Override
158 | public void onAnimationCancel(Animator animation) {
159 |
160 | }
161 |
162 | @Override
163 | public void onAnimationRepeat(Animator animation) {
164 |
165 | }
166 | });
167 | }
168 | });
169 |
170 | optiononeset.setOnClickListener(new View.OnClickListener() {
171 | @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
172 | @Override
173 | public void onClick(final View v) {
174 | final CardView view = (CardView) findViewById(R.id.extraone);
175 | int centerX = view.getRight();
176 | int centerY = view.getBottom();
177 |
178 | int startRadius = 0;
179 | int endRadius = (int) Math.hypot(view.getWidth(), view.getHeight());
180 |
181 | Animator anim =
182 | ViewAnimationUtils.createCircularReveal(view, centerX, centerY, startRadius, endRadius);
183 |
184 | anim.start();
185 | anim.addListener(new Animator.AnimatorListener() {
186 | @Override
187 | public void onAnimationStart(Animator animation) {
188 | }
189 |
190 | @Override
191 | public void onAnimationEnd(Animator animation) {
192 | extraone.setVisibility(View.GONE);
193 | card.setVisibility(View.VISIBLE);
194 | }
195 |
196 | @Override
197 | public void onAnimationCancel(Animator animation) {
198 |
199 | }
200 |
201 | @Override
202 | public void onAnimationRepeat(Animator animation) {
203 |
204 | }
205 | });
206 | }
207 | });
208 |
209 | optiontwo.setOnClickListener(new View.OnClickListener() {
210 | @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
211 | @Override
212 | public void onClick(View v) {
213 | CardView view = (CardView) findViewById(R.id.cardtwo);
214 | int centerX = view.getRight();
215 | int centerY = view.getBottom();
216 |
217 | int startRadius = 0;
218 | int endRadius = (int) Math.hypot(view.getWidth(), view.getHeight());
219 |
220 | Animator anim =
221 | ViewAnimationUtils.createCircularReveal(view, centerX, centerY, startRadius, endRadius);
222 |
223 | anim.start();
224 | anim.addListener(new Animator.AnimatorListener() {
225 | @Override
226 | public void onAnimationStart(Animator animation) {
227 | }
228 |
229 | @Override
230 | public void onAnimationEnd(Animator animation) {
231 | extratwo.setVisibility(View.VISIBLE);
232 | cardtwo.setVisibility(View.GONE);
233 | }
234 |
235 | @Override
236 | public void onAnimationCancel(Animator animation) {
237 |
238 | }
239 |
240 | @Override
241 | public void onAnimationRepeat(Animator animation) {
242 |
243 | }
244 | });
245 | }
246 | });
247 |
248 | optiontwoset.setOnClickListener(new View.OnClickListener() {
249 | @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
250 | @Override
251 | public void onClick(final View v) {
252 | final CardView view = (CardView) findViewById(R.id.extratwo);
253 | int centerX = view.getRight();
254 | int centerY = view.getBottom();
255 |
256 | int startRadius = 0;
257 | int endRadius = (int) Math.hypot(view.getWidth(), view.getHeight());
258 |
259 | Animator anim =
260 | ViewAnimationUtils.createCircularReveal(view, centerX, centerY, startRadius, endRadius);
261 |
262 | anim.start();
263 | anim.addListener(new Animator.AnimatorListener() {
264 | @Override
265 | public void onAnimationStart(Animator animation) {
266 | }
267 |
268 | @Override
269 | public void onAnimationEnd(Animator animation) {
270 | extratwo.setVisibility(View.GONE);
271 | cardtwo.setVisibility(View.VISIBLE);
272 | }
273 |
274 | @Override
275 | public void onAnimationCancel(Animator animation) {
276 |
277 | }
278 |
279 | @Override
280 | public void onAnimationRepeat(Animator animation) {
281 |
282 | }
283 | });
284 | }
285 | });
286 |
287 |
288 | optionthree.setOnClickListener(new View.OnClickListener() {
289 | @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
290 | @Override
291 | public void onClick(View v) {
292 | CardView view = (CardView) findViewById(R.id.cardthree);
293 | int centerX = view.getRight();
294 | int centerY = view.getBottom();
295 |
296 | int startRadius = 0;
297 | int endRadius = (int) Math.hypot(view.getWidth(), view.getHeight());
298 |
299 | Animator anim =
300 | ViewAnimationUtils.createCircularReveal(view, centerX, centerY, startRadius, endRadius);
301 |
302 | anim.start();
303 | anim.addListener(new Animator.AnimatorListener() {
304 | @Override
305 | public void onAnimationStart(Animator animation) {
306 | }
307 |
308 | @Override
309 | public void onAnimationEnd(Animator animation) {
310 | extrathree.setVisibility(View.VISIBLE);
311 | }
312 |
313 | @Override
314 | public void onAnimationCancel(Animator animation) {
315 |
316 | }
317 |
318 | @Override
319 | public void onAnimationRepeat(Animator animation) {
320 |
321 | }
322 | });
323 | }
324 | });
325 |
326 | optionthreeset.setOnClickListener(new View.OnClickListener() {
327 | @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
328 | @Override
329 | public void onClick(final View v) {
330 | final CardView view = (CardView) findViewById(R.id.extrathree);
331 | int centerX = view.getRight();
332 | int centerY = view.getBottom();
333 |
334 | int startRadius = 0;
335 | int endRadius = (int) Math.hypot(view.getWidth(), view.getHeight());
336 |
337 | Animator anim =
338 | ViewAnimationUtils.createCircularReveal(view, centerX, centerY, startRadius, endRadius);
339 |
340 | anim.start();
341 | anim.addListener(new Animator.AnimatorListener() {
342 | @Override
343 | public void onAnimationStart(Animator animation) {
344 | }
345 |
346 | @Override
347 | public void onAnimationEnd(Animator animation) {
348 | extrathree.setVisibility(View.GONE);
349 | }
350 |
351 | @Override
352 | public void onAnimationCancel(Animator animation) {
353 |
354 | }
355 |
356 | @Override
357 | public void onAnimationRepeat(Animator animation) {
358 |
359 | }
360 | });
361 | }
362 | });
363 |
364 |
365 |
366 | card.setOnClickListener(new View.OnClickListener() {
367 | @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
368 | @Override
369 | public void onClick(View v) {
370 | CardView view = (CardView) findViewById(R.id.card);
371 | int centerX = view.getTop();
372 | int centerY = view.getLeft();
373 |
374 | int startRadius = 0;
375 | int endRadius = (int) Math.hypot(view.getWidth(), view.getHeight());
376 |
377 | Animator anim =
378 | ViewAnimationUtils.createCircularReveal(view, centerX, centerY, startRadius, endRadius);
379 |
380 | anim.start();
381 | startActivity(new Intent(MainActivity.this,AddContact.class));
382 | }
383 | });
384 |
385 | cardthree.setOnClickListener(new View.OnClickListener() {
386 | @Override
387 | public void onClick(View v) {
388 | startActivity(new Intent(MainActivity.this,AddProduct.class));
389 | }
390 | });
391 |
392 | cardtwo.setOnClickListener(new View.OnClickListener() {
393 | @Override
394 | public void onClick(View v) {
395 | startActivity(new Intent(MainActivity.this,SeeOrder.class));
396 | }
397 | });
398 |
399 | }
400 |
401 |
402 | @Override
403 | public void onBackPressed() {
404 | DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
405 | if (drawer.isDrawerOpen(GravityCompat.START)) {
406 | drawer.closeDrawer(GravityCompat.START);
407 | } else {
408 | super.onBackPressed();
409 | }
410 | }
411 |
412 | @Override
413 | public boolean onCreateOptionsMenu(Menu menu) {
414 | // Inflate the menu; this adds items to the action bar if it is present.
415 | getMenuInflater().inflate(R.menu.main, menu);
416 | return true;
417 | }
418 |
419 | @Override
420 | public boolean onOptionsItemSelected(MenuItem item) {
421 | // Handle action bar item clicks here. The action bar will
422 | // automatically handle clicks on the Home/Up button, so long
423 | // as you specify a parent activity in AndroidManifest.xml.
424 | int id = item.getItemId();
425 |
426 | //noinspection SimplifiableIfStatement
427 | if (id == R.id.action_settings) {
428 | return true;
429 | }
430 |
431 | return super.onOptionsItemSelected(item);
432 | }
433 |
434 | @SuppressWarnings("StatementWithEmptyBody")
435 | @Override
436 | public boolean onNavigationItemSelected(MenuItem item) {
437 | // Handle navigation view item clicks here.
438 | int id = item.getItemId();
439 |
440 | if (id == R.id.nav_camera) {
441 | // Handle the camera action
442 | } else if (id == R.id.nav_gallery) {
443 |
444 | } else if (id == R.id.nav_slideshow) {
445 |
446 | } else if (id == R.id.nav_manage) {
447 |
448 | } else if (id == R.id.nav_share) {
449 |
450 | } else if (id == R.id.nav_send) {
451 |
452 | }
453 |
454 | DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
455 | drawer.closeDrawer(GravityCompat.START);
456 | return true;
457 | }
458 | }
459 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/mayankaggarwal/appathon/Prefs.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon;
2 |
3 | import android.content.Context;
4 | import android.content.SharedPreferences;
5 |
6 | /**
7 | * Created by mayankaggarwal on 12/02/17.
8 | */
9 |
10 | public class Prefs {
11 |
12 | public static void setPrefs(String key, String value, Context context){
13 | SharedPreferences sharedpreferences = context.getSharedPreferences("VitEventApp", Context.MODE_PRIVATE);
14 | SharedPreferences.Editor editor = sharedpreferences.edit();
15 | editor.putString(key, value);
16 | editor.apply();
17 | }
18 |
19 | public static String getPrefs(String key, Context context){
20 | SharedPreferences sharedpreferences = context.getSharedPreferences("VitEventApp", Context.MODE_PRIVATE);
21 | return sharedpreferences.getString(key, "notfound");
22 | }
23 |
24 | public static void deletePrefs(Context context){
25 | SharedPreferences sharedpreferences = context.getSharedPreferences("VitEventApp", Context.MODE_PRIVATE);
26 | SharedPreferences.Editor editor = sharedpreferences.edit();
27 | editor.clear();
28 | editor.apply();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/mayankaggarwal/appathon/RVConatctList.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon;
2 |
3 | import android.app.Activity;
4 | import android.content.Context;
5 | import android.support.v7.widget.RecyclerView;
6 | import android.view.LayoutInflater;
7 | import android.view.View;
8 | import android.view.ViewGroup;
9 | import android.widget.ImageView;
10 | import android.widget.TextView;
11 |
12 | import java.util.ArrayList;
13 | import java.util.List;
14 |
15 | /**
16 | * Created by mayankaggarwal on 04/03/17.
17 | */
18 |
19 | public class RVConatctList extends RecyclerView.Adapter {
20 |
21 | List name;
22 | List number;
23 | Context context;
24 |
25 |
26 | public RVConatctList(List nameList, List numberList, Context activity) {
27 | this.name = new ArrayList<>();
28 | this.number = new ArrayList<>();
29 | this.context = activity;
30 |
31 | for (String n : nameList) {
32 | this.name.add(n);
33 | }
34 | for (String n : numberList) {
35 | this.number.add(n);
36 | }
37 | }
38 |
39 | public class MyViewHolder extends RecyclerView.ViewHolder {
40 | public ItemView itemView = new ItemView(context);
41 |
42 | public MyViewHolder(View view) {
43 | super(view);
44 | itemView = (ItemView) view.findViewById(R.id.myitem);
45 | }
46 | }
47 |
48 | @Override
49 | public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
50 | View item = LayoutInflater.from(parent.getContext())
51 | .inflate(R.layout.itemsecondary, parent, false);
52 |
53 | return new RVConatctList.MyViewHolder(item);
54 | }
55 |
56 | @Override
57 | public void onBindViewHolder(final MyViewHolder holder, final int position) {
58 | final String number = this.number.get(position);
59 | final String name = this.name.get(position);
60 |
61 | holder.itemView.setValues(false, name, number);
62 |
63 | holder.itemView.checkbox.setOnClickListener(new View.OnClickListener() {
64 | @Override
65 | public void onClick(View v) {
66 | if (holder.itemView.getCheck()) {
67 | holder.itemView.setImageClick(false);
68 | Globals.nameList.remove(name);
69 | Globals.numberList.remove(number);
70 | AddContact.addButton.setText("Add "+ String.valueOf(Globals.nameList.size())+" People");
71 | } else {
72 | holder.itemView.setImageClick(true);
73 | Globals.nameList.add(name);
74 | Globals.numberList.add(number);
75 | AddContact.addButton.setText("Add "+ String.valueOf(Globals.nameList.size())+" People");
76 | }
77 | }
78 | });
79 | }
80 |
81 | @Override
82 | public int getItemCount() {
83 | return this.name.size();
84 | }
85 |
86 |
87 | }
88 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/mayankaggarwal/appathon/RVOrderList.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon;
2 |
3 | import android.content.Context;
4 | import android.support.v7.widget.RecyclerView;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 | import android.widget.TextView;
9 | import java.util.List;
10 | import java.util.Random;
11 |
12 | /**
13 | * Created by mayankaggarwal on 05/03/17.
14 | */
15 |
16 | public class RVOrderList extends RecyclerView.Adapter {
17 |
18 | Context context;
19 |
20 | String[] name={"Mayank Aggarwal","Navdeesh Ahuja","Sunny Chakroboraty","Ramesh","Suresh"};
21 | String[] id={"G56D","D6ER","KMB9","K97DR","UNSHG"};
22 | String[] cat={"Shoe","Clothes","Watch","Glass","Tank"};
23 |
24 |
25 | public RVOrderList(List nameList, List numberList, Context activity) {
26 | this.context=activity;
27 | }
28 |
29 |
30 | public class MyViewHolder extends RecyclerView.ViewHolder {
31 | TextView name;
32 | TextView orderid;
33 | TextView desc;
34 |
35 | public MyViewHolder(View view) {
36 | super(view);
37 | name=(TextView)view.findViewById(R.id.nameo);
38 | orderid=(TextView)view.findViewById(R.id.orderido);
39 | desc=(TextView)view.findViewById(R.id.desco);
40 |
41 | }
42 | }
43 |
44 |
45 | @Override
46 | public RVOrderList.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
47 | View item = LayoutInflater.from(parent.getContext())
48 | .inflate(R.layout.order_item_layout, parent, false);
49 |
50 | return new RVOrderList.MyViewHolder(item);
51 | }
52 |
53 | @Override
54 | public void onBindViewHolder(MyViewHolder holder, int position) {
55 | Random rand = new Random();
56 |
57 | int n = rand.nextInt(5);
58 |
59 | holder.orderid.setText("Order Id: "+id[n]);
60 | holder.name.setText(name[n]);
61 | holder.desc.setText(cat[n]);
62 | }
63 |
64 |
65 | @Override
66 | public int getItemCount() {
67 | return 16;
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/mayankaggarwal/appathon/SeeOrder.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon;
2 |
3 | import android.app.ProgressDialog;
4 | import android.graphics.Color;
5 | import android.graphics.drawable.ColorDrawable;
6 | import android.support.v7.app.AppCompatActivity;
7 | import android.os.Bundle;
8 | import android.support.v7.widget.GridLayoutManager;
9 | import android.support.v7.widget.RecyclerView;
10 | import android.view.WindowManager;
11 |
12 | public class SeeOrder extends AppCompatActivity {
13 |
14 |
15 | RecyclerView recyclerView;
16 |
17 |
18 | @Override
19 | protected void onCreate(Bundle savedInstanceState) {
20 | super.onCreate(savedInstanceState);
21 | setContentView(R.layout.activity_see_order);
22 |
23 | this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
24 | getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor("#d976b6")));
25 | getSupportActionBar().setTitle("Orders");
26 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
27 |
28 | ProgressDialog pd = new ProgressDialog(SeeOrder.this);
29 | pd.setMessage("Uploading");
30 |
31 | pd.show();
32 |
33 | recyclerView=(RecyclerView)findViewById(R.id.orderrecyle);
34 | int numberOfColumns = 2;
35 | // recyclerView.setAdapter(new RVOrderList(null,null, this));
36 | recyclerView.setLayoutManager(new GridLayoutManager(this, numberOfColumns));
37 | recyclerView.setAdapter(new RVOrderList(null,null, this));
38 | pd.dismiss();
39 |
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/mayankaggarwal/appathon/SuccessActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon;
2 |
3 | import android.graphics.drawable.Drawable;
4 | import android.support.v4.content.ContextCompat;
5 | import android.support.v7.app.AppCompatActivity;
6 | import android.os.Bundle;
7 | import android.util.Log;
8 | import android.view.WindowManager;
9 | import android.widget.TextView;
10 |
11 | import org.w3c.dom.Text;
12 |
13 | public class SuccessActivity extends AppCompatActivity {
14 |
15 | TextView textView;
16 |
17 | @Override
18 | protected void onCreate(Bundle savedInstanceState) {
19 | super.onCreate(savedInstanceState);
20 | setContentView(R.layout.activity_success);
21 |
22 | Prefs.setPrefs("storenamelist",Globals.nameList.toString(),this);
23 |
24 | this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
25 | Drawable drawable = ContextCompat.getDrawable(getApplicationContext(),R.drawable.bg);
26 | getSupportActionBar().setBackgroundDrawable(drawable);
27 | getSupportActionBar().setTitle("Added People");
28 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
29 |
30 | textView=(TextView)findViewById(R.id.successtext);
31 | textView.setText("Succeefully Added ("+Globals.nameList.size()+") people");
32 |
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/mayankaggarwal/appathon/SuccessProduct.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon;
2 |
3 | import android.graphics.drawable.Drawable;
4 | import android.support.v4.content.ContextCompat;
5 | import android.support.v7.app.AppCompatActivity;
6 | import android.os.Bundle;
7 | import android.view.WindowManager;
8 |
9 | public class SuccessProduct extends AppCompatActivity {
10 |
11 | @Override
12 | protected void onCreate(Bundle savedInstanceState) {
13 | super.onCreate(savedInstanceState);
14 | setContentView(R.layout.activity_success_product);
15 |
16 | this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
17 | Drawable drawable = ContextCompat.getDrawable(getApplicationContext(),R.drawable.bg);
18 | getSupportActionBar().setBackgroundDrawable(drawable);
19 | getSupportActionBar().setTitle("Added Product");
20 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/mayankaggarwal/appathon/rest/ApiClient.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon.rest;
2 |
3 | import android.content.Context;
4 |
5 | import java.io.IOException;
6 | import java.util.concurrent.TimeUnit;
7 |
8 | import okhttp3.Interceptor;
9 | import okhttp3.OkHttpClient;
10 | import okhttp3.Request;
11 | import okhttp3.Response;
12 | import okhttp3.logging.HttpLoggingInterceptor;
13 | import retrofit2.Retrofit;
14 | import retrofit2.converter.gson.GsonConverterFactory;
15 |
16 | /**
17 | * Created by mayankaggarwal on 12/02/17.
18 | */
19 |
20 | public class ApiClient {
21 | public static final String BASE_URL = "https://vitmantra.feedveed.com";
22 | private static Retrofit retrofit = null;
23 |
24 | public static Retrofit getClient(final Context context) {
25 |
26 | HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();
27 | interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
28 |
29 | if (retrofit == null) {
30 | OkHttpClient ok = new OkHttpClient.Builder()
31 | .addInterceptor(interceptor)
32 | .addInterceptor(new Interceptor() {
33 | @Override
34 | public Response intercept(Chain chain) throws IOException {
35 | Request request = chain.request().newBuilder()
36 | .build();
37 | return chain.proceed(request);
38 | }
39 | })
40 | .build();
41 |
42 | retrofit = new Retrofit.Builder()
43 | .baseUrl(BASE_URL)
44 | .addConverterFactory(GsonConverterFactory.create())
45 | .client(ok.newBuilder().connectTimeout(30, TimeUnit.SECONDS).readTimeout(10, TimeUnit.SECONDS)
46 | .writeTimeout(10, TimeUnit.SECONDS).build())
47 | .build();
48 | }
49 |
50 | return retrofit;
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/mayankaggarwal/appathon/rest/ApiInterface.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon.rest;
2 |
3 | import com.google.gson.JsonObject;
4 |
5 | import retrofit2.Call;
6 | import retrofit2.http.Body;
7 | import retrofit2.http.POST;
8 |
9 | /**
10 | * Created by mayankaggarwal on 12/02/17.
11 | */
12 |
13 | public interface ApiInterface {
14 |
15 | @POST("appPushDetails2")
16 | Call pushData(@Body LoginRequest loginRequest);
17 |
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/mayankaggarwal/appathon/rest/LoginRequest.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon.rest;
2 |
3 | import com.google.gson.annotations.Expose;
4 | import com.google.gson.annotations.SerializedName;
5 |
6 | /**
7 | * Created by mayankaggarwal on 12/02/17.
8 | */
9 |
10 | public class LoginRequest {
11 |
12 | @SerializedName("name")
13 | @Expose
14 | public String name;
15 |
16 | @SerializedName("link")
17 | @Expose
18 | public String link;
19 |
20 | @SerializedName("price")
21 | @Expose
22 | public String price;
23 |
24 | @SerializedName("description")
25 | @Expose
26 | public String descripition;
27 | }
28 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/alphaanimation.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v21/ic_menu_camera.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v21/ic_menu_gallery.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v21/ic_menu_manage.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v21/ic_menu_send.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v21/ic_menu_share.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v21/ic_menu_slideshow.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/addproduct.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/addproduct.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/arrow.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/bar.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/best.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/best.gif
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/bg.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/cardone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/cardone.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/cardthree.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/cardthree.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/cardtwo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/cardtwo.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/drawable-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/drawable-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/help.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/help.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/navicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/navicon.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/options.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/options.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/shopone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/shopone.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/shopping.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/shopping.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/side_nav_bar.xml:
--------------------------------------------------------------------------------
1 |
3 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ticcck.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/ticcck.gif
--------------------------------------------------------------------------------
/app/src/main/res/drawable/tick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/tick.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/tiiiik.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/tiiiik.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/untick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/app/src/main/res/drawable/untick.png
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_add_contact.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
14 |
15 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_add_product.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
33 |
34 |
39 |
40 |
46 |
47 |
51 |
52 |
57 |
58 |
64 |
69 |
70 |
71 |
77 |
78 |
84 |
85 |
91 |
92 |
97 |
98 |
107 |
108 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_see_order.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_success.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
20 |
21 |
29 |
30 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_success_product.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
16 |
17 |
25 |
26 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/app_bar_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
15 |
16 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/content_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
21 |
22 |
25 |
26 |
35 |
36 |
40 |
41 |
42 |
50 |
51 |
59 |
60 |
69 |
70 |
71 |
79 |
80 |
87 |
88 |
97 |
98 |
107 |
108 |
109 |
110 |
111 |
112 |
118 |
119 |
127 |
128 |
136 |
137 |
145 |
146 |
147 |
154 |
155 |
164 |
165 |
173 |
174 |
182 |
183 |
184 |
185 |
194 |
195 |
203 |
204 |
212 |
213 |
214 |
222 |
223 |
230 |
231 |
240 |
241 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
262 |
263 |
269 |
270 |
275 |
276 |
284 |
285 |
291 |
292 |
293 |
299 |
300 |
308 |
309 |
315 |
316 |
317 |
318 |
319 |
320 |
321 |
322 |
323 |
324 |
325 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/item_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
21 |
22 |
31 |
32 |
39 |
40 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/itemsecondary.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
12 |
13 |
19 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/nav_header_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/order_item_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
14 |
15 |
20 |
21 |
28 |
29 |
36 |
37 |
43 |
44 |
50 |
51 |
57 |
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/activity_main_drawer.xml:
--------------------------------------------------------------------------------
1 |
2 |
37 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 160dp
5 |
6 | 16dp
7 | 16dp
8 | 16dp
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/values/drawables.xml:
--------------------------------------------------------------------------------
1 |
2 | - @android:drawable/ic_menu_camera
3 | - @android:drawable/ic_menu_gallery
4 | - @android:drawable/ic_menu_slideshow
5 | - @android:drawable/ic_menu_manage
6 | - @android:drawable/ic_menu_share
7 | - @android:drawable/ic_menu_send
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Admin App
3 |
4 | Open navigation drawer
5 | Close navigation drawer
6 |
7 | Settings
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/test/java/com/example/mayankaggarwal/appathon/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.example.mayankaggarwal.appathon;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | mavenCentral()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:2.2.3'
10 |
11 | // NOTE: Do not place your application dependencies here; they belong
12 | // in the individual module build.gradle files
13 | }
14 | }
15 |
16 | allprojects {
17 | repositories {
18 | jcenter()
19 | mavenCentral()
20 | }
21 | }
22 |
23 | task clean(type: Delete) {
24 | delete rootProject.buildDir
25 | }
26 |
--------------------------------------------------------------------------------
/customandroid.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/customandroid.gif
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | org.gradle.jvmargs=-Xmx1536m
13 |
14 | # When configured, Gradle will run in incubating parallel mode.
15 | # This option should only be used with decoupled projects. More details, visit
16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17 | # org.gradle.parallel=true
18 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Dec 28 10:00:20 PST 2015
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # Attempt to set APP_HOME
46 | # Resolve links: $0 may be a link
47 | PRG="$0"
48 | # Need this for relative symlinks.
49 | while [ -h "$PRG" ] ; do
50 | ls=`ls -ld "$PRG"`
51 | link=`expr "$ls" : '.*-> \(.*\)$'`
52 | if expr "$link" : '/.*' > /dev/null; then
53 | PRG="$link"
54 | else
55 | PRG=`dirname "$PRG"`"/$link"
56 | fi
57 | done
58 | SAVED="`pwd`"
59 | cd "`dirname \"$PRG\"`/" >/dev/null
60 | APP_HOME="`pwd -P`"
61 | cd "$SAVED" >/dev/null
62 |
63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
64 |
65 | # Determine the Java command to use to start the JVM.
66 | if [ -n "$JAVA_HOME" ] ; then
67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
68 | # IBM's JDK on AIX uses strange locations for the executables
69 | JAVACMD="$JAVA_HOME/jre/sh/java"
70 | else
71 | JAVACMD="$JAVA_HOME/bin/java"
72 | fi
73 | if [ ! -x "$JAVACMD" ] ; then
74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
75 |
76 | Please set the JAVA_HOME variable in your environment to match the
77 | location of your Java installation."
78 | fi
79 | else
80 | JAVACMD="java"
81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
82 |
83 | Please set the JAVA_HOME variable in your environment to match the
84 | location of your Java installation."
85 | fi
86 |
87 | # Increase the maximum file descriptors if we can.
88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
89 | MAX_FD_LIMIT=`ulimit -H -n`
90 | if [ $? -eq 0 ] ; then
91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
92 | MAX_FD="$MAX_FD_LIMIT"
93 | fi
94 | ulimit -n $MAX_FD
95 | if [ $? -ne 0 ] ; then
96 | warn "Could not set maximum file descriptor limit: $MAX_FD"
97 | fi
98 | else
99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
100 | fi
101 | fi
102 |
103 | # For Darwin, add options to specify how the application appears in the dock
104 | if $darwin; then
105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
106 | fi
107 |
108 | # For Cygwin, switch paths to Windows format before running java
109 | if $cygwin ; then
110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
112 | JAVACMD=`cygpath --unix "$JAVACMD"`
113 |
114 | # We build the pattern for arguments to be converted via cygpath
115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
116 | SEP=""
117 | for dir in $ROOTDIRSRAW ; do
118 | ROOTDIRS="$ROOTDIRS$SEP$dir"
119 | SEP="|"
120 | done
121 | OURCYGPATTERN="(^($ROOTDIRS))"
122 | # Add a user-defined pattern to the cygpath arguments
123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
125 | fi
126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
127 | i=0
128 | for arg in "$@" ; do
129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
131 |
132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
134 | else
135 | eval `echo args$i`="\"$arg\""
136 | fi
137 | i=$((i+1))
138 | done
139 | case $i in
140 | (0) set -- ;;
141 | (1) set -- "$args0" ;;
142 | (2) set -- "$args0" "$args1" ;;
143 | (3) set -- "$args0" "$args1" "$args2" ;;
144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
150 | esac
151 | fi
152 |
153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
154 | function splitJvmOpts() {
155 | JVM_OPTS=("$@")
156 | }
157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
159 |
160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
161 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/layout1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/layout1.png
--------------------------------------------------------------------------------
/layout2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayankagg9722/CustomAndroidLayout/c1e297a1c58b58bd6dc0962f28a485ce7c62df2b/layout2.png
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------