diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..39fb081
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+*.iml
+.gradle
+/local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
+/build
+/captures
+.externalNativeBuild
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..96cc43e
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml
new file mode 100644
index 0000000..e7bedf3
--- /dev/null
+++ b/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
new file mode 100644
index 0000000..7ac24c7
--- /dev/null
+++ b/.idea/gradle.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..5d19981
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..12e26b5
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
new file mode 100644
index 0000000..7f68460
--- /dev/null
+++ b/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/.gitignore b/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/app/build.gradle b/app/build.gradle
new file mode 100644
index 0000000..2ce18e2
--- /dev/null
+++ b/app/build.gradle
@@ -0,0 +1,39 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 25
+ buildToolsVersion "25.0.2"
+ defaultConfig {
+ applicationId "com.jintu.pickd"
+ minSdkVersion 17
+ targetSdkVersion 25
+ versionCode 1
+ versionName "1.0"
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
+ exclude group: 'com.android.support', module: 'support-annotations'
+ })
+ compile 'com.android.support:appcompat-v7:25.3.1'
+ testCompile 'junit:junit:4.12'
+ compile 'com.android.support:appcompat-v7:25.3.1'
+ compile 'com.android.support.constraint:constraint-layout:1.0.2'
+ compile 'com.nineoldandroids:library:2.4.0'
+ compile 'com.daimajia.slider:library:1.1.5@aar'
+ compile 'com.android.support:design:25.3.1'
+ compile 'com.android.support:recyclerview-v7:25.3.1'
+ compile 'com.android.support:cardview-v7:25.3.1'
+ compile 'com.github.bumptech.glide:glide:3.7.0'
+ compile 'com.squareup.picasso:picasso:2.5.2'
+ testCompile 'junit:junit:4.12'
+}
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
new file mode 100644
index 0000000..661f72a
--- /dev/null
+++ b/app/proguard-rules.pro
@@ -0,0 +1,25 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in C:\Users\Lenovo\AppData\Local\Android\Sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/app/src/androidTest/java/com/jintu/pickd/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/jintu/pickd/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..0f99cc4
--- /dev/null
+++ b/app/src/androidTest/java/com/jintu/pickd/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.jintu.pickd;
+
+import android.content.Context;
+import android.support.test.InstrumentationRegistry;
+import android.support.test.runner.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumentation test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() throws Exception {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getTargetContext();
+
+ assertEquals("com.jintu.pickd", appContext.getPackageName());
+ }
+}
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..162c0bc
--- /dev/null
+++ b/app/src/main/AndroidManifest.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/java/com/jintu/pickd/Activities/ElectronicsActivity.java b/app/src/main/java/com/jintu/pickd/Activities/ElectronicsActivity.java
new file mode 100644
index 0000000..9a2da8e
--- /dev/null
+++ b/app/src/main/java/com/jintu/pickd/Activities/ElectronicsActivity.java
@@ -0,0 +1,15 @@
+package com.jintu.pickd.Activities;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+
+import com.jintu.pickd.R;
+
+public class ElectronicsActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_electronics);
+ }
+}
diff --git a/app/src/main/java/com/jintu/pickd/Activities/MainActivity.java b/app/src/main/java/com/jintu/pickd/Activities/MainActivity.java
new file mode 100644
index 0000000..f217266
--- /dev/null
+++ b/app/src/main/java/com/jintu/pickd/Activities/MainActivity.java
@@ -0,0 +1,278 @@
+package com.jintu.pickd.Activities;
+
+import android.content.Intent;
+import android.content.res.Resources;
+import android.graphics.Rect;
+import android.os.Bundle;
+import android.support.design.widget.AppBarLayout;
+import android.support.design.widget.CollapsingToolbarLayout;
+import android.support.v7.app.AppCompatActivity;
+import android.support.v7.widget.DefaultItemAnimator;
+import android.support.v7.widget.GridLayoutManager;
+import android.support.v7.widget.RecyclerView;
+import android.support.v7.widget.Toolbar;
+import android.util.TypedValue;
+import android.view.GestureDetector;
+import android.view.MotionEvent;
+import android.view.View;
+
+import com.daimajia.slider.library.Animations.DescriptionAnimation;
+import com.daimajia.slider.library.SliderLayout;
+import com.daimajia.slider.library.SliderTypes.BaseSliderView;
+import com.daimajia.slider.library.SliderTypes.TextSliderView;
+import com.daimajia.slider.library.Tricks.ViewPagerEx;
+import com.jintu.pickd.Adapter.CategoryAdapter;
+import com.jintu.pickd.Model.Category;
+import com.jintu.pickd.R;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+
+public class MainActivity extends AppCompatActivity implements BaseSliderView.OnSliderClickListener, ViewPagerEx.OnPageChangeListener{
+
+ private SliderLayout mSlider;
+ private RecyclerView recyclerView;
+ private CategoryAdapter adapter;
+ private List CategoryList;
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+ mSlider = (SliderLayout)findViewById(R.id.slider);
+
+ //Hiding the status bar
+ View decorView = getWindow().getDecorView();
+ int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;
+ decorView.setSystemUiVisibility(uiOptions);
+
+ //Category view
+ Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
+ setSupportActionBar(toolbar);
+ initCollapsingToolbar();
+
+ recyclerView = (RecyclerView) findViewById(R.id.recycler_view);
+
+ CategoryList = new ArrayList<>();
+ adapter = new CategoryAdapter(this, CategoryList);
+
+ RecyclerView.LayoutManager mLayoutManager = new GridLayoutManager(this, 2);
+ recyclerView.setLayoutManager(mLayoutManager);
+ recyclerView.addItemDecoration(new GridSpacingItemDecoration(2, dpToPx(10), true));
+ recyclerView.setItemAnimator(new DefaultItemAnimator());
+ recyclerView.setAdapter(adapter);
+ final GestureDetector mGestureDetector = new GestureDetector(MainActivity.this, new GestureDetector.SimpleOnGestureListener() {
+
+ @Override
+ public boolean onSingleTapUp(MotionEvent e) {
+ return true;
+ }
+
+ });
+
+ recyclerView.addOnItemTouchListener(new RecyclerView.OnItemTouchListener() {
+ @Override
+ public boolean onInterceptTouchEvent(RecyclerView recyclerView, MotionEvent motionEvent) {
+ View child = recyclerView.findChildViewUnder(motionEvent.getX(), motionEvent.getY());
+
+
+ if (child != null && mGestureDetector.onTouchEvent(motionEvent)) {
+
+ int a=recyclerView.getChildPosition(child);
+ if(a == 0){
+ startActivity(new Intent(MainActivity.this,ManActivity.class));
+ }
+ return true;
+
+ }
+
+ return false;
+ }
+
+ @Override
+ public void onTouchEvent(RecyclerView recyclerView, MotionEvent motionEvent) {
+
+ }
+
+ @Override
+ public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {
+
+ }
+ });
+
+ prepareCategorys();
+
+ //Adding images
+ HashMap file_maps = new HashMap();
+ file_maps.put("Adidas",R.drawable.adidas);
+ file_maps.put("Puma",R.drawable.puma);
+ file_maps.put("Marks & Spencer",R.drawable.mands);
+ file_maps.put("Allen Solly", R.drawable.allensolly);
+
+ for(String name : file_maps.keySet()){
+ TextSliderView textSliderView = new TextSliderView(this);
+ // initialize a SliderLayout
+ textSliderView
+ .description(name)
+ .image(file_maps.get(name))
+ .setScaleType(BaseSliderView.ScaleType.Fit)
+ .setOnSliderClickListener(this);
+
+ //add extra information
+ textSliderView.bundle(new Bundle());
+ textSliderView.getBundle()
+ .putString("extra",name);
+
+ mSlider.addSlider(textSliderView);
+ }
+
+ mSlider.setPresetTransformer(SliderLayout.Transformer.Accordion);
+ mSlider.setPresetIndicator(SliderLayout.PresetIndicators.Center_Bottom);
+ mSlider.setCustomAnimation(new DescriptionAnimation());
+ mSlider.setDuration(4000);
+ mSlider.addOnPageChangeListener(this);
+
+ }
+
+ @Override
+ public void onSliderClick(BaseSliderView slider) {
+
+ }
+
+ @Override
+ public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
+
+ }
+
+ @Override
+ public void onPageSelected(int position) {
+
+ }
+
+ @Override
+ public void onPageScrollStateChanged(int state) {
+
+ }
+
+ private void initCollapsingToolbar() {
+ final CollapsingToolbarLayout collapsingToolbar =
+ (CollapsingToolbarLayout) findViewById(R.id.collapsing_toolbar);
+ collapsingToolbar.setTitle(" ");
+ AppBarLayout appBarLayout = (AppBarLayout) findViewById(R.id.appbar);
+ appBarLayout.setExpanded(true);
+
+ // hiding & showing the title when toolbar expanded & collapsed
+ appBarLayout.addOnOffsetChangedListener(new AppBarLayout.OnOffsetChangedListener() {
+ boolean isShow = false;
+ int scrollRange = -1;
+
+ @Override
+ public void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset) {
+ if (scrollRange == -1) {
+ scrollRange = appBarLayout.getTotalScrollRange();
+ }
+ if (scrollRange + verticalOffset == 0) {
+ collapsingToolbar.setTitle(getString(R.string.app_name));
+ isShow = true;
+ } else if (isShow) {
+ collapsingToolbar.setTitle(" ");
+ isShow = false;
+ }
+ }
+ });
+ }
+
+ /**
+ * Adding few Categorys for testing
+ */
+ private void prepareCategorys() {
+ int[] covers = new int[]{
+ R.drawable.c1,
+ R.drawable.c2,
+ R.drawable.c3,
+ R.drawable.baby,
+ R.drawable.c5,
+ R.drawable.book,
+ R.drawable.c7,
+ R.drawable.c8,
+ R.drawable.c9};
+
+ Category a = new Category("MEN", 13, covers[0]);
+ CategoryList.add(a);
+
+ a = new Category("WOMEN", 8, covers[1]);
+ CategoryList.add(a);
+
+ a = new Category("ELECTRONICS", 11, covers[2]);
+ CategoryList.add(a);
+
+ a = new Category("BABY & KIDS", 12, covers[3]);
+ CategoryList.add(a);
+
+ a = new Category("HOME & FURNITURE", 14, covers[4]);
+ CategoryList.add(a);
+
+ a = new Category("BOOKS", 1, covers[5]);
+ CategoryList.add(a);
+
+ a = new Category("FOOD & DRINKS", 11, covers[6]);
+ CategoryList.add(a);
+
+ a = new Category("MOVIES", 14, covers[7]);
+ CategoryList.add(a);
+
+ a = new Category("RESTAURANTS", 11, covers[8]);
+ CategoryList.add(a);
+
+ adapter.notifyDataSetChanged();
+ }
+
+ /**
+ * RecyclerView item decoration - give equal margin around grid item
+ */
+ public class GridSpacingItemDecoration extends RecyclerView.ItemDecoration {
+
+ private int spanCount;
+ private int spacing;
+ private boolean includeEdge;
+
+ public GridSpacingItemDecoration(int spanCount, int spacing, boolean includeEdge) {
+ this.spanCount = spanCount;
+ this.spacing = spacing;
+ this.includeEdge = includeEdge;
+ }
+
+ @Override
+ public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
+ int position = parent.getChildAdapterPosition(view); // item position
+ int column = position % spanCount; // item column
+
+ if (includeEdge) {
+ outRect.left = spacing - column * spacing / spanCount; // spacing - column * ((1f / spanCount) * spacing)
+ outRect.right = (column + 1) * spacing / spanCount; // (column + 1) * ((1f / spanCount) * spacing)
+
+ if (position < spanCount) { // top edge
+ outRect.top = spacing;
+ }
+ outRect.bottom = spacing; // item bottom
+ } else {
+ outRect.left = column * spacing / spanCount; // column * ((1f / spanCount) * spacing)
+ outRect.right = spacing - (column + 1) * spacing / spanCount; // spacing - (column + 1) * ((1f / spanCount) * spacing)
+ if (position >= spanCount) {
+ outRect.top = spacing; // item top
+ }
+ }
+ }
+ }
+
+ /**
+ * Converting dp to pixel
+ */
+ private int dpToPx(int dp) {
+ Resources r = getResources();
+ return Math.round(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, r.getDisplayMetrics()));
+ }
+
+}
diff --git a/app/src/main/java/com/jintu/pickd/Activities/ManActivity.java b/app/src/main/java/com/jintu/pickd/Activities/ManActivity.java
new file mode 100644
index 0000000..3aa1359
--- /dev/null
+++ b/app/src/main/java/com/jintu/pickd/Activities/ManActivity.java
@@ -0,0 +1,60 @@
+package com.jintu.pickd.Activities;
+
+import android.app.Activity;
+import android.content.Context;
+import android.graphics.drawable.Drawable;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ArrayAdapter;
+import android.widget.ImageView;
+import android.widget.ListView;
+
+import com.jintu.pickd.R;
+
+import java.util.ArrayList;
+
+public class ManActivity extends Activity {
+
+ Adapter adapter ;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_man);
+
+ final ListView listview = (ListView) findViewById(R.id.mList);
+ final ArrayList list = new ArrayList<>();
+
+ list.add(getResources().getDrawable(R.drawable.m1));
+ list.add(getResources().getDrawable(R.drawable.m2));
+ list.add(getResources().getDrawable(R.drawable.m3));
+ list.add(getResources().getDrawable(R.drawable.m4));
+ list.add(getResources().getDrawable(R.drawable.m5));
+ list.add(getResources().getDrawable(R.drawable.m6));
+ list.add(getResources().getDrawable(R.drawable.m7));
+ adapter = new Adapter(this,0,list);
+ listview.setAdapter(adapter);
+ }
+}
+class Adapter extends ArrayAdapter{
+ ArrayList items ;
+ ImageView image ;
+
+ public Adapter(Context c, int resources, ArrayListlist){
+ super(c,resources,list);
+ this.items = list ;
+ }
+
+ @Override
+ public View getView(int position, View convertView, ViewGroup parent) {
+
+ if (convertView == null) {
+ convertView = LayoutInflater.from(getContext()).inflate(R.layout.men_items, parent, false);
+ }
+ image= (ImageView) convertView.findViewById(R.id.mImg);
+ image.setBackground(items.get(position));
+ return convertView;
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/jintu/pickd/Activities/WelcomeActivity.java b/app/src/main/java/com/jintu/pickd/Activities/WelcomeActivity.java
new file mode 100644
index 0000000..bdceb66
--- /dev/null
+++ b/app/src/main/java/com/jintu/pickd/Activities/WelcomeActivity.java
@@ -0,0 +1,205 @@
+package com.jintu.pickd.Activities;
+
+import android.content.Context;
+import android.content.Intent;
+import android.graphics.Color;
+import android.os.Build;
+import android.os.Bundle;
+import android.support.v4.view.PagerAdapter;
+import android.support.v4.view.ViewPager;
+import android.support.v7.app.AppCompatActivity;
+import android.text.Html;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.view.Window;
+import android.view.WindowManager;
+import android.widget.Button;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+import com.jintu.pickd.Manager.PrefManager;
+import com.jintu.pickd.R;
+
+public class WelcomeActivity extends AppCompatActivity {
+
+ private ViewPager viewPager;
+ private MyViewPagerAdapter myViewPagerAdapter;
+ private LinearLayout dotsLayout;
+ private TextView[] dots;
+ private int[] layouts;
+ private Button btnSkip, btnNext;
+ private PrefManager prefManager;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ // Checking for first time launch - before calling setContentView()
+ prefManager = new PrefManager(this);
+ if (!prefManager.isFirstTimeLaunch()) {
+ launchHomeScreen();
+ finish();
+ }
+
+ // Making notification bar transparent
+ if (Build.VERSION.SDK_INT >= 21) {
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
+ }
+
+ setContentView(R.layout.activity_welcome);
+
+ viewPager = (ViewPager) findViewById(R.id.view_pager);
+ dotsLayout = (LinearLayout) findViewById(R.id.layoutDots);
+ btnSkip = (Button) findViewById(R.id.btn_skip);
+ btnNext = (Button) findViewById(R.id.btn_next);
+
+
+ // layouts of all welcome sliders
+ // add few more layouts if you want
+ layouts = new int[]{
+ R.layout.welcome_slide_1,
+ R.layout.welcome_slide_2,
+ R.layout.welcome_slide_3,
+ R.layout.welcome_slide_4};
+
+ // adding bottom dots
+ addBottomDots(0);
+
+ // making notification bar transparent
+ changeStatusBarColor();
+
+ myViewPagerAdapter = new MyViewPagerAdapter();
+ viewPager.setAdapter(myViewPagerAdapter);
+ viewPager.addOnPageChangeListener(viewPagerPageChangeListener);
+
+ btnSkip.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ launchHomeScreen();
+ }
+ });
+
+ btnNext.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ // checking for last page
+ // if last page home screen will be launched
+ int current = getItem(+1);
+ if (current < layouts.length) {
+ // move to next screen
+ viewPager.setCurrentItem(current);
+ } else {
+ launchHomeScreen();
+ }
+ }
+ });
+ }
+
+
+ private void addBottomDots(int currentPage) {
+ dots = new TextView[layouts.length];
+
+ int[] colorsActive = getResources().getIntArray(R.array.array_dot_active);
+ int[] colorsInactive = getResources().getIntArray(R.array.array_dot_inactive);
+
+ dotsLayout.removeAllViews();
+ for (int i = 0; i < dots.length; i++) {
+ dots[i] = new TextView(this);
+ dots[i].setText(Html.fromHtml("•"));
+ dots[i].setTextSize(35);
+ dots[i].setTextColor(colorsInactive[currentPage]);
+ dotsLayout.addView(dots[i]);
+ }
+
+ if (dots.length > 0)
+ dots[currentPage].setTextColor(colorsActive[currentPage]);
+ }
+
+ private int getItem(int i) {
+ return viewPager.getCurrentItem() + i;
+ }
+
+ private void launchHomeScreen() {
+ prefManager.setFirstTimeLaunch(false);
+ startActivity(new Intent(WelcomeActivity.this, MainActivity.class));
+ finish();
+ }
+
+ // viewpager change listener
+ ViewPager.OnPageChangeListener viewPagerPageChangeListener = new ViewPager.OnPageChangeListener() {
+
+ @Override
+ public void onPageSelected(int position) {
+ addBottomDots(position);
+
+ // changing the next button text 'NEXT' / 'GOT IT'
+ if (position == layouts.length - 1) {
+ // last page. make button text to GOT IT
+ btnNext.setText(getString(R.string.start));
+ btnSkip.setVisibility(View.GONE);
+ } else {
+ // still pages are left
+ btnNext.setText(getString(R.string.next));
+ btnSkip.setVisibility(View.VISIBLE);
+ }
+ }
+
+ @Override
+ public void onPageScrolled(int arg0, float arg1, int arg2) {
+
+ }
+
+ @Override
+ public void onPageScrollStateChanged(int arg0) {
+
+ }
+ };
+
+ /**
+ * Making notification bar transparent
+ */
+ private void changeStatusBarColor() {
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
+ Window window = getWindow();
+ window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
+ window.setStatusBarColor(Color.TRANSPARENT);
+ }
+ }
+
+ /**
+ * View pager adapter
+ */
+ public class MyViewPagerAdapter extends PagerAdapter {
+ private LayoutInflater layoutInflater;
+
+ public MyViewPagerAdapter() {
+ }
+
+ @Override
+ public Object instantiateItem(ViewGroup container, int position) {
+ layoutInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
+
+ View view = layoutInflater.inflate(layouts[position], container, false);
+ container.addView(view);
+
+ return view;
+ }
+
+ @Override
+ public int getCount() {
+ return layouts.length;
+ }
+
+ @Override
+ public boolean isViewFromObject(View view, Object obj) {
+ return view == obj;
+ }
+
+
+ @Override
+ public void destroyItem(ViewGroup container, int position, Object object) {
+ View view = (View) object;
+ container.removeView(view);
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/jintu/pickd/Activities/WomanActivity.java b/app/src/main/java/com/jintu/pickd/Activities/WomanActivity.java
new file mode 100644
index 0000000..e0a6ab3
--- /dev/null
+++ b/app/src/main/java/com/jintu/pickd/Activities/WomanActivity.java
@@ -0,0 +1,15 @@
+package com.jintu.pickd.Activities;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+
+import com.jintu.pickd.R;
+
+public class WomanActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_woman);
+ }
+}
diff --git a/app/src/main/java/com/jintu/pickd/Adapter/CategoryAdapter.java b/app/src/main/java/com/jintu/pickd/Adapter/CategoryAdapter.java
new file mode 100644
index 0000000..94b77f7
--- /dev/null
+++ b/app/src/main/java/com/jintu/pickd/Adapter/CategoryAdapter.java
@@ -0,0 +1,71 @@
+package com.jintu.pickd.Adapter;
+
+import android.content.Context;
+import android.support.v7.widget.RecyclerView;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import com.bumptech.glide.Glide;
+import com.jintu.pickd.Model.Category;
+import com.jintu.pickd.R;
+
+import java.util.List;
+
+/**
+ * Created by Jack on 4/1/2017.
+ */
+
+public class CategoryAdapter extends RecyclerView.Adapter {
+
+ private Context mContext;
+ private List CategoryList;
+
+ public class MyViewHolder extends RecyclerView.ViewHolder {
+ public TextView title, count;
+ public ImageView thumbnail;
+
+ public MyViewHolder(View view) {
+ super(view);
+ title = (TextView) view.findViewById(R.id.title);
+ // count = (TextView) view.findViewById(R.id.count);
+ thumbnail = (ImageView) view.findViewById(R.id.thumbnail);
+ }
+ }
+
+
+ public CategoryAdapter(Context mContext, List CategoryList) {
+ this.mContext = mContext;
+ this.CategoryList = CategoryList;
+ }
+
+ @Override
+ public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
+ View itemView = LayoutInflater.from(parent.getContext())
+ .inflate(R.layout.album_card, parent, false);
+
+ return new MyViewHolder(itemView);
+ }
+
+ @Override
+ public void onBindViewHolder(final MyViewHolder holder, int position) {
+ Category Category = CategoryList.get(position);
+ holder.title.setText(Category.getName());
+ // holder.count.setText(Category.getNumOfSongs() + " songs");
+
+ // loading Category cover using Glide library
+ Glide
+ .with(mContext)
+ .load(Category.getThumbnail())
+ .into(holder.thumbnail);
+ }
+
+
+
+ @Override
+ public int getItemCount() {
+ return CategoryList.size();
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/jintu/pickd/Manager/PrefManager.java b/app/src/main/java/com/jintu/pickd/Manager/PrefManager.java
new file mode 100644
index 0000000..46bd82e
--- /dev/null
+++ b/app/src/main/java/com/jintu/pickd/Manager/PrefManager.java
@@ -0,0 +1,38 @@
+package com.jintu.pickd.Manager;
+
+import android.content.Context;
+import android.content.SharedPreferences;
+
+/**
+ * Created by Jack on 3/31/2017.
+ */
+
+public class PrefManager {
+ SharedPreferences pref;
+ SharedPreferences.Editor editor;
+ Context _context;
+
+ // shared pref mode
+ int PRIVATE_MODE = 0;
+
+ // Shared preferences file name
+ private static final String PREF_NAME = "PickD-welcome";
+
+ private static final String IS_FIRST_TIME_LAUNCH = "IsFirstTimeLaunch";
+
+ public PrefManager(Context context) {
+ this._context = context;
+ pref = _context.getSharedPreferences(PREF_NAME, PRIVATE_MODE);
+ editor = pref.edit();
+ }
+
+ public void setFirstTimeLaunch(boolean isFirstTime) {
+ editor.putBoolean(IS_FIRST_TIME_LAUNCH, isFirstTime);
+ editor.commit();
+ }
+
+ public boolean isFirstTimeLaunch() {
+ return pref.getBoolean(IS_FIRST_TIME_LAUNCH, true);
+ }
+
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/jintu/pickd/Model/Category.java b/app/src/main/java/com/jintu/pickd/Model/Category.java
new file mode 100644
index 0000000..4533e7f
--- /dev/null
+++ b/app/src/main/java/com/jintu/pickd/Model/Category.java
@@ -0,0 +1,44 @@
+package com.jintu.pickd.Model;
+
+/**
+ * Created by Jack on 4/1/2017.
+ */
+
+public class Category {
+ private String name;
+ private int numOfSongs;
+ private int thumbnail;
+
+ public Category() {
+ }
+
+ public Category(String name, int numOfSongs, int thumbnail) {
+ this.name = name;
+ this.numOfSongs = numOfSongs;
+ this.thumbnail = thumbnail;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public int getNumOfSongs() {
+ return numOfSongs;
+ }
+
+ public void setNumOfSongs(int numOfSongs) {
+ this.numOfSongs = numOfSongs;
+ }
+
+ public int getThumbnail() {
+ return thumbnail;
+ }
+
+ public void setThumbnail(int thumbnail) {
+ this.thumbnail = thumbnail;
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/res/drawable-hdpi/ic_discount.png b/app/src/main/res/drawable-hdpi/ic_discount.png
new file mode 100644
index 0000000..debc27b
Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_discount.png differ
diff --git a/app/src/main/res/drawable-hdpi/ic_food.png b/app/src/main/res/drawable-hdpi/ic_food.png
new file mode 100644
index 0000000..3618ae5
Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_food.png differ
diff --git a/app/src/main/res/drawable-hdpi/ic_movie.png b/app/src/main/res/drawable-hdpi/ic_movie.png
new file mode 100644
index 0000000..0d96620
Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_movie.png differ
diff --git a/app/src/main/res/drawable-hdpi/ic_travel.png b/app/src/main/res/drawable-hdpi/ic_travel.png
new file mode 100644
index 0000000..d94496a
Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_travel.png differ
diff --git a/app/src/main/res/drawable-mdpi/ic_discount.png b/app/src/main/res/drawable-mdpi/ic_discount.png
new file mode 100644
index 0000000..a51125c
Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_discount.png differ
diff --git a/app/src/main/res/drawable-mdpi/ic_food.png b/app/src/main/res/drawable-mdpi/ic_food.png
new file mode 100644
index 0000000..5e764e0
Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_food.png differ
diff --git a/app/src/main/res/drawable-mdpi/ic_movie.png b/app/src/main/res/drawable-mdpi/ic_movie.png
new file mode 100644
index 0000000..c5a9546
Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_movie.png differ
diff --git a/app/src/main/res/drawable-mdpi/ic_travel.png b/app/src/main/res/drawable-mdpi/ic_travel.png
new file mode 100644
index 0000000..920c404
Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_travel.png differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_discount.png b/app/src/main/res/drawable-xhdpi/ic_discount.png
new file mode 100644
index 0000000..254c078
Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_discount.png differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_food.png b/app/src/main/res/drawable-xhdpi/ic_food.png
new file mode 100644
index 0000000..7af31ae
Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_food.png differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_movie.png b/app/src/main/res/drawable-xhdpi/ic_movie.png
new file mode 100644
index 0000000..cc2ebf6
Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_movie.png differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_travel.png b/app/src/main/res/drawable-xhdpi/ic_travel.png
new file mode 100644
index 0000000..9236d04
Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_travel.png differ
diff --git a/app/src/main/res/drawable-xxhdpi/ic_discount.png b/app/src/main/res/drawable-xxhdpi/ic_discount.png
new file mode 100644
index 0000000..f038d73
Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_discount.png differ
diff --git a/app/src/main/res/drawable-xxhdpi/ic_food.png b/app/src/main/res/drawable-xxhdpi/ic_food.png
new file mode 100644
index 0000000..bb3bc0e
Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_food.png differ
diff --git a/app/src/main/res/drawable-xxhdpi/ic_movie.png b/app/src/main/res/drawable-xxhdpi/ic_movie.png
new file mode 100644
index 0000000..73e528d
Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_movie.png differ
diff --git a/app/src/main/res/drawable-xxhdpi/ic_travel.png b/app/src/main/res/drawable-xxhdpi/ic_travel.png
new file mode 100644
index 0000000..1fbbd97
Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_travel.png differ
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_discount.png b/app/src/main/res/drawable-xxxhdpi/ic_discount.png
new file mode 100644
index 0000000..ee9a3a5
Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_discount.png differ
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_food.png b/app/src/main/res/drawable-xxxhdpi/ic_food.png
new file mode 100644
index 0000000..2ac75ad
Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_food.png differ
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_movie.png b/app/src/main/res/drawable-xxxhdpi/ic_movie.png
new file mode 100644
index 0000000..83436bf
Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_movie.png differ
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_travel.png b/app/src/main/res/drawable-xxxhdpi/ic_travel.png
new file mode 100644
index 0000000..ad12cd3
Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_travel.png differ
diff --git a/app/src/main/res/drawable/adidas.png b/app/src/main/res/drawable/adidas.png
new file mode 100644
index 0000000..bff4214
Binary files /dev/null and b/app/src/main/res/drawable/adidas.png differ
diff --git a/app/src/main/res/drawable/allensolly.png b/app/src/main/res/drawable/allensolly.png
new file mode 100644
index 0000000..96d1057
Binary files /dev/null and b/app/src/main/res/drawable/allensolly.png differ
diff --git a/app/src/main/res/drawable/baby.jpg b/app/src/main/res/drawable/baby.jpg
new file mode 100644
index 0000000..31d5e51
Binary files /dev/null and b/app/src/main/res/drawable/baby.jpg differ
diff --git a/app/src/main/res/drawable/book.jpg b/app/src/main/res/drawable/book.jpg
new file mode 100644
index 0000000..768723e
Binary files /dev/null and b/app/src/main/res/drawable/book.jpg differ
diff --git a/app/src/main/res/drawable/c1.jpg b/app/src/main/res/drawable/c1.jpg
new file mode 100644
index 0000000..5c60b45
Binary files /dev/null and b/app/src/main/res/drawable/c1.jpg differ
diff --git a/app/src/main/res/drawable/c2.jpg b/app/src/main/res/drawable/c2.jpg
new file mode 100644
index 0000000..0d07908
Binary files /dev/null and b/app/src/main/res/drawable/c2.jpg differ
diff --git a/app/src/main/res/drawable/c3.jpg b/app/src/main/res/drawable/c3.jpg
new file mode 100644
index 0000000..80a500d
Binary files /dev/null and b/app/src/main/res/drawable/c3.jpg differ
diff --git a/app/src/main/res/drawable/c5.jpg b/app/src/main/res/drawable/c5.jpg
new file mode 100644
index 0000000..5806d2c
Binary files /dev/null and b/app/src/main/res/drawable/c5.jpg differ
diff --git a/app/src/main/res/drawable/c7.jpg b/app/src/main/res/drawable/c7.jpg
new file mode 100644
index 0000000..e74881d
Binary files /dev/null and b/app/src/main/res/drawable/c7.jpg differ
diff --git a/app/src/main/res/drawable/c8.jpg b/app/src/main/res/drawable/c8.jpg
new file mode 100644
index 0000000..0675908
Binary files /dev/null and b/app/src/main/res/drawable/c8.jpg differ
diff --git a/app/src/main/res/drawable/c9.jpg b/app/src/main/res/drawable/c9.jpg
new file mode 100644
index 0000000..2ed406d
Binary files /dev/null and b/app/src/main/res/drawable/c9.jpg differ
diff --git a/app/src/main/res/drawable/cover.jpg b/app/src/main/res/drawable/cover.jpg
new file mode 100644
index 0000000..41b5c07
Binary files /dev/null and b/app/src/main/res/drawable/cover.jpg differ
diff --git a/app/src/main/res/drawable/logo.png b/app/src/main/res/drawable/logo.png
new file mode 100644
index 0000000..df24d29
Binary files /dev/null and b/app/src/main/res/drawable/logo.png differ
diff --git a/app/src/main/res/drawable/m1.png b/app/src/main/res/drawable/m1.png
new file mode 100644
index 0000000..3c150b4
Binary files /dev/null and b/app/src/main/res/drawable/m1.png differ
diff --git a/app/src/main/res/drawable/m2.png b/app/src/main/res/drawable/m2.png
new file mode 100644
index 0000000..a2a46c9
Binary files /dev/null and b/app/src/main/res/drawable/m2.png differ
diff --git a/app/src/main/res/drawable/m3.png b/app/src/main/res/drawable/m3.png
new file mode 100644
index 0000000..0eab41e
Binary files /dev/null and b/app/src/main/res/drawable/m3.png differ
diff --git a/app/src/main/res/drawable/m4.png b/app/src/main/res/drawable/m4.png
new file mode 100644
index 0000000..49a721d
Binary files /dev/null and b/app/src/main/res/drawable/m4.png differ
diff --git a/app/src/main/res/drawable/m5.png b/app/src/main/res/drawable/m5.png
new file mode 100644
index 0000000..c3d8c1e
Binary files /dev/null and b/app/src/main/res/drawable/m5.png differ
diff --git a/app/src/main/res/drawable/m6.png b/app/src/main/res/drawable/m6.png
new file mode 100644
index 0000000..df254dc
Binary files /dev/null and b/app/src/main/res/drawable/m6.png differ
diff --git a/app/src/main/res/drawable/m7.png b/app/src/main/res/drawable/m7.png
new file mode 100644
index 0000000..b3e07fd
Binary files /dev/null and b/app/src/main/res/drawable/m7.png differ
diff --git a/app/src/main/res/drawable/mall.png b/app/src/main/res/drawable/mall.png
new file mode 100644
index 0000000..c530b04
Binary files /dev/null and b/app/src/main/res/drawable/mall.png differ
diff --git a/app/src/main/res/drawable/mands.png b/app/src/main/res/drawable/mands.png
new file mode 100644
index 0000000..1335411
Binary files /dev/null and b/app/src/main/res/drawable/mands.png differ
diff --git a/app/src/main/res/drawable/puma.png b/app/src/main/res/drawable/puma.png
new file mode 100644
index 0000000..f5aec6b
Binary files /dev/null and b/app/src/main/res/drawable/puma.png differ
diff --git a/app/src/main/res/layout/activity_electronics.xml b/app/src/main/res/layout/activity_electronics.xml
new file mode 100644
index 0000000..f77138a
--- /dev/null
+++ b/app/src/main/res/layout/activity_electronics.xml
@@ -0,0 +1,9 @@
+
+
+
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..ca5a983
--- /dev/null
+++ b/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_man.xml b/app/src/main/res/layout/activity_man.xml
new file mode 100644
index 0000000..0d65c70
--- /dev/null
+++ b/app/src/main/res/layout/activity_man.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_welcome.xml b/app/src/main/res/layout/activity_welcome.xml
new file mode 100644
index 0000000..fae0a80
--- /dev/null
+++ b/app/src/main/res/layout/activity_welcome.xml
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_woman.xml b/app/src/main/res/layout/activity_woman.xml
new file mode 100644
index 0000000..4e121e7
--- /dev/null
+++ b/app/src/main/res/layout/activity_woman.xml
@@ -0,0 +1,9 @@
+
+
+
+
diff --git a/app/src/main/res/layout/album_card.xml b/app/src/main/res/layout/album_card.xml
new file mode 100644
index 0000000..4995801
--- /dev/null
+++ b/app/src/main/res/layout/album_card.xml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/content_main.xml b/app/src/main/res/layout/content_main.xml
new file mode 100644
index 0000000..18d2724
--- /dev/null
+++ b/app/src/main/res/layout/content_main.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/mall_items.xml b/app/src/main/res/layout/mall_items.xml
new file mode 100644
index 0000000..3975895
--- /dev/null
+++ b/app/src/main/res/layout/mall_items.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/men_items.xml b/app/src/main/res/layout/men_items.xml
new file mode 100644
index 0000000..1a50420
--- /dev/null
+++ b/app/src/main/res/layout/men_items.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/welcome_slide_1.xml b/app/src/main/res/layout/welcome_slide_1.xml
new file mode 100644
index 0000000..8eaf444
--- /dev/null
+++ b/app/src/main/res/layout/welcome_slide_1.xml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/welcome_slide_2.xml b/app/src/main/res/layout/welcome_slide_2.xml
new file mode 100644
index 0000000..3b7f82e
--- /dev/null
+++ b/app/src/main/res/layout/welcome_slide_2.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/welcome_slide_3.xml b/app/src/main/res/layout/welcome_slide_3.xml
new file mode 100644
index 0000000..dd806e2
--- /dev/null
+++ b/app/src/main/res/layout/welcome_slide_3.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/welcome_slide_4.xml b/app/src/main/res/layout/welcome_slide_4.xml
new file mode 100644
index 0000000..f21c841
--- /dev/null
+++ b/app/src/main/res/layout/welcome_slide_4.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..cde69bc
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..9a078e3
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c133a0c
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..efc028a
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..bfa42f0
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..3af2608
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..324e72c
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..9bec2e6
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..aee44e1
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..34947cd
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml
new file mode 100644
index 0000000..1c5afe8
--- /dev/null
+++ b/app/src/main/res/values/arrays.xml
@@ -0,0 +1,12 @@
+
+
+
+ - The Forum
+ - Garuda Mall
+ - Orion Mall
+ - Mantri Square
+ - Phoenix Market City
+ - Garuda Mall
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..fffe292
--- /dev/null
+++ b/app/src/main/res/values/colors.xml
@@ -0,0 +1,43 @@
+
+
+ #3F51B5
+ #303F9F
+ #FF4081
+
+
+ #f64c73
+ #20d2bb
+ #3395ff
+ #c873f4
+
+
+ #d1395c
+ #14a895
+ #2278d4
+ #a854d4
+
+
+ #f98da5
+ #8cf9eb
+ #93c6fd
+ #e4b5fc
+
+
+ - @color/dot_light_screen1
+ - @color/dot_light_screen2
+ - @color/dot_light_screen3
+ - @color/dot_light_screen4
+
+
+
+ - @color/dot_dark_screen1
+ - @color/dot_dark_screen2
+ - @color/dot_dark_screen3
+ - @color/dot_dark_screen4
+
+
+ #4D6577
+
+ #f1f5f8
+ #4c4c4c
+
diff --git a/app/src/main/res/values/dimen.xml b/app/src/main/res/values/dimen.xml
new file mode 100644
index 0000000..f433027
--- /dev/null
+++ b/app/src/main/res/values/dimen.xml
@@ -0,0 +1,27 @@
+
+
+ 16dp
+ 16dp
+ 16dp
+ 30dp
+ 20dp
+ 120dp
+ 30sp
+ 16sp
+ 40dp
+ 10dp
+ 250dp
+ 30dp
+ 18dp
+ 5dp
+ 0dp
+ 160dp
+ 10dp
+ 15dp
+ 5dp
+ 12dp
+ 20dp
+ 30dp
+ 10dp
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..55a8055
--- /dev/null
+++ b/app/src/main/res/values/strings.xml
@@ -0,0 +1,27 @@
+
+ PickD
+ Home Screen
+ NEXT
+ SKIP
+ GOT IT
+
+ Offers from Restaurants!
+ The easiest way to find mouth watering offers from your favourite restaurant!
+
+ Movie Tickets
+ Get best deals from your nearest movie theater!
+
+ Great Discounts
+ Best discounts on every single service we offer!
+
+ Best Deals from Malls
+ Get best discounts around you and Save money!
+
+
+ Settings
+ Add to Favourites
+ Play Next
+ LOVE MUSIC
+ This season top 20 Categorys
+
+
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..c6890cd
--- /dev/null
+++ b/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/test/java/com/jintu/pickd/ExampleUnitTest.java b/app/src/test/java/com/jintu/pickd/ExampleUnitTest.java
new file mode 100644
index 0000000..e445f2d
--- /dev/null
+++ b/app/src/test/java/com/jintu/pickd/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.jintu.pickd;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..1ea4bd0
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,23 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:2.3.0'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..aac7c9b
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1,17 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..13372ae
Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..ec062d3
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Fri Mar 31 23:48:25 IST 2017
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
diff --git a/gradlew b/gradlew
new file mode 100644
index 0000000..9d82f78
--- /dev/null
+++ b/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/gradlew.bat b/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/settings.gradle b/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/settings.gradle
@@ -0,0 +1 @@
+include ':app'