├── app
├── .gitignore
├── src
│ ├── main
│ │ ├── res
│ │ │ ├── drawable
│ │ │ │ ├── ac.jpg
│ │ │ │ ├── tv.jpg
│ │ │ │ ├── img1.jpeg
│ │ │ │ ├── img2.jpeg
│ │ │ │ ├── img3.jpeg
│ │ │ │ ├── img4.jpeg
│ │ │ │ ├── img5.jpeg
│ │ │ │ ├── jacob.jpg
│ │ │ │ ├── offer.jpg
│ │ │ │ ├── heater.jpg
│ │ │ │ ├── iphnx.jpeg
│ │ │ │ ├── mobile.jpg
│ │ │ │ ├── offer2.jpg
│ │ │ │ ├── reybane.jpeg
│ │ │ │ ├── s9plus.jpeg
│ │ │ │ ├── vivo11.jpeg
│ │ │ │ ├── washing.jpg
│ │ │ │ ├── headphone.jpeg
│ │ │ │ ├── shoesfila.jpeg
│ │ │ │ ├── googlepixel.jpeg
│ │ │ │ ├── color_cursor.xml
│ │ │ │ ├── circle_light_plus.xml
│ │ │ │ ├── black_circle.xml
│ │ │ │ ├── btn_red.xml
│ │ │ │ ├── green_circle.xml
│ │ │ │ ├── ic_add.xml
│ │ │ │ ├── red_circle.xml
│ │ │ │ ├── size_rect.xml
│ │ │ │ ├── brn_red_rect.xml
│ │ │ │ ├── btn_red_rect.xml
│ │ │ │ ├── ic_menu3.xml
│ │ │ │ ├── offer_red_rect.xml
│ │ │ │ ├── size_red_rect.xml
│ │ │ │ ├── white_circle.xml
│ │ │ │ ├── white_dark.xml
│ │ │ │ ├── white_light_rect.xml
│ │ │ │ ├── white_light_rect1.xml
│ │ │ │ ├── white_home_rect.xml
│ │ │ │ ├── ic_minus.xml
│ │ │ │ ├── ic_star_black_24dp.xml
│ │ │ │ ├── ic_plus.xml
│ │ │ │ ├── ic_tick.xml
│ │ │ │ ├── ic_edit.xml
│ │ │ │ ├── ic_back_white.xml
│ │ │ │ ├── ic_back_black.xml
│ │ │ │ ├── ic_dark_like.xml
│ │ │ │ ├── ic_search.xml
│ │ │ │ ├── ic_shopping_basket_1.xml
│ │ │ │ ├── ic_shopping_basket_red.xml
│ │ │ │ ├── ic_heart_light.xml
│ │ │ │ ├── circle.xml
│ │ │ │ ├── circle2.xml
│ │ │ │ ├── ic_delete.xml
│ │ │ │ ├── ic_supermarket.xml
│ │ │ │ ├── ic_paypal.xml
│ │ │ │ ├── ic_visa_logo.xml
│ │ │ │ ├── ic_settings.xml
│ │ │ │ └── ic_launcher_background.xml
│ │ │ ├── font
│ │ │ │ ├── roboto_black.ttf
│ │ │ │ ├── roboto_bold.ttf
│ │ │ │ ├── roboto_light.ttf
│ │ │ │ ├── roboto_italic.ttf
│ │ │ │ ├── roboto_medium.ttf
│ │ │ │ ├── roboto_regular.ttf
│ │ │ │ ├── sf_pro_display_bold.otf
│ │ │ │ ├── sf_pro_display_light.otf
│ │ │ │ ├── sf_pro_display_medium.otf
│ │ │ │ ├── sf_pro_display_regular.otf
│ │ │ │ └── sf_pro_display_semibold.otf
│ │ │ ├── mipmap-hdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-mdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ ├── layout
│ │ │ │ ├── fragment_fifth.xml
│ │ │ │ ├── fragment_first.xml
│ │ │ │ ├── fragment_fourth.xml
│ │ │ │ ├── fragment_second.xml
│ │ │ │ ├── fragment_third.xml
│ │ │ │ ├── item_navigation_list.xml
│ │ │ │ ├── activity_product_grid.xml
│ │ │ │ ├── activity_eshopping_list.xml
│ │ │ │ ├── activity_main.xml
│ │ │ │ ├── item_eshopping_list.xml
│ │ │ │ ├── activity_my_order.xml
│ │ │ │ ├── toolbar_product_list.xml
│ │ │ │ ├── toolbar_homepage.xml
│ │ │ │ ├── activity_product_list.xml
│ │ │ │ ├── activity_navigation.xml
│ │ │ │ ├── activity_splash_screen.xml
│ │ │ │ ├── toolbar_payment.xml
│ │ │ │ ├── activity_drawer.xml
│ │ │ │ ├── activity_sucessfull.xml
│ │ │ │ ├── item_review_list.xml
│ │ │ │ ├── item_favourite_list.xml
│ │ │ │ ├── item_smartphone_list.xml
│ │ │ │ ├── item_product_grid_list.xml
│ │ │ │ ├── activity_login.xml
│ │ │ │ ├── item_my_order_list.xml
│ │ │ │ ├── item_product_list.xml
│ │ │ │ ├── activity_signup.xml
│ │ │ │ ├── activity_home_page.xml
│ │ │ │ ├── activity_add_address.xml
│ │ │ │ └── activity_payment.xml
│ │ │ ├── values
│ │ │ │ ├── strings.xml
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ │ └── drawable-v24
│ │ │ │ └── ic_launcher_foreground.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── mhasancse
│ │ │ │ └── eshopping
│ │ │ │ ├── ModelClass
│ │ │ │ ├── ReviewModelClass.java
│ │ │ │ ├── EShoppingModelClass.java
│ │ │ │ ├── ProductGridModellClass.java
│ │ │ │ ├── ProductListModellClass.java
│ │ │ │ ├── FavouriteModelClass.java
│ │ │ │ └── MyOrderModelClass.java
│ │ │ │ ├── uiux
│ │ │ │ └── design
│ │ │ │ │ └── eshoppinguikit
│ │ │ │ │ ├── SignupActivity.java
│ │ │ │ │ ├── PaymentActivity.java
│ │ │ │ │ ├── SucessfullActivity.java
│ │ │ │ │ ├── AddAddressActivity.java
│ │ │ │ │ ├── LoginActivity.java
│ │ │ │ │ ├── SplashScreenActivity.java
│ │ │ │ │ ├── MyCartActivity.java
│ │ │ │ │ ├── EShoppingListActivity.java
│ │ │ │ │ ├── ProductGridActivity.java
│ │ │ │ │ ├── ProductListActivity.java
│ │ │ │ │ ├── MyOrderActivity.java
│ │ │ │ │ ├── HomePageActivity.java
│ │ │ │ │ └── NavigationActivity.java
│ │ │ │ ├── fragment
│ │ │ │ ├── FifthFragment.java
│ │ │ │ ├── ThirdFragment.java
│ │ │ │ ├── FourthFragment.java
│ │ │ │ ├── SecondFragment.java
│ │ │ │ └── FirstFragment.java
│ │ │ │ └── Adapter
│ │ │ │ ├── ProductDetailPagerAdapter.java
│ │ │ │ ├── ReviewsRecycleAdapter.java
│ │ │ │ ├── MyOrderRecycleAdapter.java
│ │ │ │ ├── NavigationRecycleAdapter.java
│ │ │ │ ├── RecycleAdapteProductGrid.java
│ │ │ │ ├── RecycleAdapteProductList.java
│ │ │ │ ├── SmartPhoneRecycleAdapter.java
│ │ │ │ ├── FavouriteRecycleAdapter.java
│ │ │ │ └── EShoppingListRecycleAdapter.java
│ │ └── AndroidManifest.xml
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── mhasancse
│ │ │ └── eshopping
│ │ │ └── ExampleUnitTest.java
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── mhasancse
│ │ └── eshopping
│ │ └── ExampleInstrumentedTest.java
├── proguard-rules.pro
└── build.gradle
├── settings.gradle
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── .idea
├── encodings.xml
├── misc.xml
├── runConfigurations.xml
└── gradle.xml
├── .gitignore
├── gradle.properties
├── gradlew.bat
└── gradlew
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ac.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/ac.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/tv.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/tv.jpg
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/app/src/main/res/drawable/img1.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/img1.jpeg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/img2.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/img2.jpeg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/img3.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/img3.jpeg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/img4.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/img4.jpeg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/img5.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/img5.jpeg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/jacob.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/jacob.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/offer.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/offer.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/heater.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/heater.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/iphnx.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/iphnx.jpeg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/mobile.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/mobile.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/offer2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/offer2.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/reybane.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/reybane.jpeg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/s9plus.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/s9plus.jpeg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/vivo11.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/vivo11.jpeg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/washing.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/washing.jpg
--------------------------------------------------------------------------------
/app/src/main/res/font/roboto_black.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/font/roboto_black.ttf
--------------------------------------------------------------------------------
/app/src/main/res/font/roboto_bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/font/roboto_bold.ttf
--------------------------------------------------------------------------------
/app/src/main/res/font/roboto_light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/font/roboto_light.ttf
--------------------------------------------------------------------------------
/app/src/main/res/drawable/headphone.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/headphone.jpeg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/shoesfila.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/shoesfila.jpeg
--------------------------------------------------------------------------------
/app/src/main/res/font/roboto_italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/font/roboto_italic.ttf
--------------------------------------------------------------------------------
/app/src/main/res/font/roboto_medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/font/roboto_medium.ttf
--------------------------------------------------------------------------------
/app/src/main/res/font/roboto_regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/font/roboto_regular.ttf
--------------------------------------------------------------------------------
/app/src/main/res/drawable/googlepixel.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/drawable/googlepixel.jpeg
--------------------------------------------------------------------------------
/app/src/main/res/font/sf_pro_display_bold.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/font/sf_pro_display_bold.otf
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/font/sf_pro_display_light.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/font/sf_pro_display_light.otf
--------------------------------------------------------------------------------
/app/src/main/res/font/sf_pro_display_medium.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/font/sf_pro_display_medium.otf
--------------------------------------------------------------------------------
/app/src/main/res/font/sf_pro_display_regular.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/font/sf_pro_display_regular.otf
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/font/sf_pro_display_semibold.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/font/sf_pro_display_semibold.otf
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mhasancse15/EShopping/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/color_cursor.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/circle_light_plus.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
7 |
8 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sat Oct 19 14:06:39 BDT 2019
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-5.1.1-all.zip
7 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/black_circle.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
9 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/btn_red.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/green_circle.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
9 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_add.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/red_circle.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
9 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/size_rect.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/brn_red_rect.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/btn_red_rect.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_menu3.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/offer_red_rect.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/size_red_rect.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/white_circle.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
9 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/white_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/white_light_rect.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/white_light_rect1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/white_home_rect.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_minus.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_star_black_24dp.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_plus.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_tick.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/test/java/com/mhasancse/eshopping/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping;
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() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/ModelClass/ReviewModelClass.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.ModelClass;
2 |
3 | /**
4 | * Created by wolfsoft5 on 25/2/19.
5 | */
6 |
7 | public class ReviewModelClass {
8 |
9 | String title;
10 |
11 | public ReviewModelClass(String title) {
12 | this.title = title;
13 | }
14 |
15 | public String getTitle() {
16 | return title;
17 | }
18 |
19 | public void setTitle(String title) {
20 | this.title = title;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_edit.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/ModelClass/EShoppingModelClass.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.ModelClass;
2 |
3 | /**
4 | * Created by wolfsoft5 on 30/6/18.
5 | */
6 |
7 | public class EShoppingModelClass {
8 |
9 | String title;
10 |
11 | public EShoppingModelClass(String title) {
12 | this.title = title;
13 | }
14 |
15 | public String getTitle() {
16 | return title;
17 | }
18 |
19 | public void setTitle(String title) {
20 | this.title = title;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_fifth.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_first.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_fourth.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_second.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_third.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/ModelClass/ProductGridModellClass.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.ModelClass;
2 |
3 | /**
4 | * Created by wolfsoft5 on 7/5/18.
5 | */
6 |
7 | public class ProductGridModellClass {
8 |
9 | Integer image;
10 |
11 | public ProductGridModellClass(Integer image) {
12 | this.image = image;
13 | }
14 |
15 | public Integer getImage() {
16 | return image;
17 | }
18 |
19 | public void setImage(Integer image) {
20 | this.image = image;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/uiux/design/eshoppinguikit/SignupActivity.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.uiux.design.eshoppinguikit;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 |
6 | import com.mhasancse.eshopping.R;
7 |
8 | public class SignupActivity extends AppCompatActivity {
9 |
10 | @Override
11 | protected void onCreate(Bundle savedInstanceState) {
12 | super.onCreate(savedInstanceState);
13 | setContentView(R.layout.activity_signup);
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/uiux/design/eshoppinguikit/PaymentActivity.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.uiux.design.eshoppinguikit;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 |
6 | import com.mhasancse.eshopping.R;
7 |
8 | public class PaymentActivity extends AppCompatActivity {
9 |
10 | @Override
11 | protected void onCreate(Bundle savedInstanceState) {
12 | super.onCreate(savedInstanceState);
13 | setContentView(R.layout.activity_payment);
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/uiux/design/eshoppinguikit/SucessfullActivity.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.uiux.design.eshoppinguikit;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 |
6 | import com.mhasancse.eshopping.R;
7 |
8 | public class SucessfullActivity extends AppCompatActivity {
9 |
10 | @Override
11 | protected void onCreate(Bundle savedInstanceState) {
12 | super.onCreate(savedInstanceState);
13 | setContentView(R.layout.activity_sucessfull);
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_back_white.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_back_black.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_dark_like.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | EShoppingUIKIT
3 |
4 | Rs 1000
5 | open_drawer
6 | close_drawer
7 | Rs 40000
8 | Rs 40000
9 |
10 |
11 | Hello blank fragment
12 | Rs. 2500
13 |
14 |
--------------------------------------------------------------------------------
/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_search.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/item_navigation_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
17 |
18 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #c61236
5 | #FF4081
6 | #dc143c
7 | #ffffff
8 | #E6E6EE
9 | #38393f
10 | #00000000
11 | #f5f5f5
12 | #e2e2e2
13 | #FFFF66
14 | #D3D3D3
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_product_grid.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/uiux/design/eshoppinguikit/AddAddressActivity.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.uiux.design.eshoppinguikit;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 | import android.widget.TextView;
6 |
7 | import com.mhasancse.eshopping.R;
8 |
9 | public class AddAddressActivity extends AppCompatActivity {
10 |
11 | TextView title;
12 |
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | setContentView(R.layout.activity_add_address);
17 |
18 | title = findViewById(R.id.title);
19 | title.setText("Add New Address");
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_eshopping_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
13 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx1536m
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/fragment/FifthFragment.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.fragment;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 |
9 | import com.mhasancse.eshopping.R;
10 |
11 |
12 | public class FifthFragment extends Fragment {
13 |
14 |
15 | private View view;
16 |
17 |
18 |
19 |
20 |
21 | @Override
22 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
23 | Bundle savedInstanceState) {
24 | // Inflate the layout for this fragment
25 | view = inflater.inflate(R.layout.fragment_fifth, container, false);
26 |
27 |
28 |
29 |
30 | return view;
31 | }
32 |
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/fragment/ThirdFragment.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.fragment;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 |
9 | import com.mhasancse.eshopping.R;
10 |
11 |
12 | public class ThirdFragment extends Fragment {
13 |
14 |
15 | private View view;
16 |
17 |
18 |
19 |
20 |
21 | @Override
22 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
23 | Bundle savedInstanceState) {
24 | // Inflate the layout for this fragment
25 | view = inflater.inflate(R.layout.fragment_third, container, false);
26 |
27 |
28 |
29 |
30 | return view;
31 | }
32 |
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/fragment/FourthFragment.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.fragment;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 |
9 | import com.mhasancse.eshopping.R;
10 |
11 |
12 | public class FourthFragment extends Fragment {
13 |
14 |
15 | private View view;
16 |
17 |
18 |
19 |
20 |
21 | @Override
22 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
23 | Bundle savedInstanceState) {
24 | // Inflate the layout for this fragment
25 | view = inflater.inflate(R.layout.fragment_fourth, container, false);
26 |
27 |
28 |
29 |
30 | return view;
31 | }
32 |
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/fragment/SecondFragment.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.fragment;
2 |
3 | import android.os.Bundle;
4 | import android.support.v4.app.Fragment;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 |
9 | import com.mhasancse.eshopping.R;
10 |
11 |
12 | public class SecondFragment extends Fragment {
13 |
14 |
15 | private View view;
16 |
17 |
18 |
19 |
20 |
21 | @Override
22 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
23 | Bundle savedInstanceState) {
24 | // Inflate the layout for this fragment
25 | view = inflater.inflate(R.layout.fragment_second, container, false);
26 |
27 |
28 |
29 |
30 | return view;
31 | }
32 |
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_shopping_basket_1.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_shopping_basket_red.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
18 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/item_eshopping_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
18 |
19 |
23 |
24 |
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_my_order.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/toolbar_product_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
13 |
14 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/androidTest/java/com/mhasancse/eshopping/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping;
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 | * Instrumented 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() {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.mhasancse.eshopping", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/fragment/FirstFragment.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.fragment;
2 |
3 | import android.content.Context;
4 | import android.net.Uri;
5 | import android.os.Bundle;
6 | import android.support.v4.app.Fragment;
7 | import android.support.v4.view.ViewPager;
8 | import android.view.LayoutInflater;
9 | import android.view.View;
10 | import android.view.ViewGroup;
11 |
12 | import com.mhasancse.eshopping.R;
13 |
14 |
15 | public class FirstFragment extends Fragment {
16 |
17 |
18 | private View view;
19 |
20 |
21 |
22 |
23 |
24 | @Override
25 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
26 | Bundle savedInstanceState) {
27 | // Inflate the layout for this fragment
28 | view = inflater.inflate(R.layout.fragment_first, container, false);
29 |
30 |
31 |
32 |
33 | return view;
34 | }
35 |
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/ModelClass/ProductListModellClass.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.ModelClass;
2 |
3 | /**
4 | * Created by wolfsoft5 on 7/5/18.
5 | */
6 |
7 | public class ProductListModellClass {
8 |
9 | Integer image;
10 | String title;
11 | Integer like;
12 |
13 | public ProductListModellClass(Integer image, String title, Integer like) {
14 | this.image = image;
15 | this.title = title;
16 | this.like = like;
17 | }
18 |
19 | public Integer getImage() {
20 | return image;
21 | }
22 |
23 | public void setImage(Integer image) {
24 | this.image = image;
25 | }
26 |
27 | public String getTitle() {
28 | return title;
29 | }
30 |
31 | public void setTitle(String title) {
32 | this.title = title;
33 | }
34 |
35 | public Integer getLike() {
36 | return like;
37 | }
38 |
39 | public void setLike(Integer like) {
40 | this.like = like;
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_heart_light.xml:
--------------------------------------------------------------------------------
1 |
3 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/uiux/design/eshoppinguikit/LoginActivity.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.uiux.design.eshoppinguikit;
2 |
3 | import android.content.Intent;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.os.Bundle;
6 | import android.view.View;
7 | import android.widget.Button;
8 |
9 | import com.mhasancse.eshopping.R;
10 |
11 | public class LoginActivity extends AppCompatActivity {
12 |
13 | Button button;
14 |
15 | @Override
16 | protected void onCreate(Bundle savedInstanceState) {
17 | super.onCreate(savedInstanceState);
18 | setContentView(R.layout.activity_login);
19 |
20 | // button = findViewById(R.id.button);
21 | // button.setOnClickListener(new View.OnClickListener() {
22 | // @Override
23 | // public void onClick(View v) {
24 | // Intent intent = new Intent(LoginActivity.this,SignupActivity.class);
25 | // startActivity(intent);
26 | // }
27 | // });
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/circle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/circle2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_delete.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_supermarket.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_paypal.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/toolbar_homepage.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
15 |
16 |
17 |
25 |
26 |
32 |
33 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/ModelClass/FavouriteModelClass.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.ModelClass;
2 |
3 | /**
4 | * Created by wolfsoft5 on 14/2/19.
5 | */
6 |
7 | public class FavouriteModelClass {
8 |
9 | Integer image;
10 | String title,price;
11 | boolean isSelected = true;
12 |
13 |
14 | public FavouriteModelClass(Integer image, String title, String price) {
15 | this.image = image;
16 | this.title = title;
17 | this.price = price;
18 | }
19 |
20 | public Integer getImage() {
21 | return image;
22 | }
23 |
24 | public void setImage(Integer image) {
25 | this.image = image;
26 | }
27 |
28 | public String getTitle() {
29 | return title;
30 | }
31 |
32 | public void setTitle(String title) {
33 | this.title = title;
34 | }
35 |
36 | public String getPrice() {
37 | return price;
38 | }
39 |
40 | public void setPrice(String price) {
41 | this.price = price;
42 | }
43 |
44 | public boolean isSelected() {
45 | return isSelected;
46 | }
47 |
48 | public void setSelected(boolean selected) {
49 | isSelected = selected;
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
20 |
21 |
25 |
26 |
30 |
31 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_product_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
16 |
17 |
21 |
22 |
23 |
24 |
25 |
26 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 28
5 | buildToolsVersion "29.0.0"
6 | defaultConfig {
7 | applicationId "com.mhasancse.eshopping"
8 | minSdkVersion 19
9 | targetSdkVersion 28
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-optimize.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | implementation fileTree(include: ['*.jar'], dir: 'libs')
24 | implementation 'com.android.support:appcompat-v7:28.0.0'
25 | implementation 'com.android.support.constraint:constraint-layout:1.1.3'
26 | implementation 'com.android.support:support-v4:28.0.0'
27 | testImplementation 'junit:junit:4.12'
28 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
29 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
30 | implementation 'com.android.support:design:28.0.0'
31 | implementation 'com.android.support:recyclerview-v7:28.0.0'
32 | implementation 'de.hdodenhof:circleimageview:3.0.0'
33 | implementation 'me.relex:circleindicator:1.2.2'
34 | }
35 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/uiux/design/eshoppinguikit/SplashScreenActivity.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.uiux.design.eshoppinguikit;
2 |
3 | import android.content.Intent;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.os.Bundle;
6 |
7 | import com.mhasancse.eshopping.R;
8 |
9 | public class SplashScreenActivity extends AppCompatActivity {
10 |
11 | @Override
12 | protected void onCreate(Bundle savedInstanceState) {
13 | super.onCreate(savedInstanceState);
14 | setContentView(R.layout.activity_splash_screen);
15 |
16 |
17 |
18 | Thread background = new Thread() {
19 | public void run() {
20 |
21 | try {
22 | // Thread will sleep for 5 seconds
23 | sleep(2*1000);
24 |
25 | Intent intent = new Intent(SplashScreenActivity.this,EShoppingListActivity.class);
26 | startActivity(intent);
27 |
28 |
29 | // After 5 seconds redirect to another intent
30 |
31 |
32 | //Remove activity
33 | finish();
34 |
35 | } catch (Exception e) {
36 |
37 | }
38 | }
39 | };
40 |
41 | // start thread
42 | background.start();
43 |
44 |
45 | }
46 |
47 | @Override
48 | protected void onDestroy() {
49 |
50 | super.onDestroy();
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_navigation.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
16 |
17 |
19 |
20 |
24 |
25 |
26 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_visa_logo.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/ModelClass/MyOrderModelClass.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.ModelClass;
2 |
3 | /**
4 | * Created by wolfsoft5 on 28/2/19.
5 | */
6 |
7 | public class MyOrderModelClass {
8 |
9 | Integer image;
10 | String title,quantity,price,date,order_no;
11 |
12 | public MyOrderModelClass(Integer image, String title, String quantity, String price, String date, String order_no) {
13 | this.image = image;
14 | this.title = title;
15 | this.quantity = quantity;
16 | this.price = price;
17 | this.date = date;
18 | this.order_no = order_no;
19 | }
20 |
21 | public Integer getImage() {
22 | return image;
23 | }
24 |
25 | public void setImage(Integer image) {
26 | this.image = image;
27 | }
28 |
29 | public String getTitle() {
30 | return title;
31 | }
32 |
33 | public void setTitle(String title) {
34 | this.title = title;
35 | }
36 |
37 | public String getQuantity() {
38 | return quantity;
39 | }
40 |
41 | public void setQuantity(String quantity) {
42 | this.quantity = quantity;
43 | }
44 |
45 | public String getPrice() {
46 | return price;
47 | }
48 |
49 | public void setPrice(String price) {
50 | this.price = price;
51 | }
52 |
53 | public String getDate() {
54 | return date;
55 | }
56 |
57 | public void setDate(String date) {
58 | this.date = date;
59 | }
60 |
61 | public String getOrder_no() {
62 | return order_no;
63 | }
64 |
65 | public void setOrder_no(String order_no) {
66 | this.order_no = order_no;
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/Adapter/ProductDetailPagerAdapter.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.Adapter;
2 | import android.support.v4.app.Fragment;
3 | import android.support.v4.app.FragmentManager;
4 | import android.support.v4.app.FragmentStatePagerAdapter;
5 |
6 | import com.mhasancse.eshopping.fragment.FifthFragment;
7 | import com.mhasancse.eshopping.fragment.FirstFragment;
8 | import com.mhasancse.eshopping.fragment.FourthFragment;
9 | import com.mhasancse.eshopping.fragment.SecondFragment;
10 | import com.mhasancse.eshopping.fragment.ThirdFragment;
11 |
12 |
13 | public class ProductDetailPagerAdapter extends FragmentStatePagerAdapter {
14 |
15 |
16 |
17 | public ProductDetailPagerAdapter(FragmentManager fm) {
18 | super(fm);
19 |
20 | }
21 |
22 |
23 |
24 | @Override
25 | public Fragment getItem(int position) {
26 |
27 | switch (position) {
28 | case 0:
29 | FirstFragment tab1 = new FirstFragment();
30 | return tab1;
31 |
32 | case 1:
33 | SecondFragment tab6 = new SecondFragment();
34 | return tab6;
35 |
36 |
37 | case 2:
38 | ThirdFragment tab2 = new ThirdFragment();
39 | return tab2;
40 |
41 | case 3:
42 | FourthFragment tab3 = new FourthFragment();
43 | return tab3;
44 |
45 |
46 | case 4:
47 | FifthFragment tab4 = new FifthFragment();
48 | return tab4;
49 |
50 |
51 | default:
52 | return null;
53 | }
54 | }
55 |
56 | @Override
57 | public int getCount() {
58 | return 5;
59 | }
60 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/uiux/design/eshoppinguikit/MyCartActivity.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.uiux.design.eshoppinguikit;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 | import android.view.View;
6 | import android.widget.ImageView;
7 | import android.widget.LinearLayout;
8 | import android.widget.TextView;
9 |
10 | import com.mhasancse.eshopping.R;
11 |
12 | public class MyCartActivity extends AppCompatActivity {
13 |
14 | TextView title,number;
15 |
16 | LinearLayout linear_add,linear_count,bottom_linear;
17 | ImageView add,minus;
18 |
19 |
20 | int count=1,adult=1;
21 |
22 | @Override
23 | protected void onCreate(Bundle savedInstanceState) {
24 | super.onCreate(savedInstanceState);
25 | setContentView(R.layout.activity_my_cart);
26 |
27 | title = findViewById(R.id.title);
28 | title.setText("Cart");
29 |
30 |
31 |
32 | //linear_add = findViewById(R.id.linear_add);
33 | linear_count = findViewById(R.id.linear_count);
34 | add = findViewById(R.id.plus);
35 | minus = findViewById(R.id.minus);
36 | number = findViewById(R.id.number);
37 |
38 | add.setOnClickListener(new View.OnClickListener() {
39 | @Override
40 | public void onClick(View v) {
41 | count++;
42 | number.setText(String.valueOf(count));
43 | }
44 | });
45 | minus.setOnClickListener(new View.OnClickListener() {
46 | @Override
47 | public void onClick(View v) {
48 | if (count!=1){
49 | count--;
50 | number.setText(String.valueOf(count));
51 | }
52 | }
53 |
54 | });
55 |
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
16 |
17 |
18 |
23 |
24 |
34 |
35 |
36 |
37 |
38 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/toolbar_payment.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
12 |
13 |
23 |
24 |
25 |
31 |
32 |
38 |
39 |
40 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
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/java/com/mhasancse/eshopping/Adapter/ReviewsRecycleAdapter.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.Adapter;
2 |
3 | import android.content.Context;
4 | import android.content.Intent;
5 | import android.support.annotation.NonNull;
6 | import android.support.v7.widget.RecyclerView;
7 | import android.view.LayoutInflater;
8 | import android.view.View;
9 | import android.view.ViewGroup;
10 | import android.widget.TextView;
11 |
12 | import java.util.ArrayList;
13 | import java.util.List;
14 |
15 |
16 | import com.mhasancse.eshopping.ModelClass.ReviewModelClass;
17 | import com.mhasancse.eshopping.R;
18 |
19 |
20 |
21 | public class ReviewsRecycleAdapter extends RecyclerView.Adapter {
22 |
23 | Context context;
24 |
25 |
26 | private List OfferList;
27 |
28 |
29 | public class MyViewHolder extends RecyclerView.ViewHolder {
30 |
31 |
32 | TextView title;
33 |
34 |
35 | public MyViewHolder(View view) {
36 | super(view);
37 |
38 | title = (TextView) view.findViewById(R.id.title);
39 |
40 |
41 | }
42 |
43 | }
44 |
45 |
46 | public ReviewsRecycleAdapter(Context context, ArrayList offerList) {
47 | this.OfferList = offerList;
48 | this.context = context;
49 | }
50 |
51 | @Override
52 | public ReviewsRecycleAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
53 | View itemView = LayoutInflater.from(parent.getContext())
54 | .inflate(R.layout.item_review_list, parent, false);
55 |
56 |
57 | return new ReviewsRecycleAdapter.MyViewHolder(itemView);
58 |
59 |
60 | }
61 |
62 | @Override
63 | public void onBindViewHolder(@NonNull MyViewHolder holder, final int position) {
64 | ReviewModelClass lists = OfferList.get(position);
65 | holder.title.setText(lists.getTitle());
66 |
67 |
68 |
69 | }
70 |
71 |
72 | @Override
73 | public int getItemCount() {
74 | return OfferList.size();
75 |
76 | }
77 |
78 | }
79 |
80 |
81 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/uiux/design/eshoppinguikit/EShoppingListActivity.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.uiux.design.eshoppinguikit;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 | import android.support.v7.widget.DefaultItemAnimator;
6 | import android.support.v7.widget.LinearLayoutManager;
7 | import android.support.v7.widget.RecyclerView;
8 |
9 | import com.mhasancse.eshopping.Adapter.EShoppingListRecycleAdapter;
10 | import com.mhasancse.eshopping.ModelClass.EShoppingModelClass;
11 | import com.mhasancse.eshopping.R;
12 |
13 | import java.util.ArrayList;
14 |
15 |
16 |
17 | public class EShoppingListActivity extends AppCompatActivity {
18 |
19 | private ArrayList eShoppingModelClasses;
20 | private RecyclerView recyclerView;
21 | private EShoppingListRecycleAdapter bAdapter;
22 |
23 | private String txt[]={"1.SignUp Activity","2.SignIn Activity","3.Homepage Activity","4.Navigation Activity","5.ProductList Activity","6.ProductGrid Activity",
24 | "7.ProdcutDetail Activity","8.Cart Activity","9.Address Activity","10.Payment Activity","11.MyOrder Activity","12.Sucessfull Order Activity"};
25 |
26 |
27 | @Override
28 | protected void onCreate(Bundle savedInstanceState) {
29 | super.onCreate(savedInstanceState);
30 | setContentView(R.layout.activity_eshopping_list);
31 |
32 |
33 | /*recyclerview code is here*/
34 |
35 |
36 | recyclerView = findViewById(R.id.recyclerView);
37 | RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(EShoppingListActivity.this);
38 | recyclerView.setLayoutManager(layoutManager);
39 | recyclerView.setItemAnimator(new DefaultItemAnimator());
40 |
41 | eShoppingModelClasses = new ArrayList<>();
42 |
43 | for (int i = 0; i < txt.length; i++) {
44 | EShoppingModelClass beanClassForRecyclerView_contacts = new EShoppingModelClass(txt[i]);
45 | eShoppingModelClasses.add(beanClassForRecyclerView_contacts);
46 | }
47 | bAdapter = new EShoppingListRecycleAdapter(EShoppingListActivity.this,eShoppingModelClasses);
48 | recyclerView.setAdapter(bAdapter);
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/uiux/design/eshoppinguikit/ProductGridActivity.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.uiux.design.eshoppinguikit;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 | import android.support.v7.widget.DefaultItemAnimator;
6 | import android.support.v7.widget.GridLayoutManager;
7 | import android.support.v7.widget.RecyclerView;
8 | import android.widget.TextView;
9 |
10 | import com.mhasancse.eshopping.Adapter.RecycleAdapteProductGrid;
11 | import com.mhasancse.eshopping.ModelClass.ProductGridModellClass;
12 | import com.mhasancse.eshopping.R;
13 |
14 | import java.util.ArrayList;
15 |
16 |
17 | public class ProductGridActivity extends AppCompatActivity {
18 |
19 |
20 | private ArrayList productGridModellClasses;
21 | private RecyclerView recyclerview;
22 | private RecycleAdapteProductGrid mAdapter2;
23 | private Integer image1[]={R.drawable.s9plus,R.drawable.s9plus,R.drawable.s9plus,R.drawable.s9plus,R.drawable.s9plus,R.drawable.s9plus};
24 |
25 | TextView title;
26 |
27 | @Override
28 | protected void onCreate(Bundle savedInstanceState) {
29 | super.onCreate(savedInstanceState);
30 | setContentView(R.layout.activity_product_grid);
31 |
32 | title = findViewById(R.id.title);
33 | title.setText("Product Grid");
34 |
35 | // New Arrival Kitchen Recyclerview Code is here
36 |
37 | recyclerview = (RecyclerView) findViewById(R.id.recyclerview);
38 |
39 | productGridModellClasses = new ArrayList<>();
40 |
41 |
42 |
43 | for (int i = 0; i < image1.length; i++) {
44 | ProductGridModellClass beanClassForRecyclerView_contacts = new ProductGridModellClass(image1[i]);
45 | productGridModellClasses.add(beanClassForRecyclerView_contacts);
46 | }
47 |
48 |
49 |
50 | mAdapter2 = new RecycleAdapteProductGrid(ProductGridActivity.this,productGridModellClasses);
51 | RecyclerView.LayoutManager mLayoutManager = new GridLayoutManager(ProductGridActivity.this,2);
52 | recyclerview.setLayoutManager(mLayoutManager);
53 | recyclerview.setItemAnimator(new DefaultItemAnimator());
54 | recyclerview.setAdapter(mAdapter2);
55 |
56 |
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/uiux/design/eshoppinguikit/ProductListActivity.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.uiux.design.eshoppinguikit;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 | import android.support.v7.widget.DefaultItemAnimator;
6 | import android.support.v7.widget.LinearLayoutManager;
7 | import android.support.v7.widget.RecyclerView;
8 |
9 | import com.mhasancse.eshopping.Adapter.RecycleAdapteProductList;
10 | import com.mhasancse.eshopping.ModelClass.ProductListModellClass;
11 | import com.mhasancse.eshopping.R;
12 |
13 | import java.util.ArrayList;
14 |
15 |
16 |
17 | public class ProductListActivity extends AppCompatActivity {
18 |
19 |
20 | private ArrayList productListModellClasses;
21 | private RecyclerView recyclerview;
22 | private RecycleAdapteProductList mAdapter2;
23 | private Integer image1[]={R.drawable.s9plus, R.drawable.iphnx,R.drawable.googlepixel,R.drawable.vivo11};
24 | private String title1[] ={"Samsung S9 Plus","I Phone X","Google Pixel 3","Vivo V-11 Pro",};
25 | private Integer like[] = {R.drawable.ic_heart_light,R.drawable.ic_dark_like,R.drawable.ic_dark_like,R.drawable.ic_heart_light,};
26 |
27 | @Override
28 | protected void onCreate(Bundle savedInstanceState) {
29 | super.onCreate(savedInstanceState);
30 | setContentView(R.layout.activity_product_list);
31 |
32 |
33 |
34 | // Product List Recyclerview Code is here
35 |
36 | recyclerview = (RecyclerView)findViewById(R.id.recyclerview);
37 |
38 | productListModellClasses = new ArrayList<>();
39 |
40 |
41 |
42 | for (int i = 0; i < image1.length; i++) {
43 | ProductListModellClass beanClassForRecyclerView_contacts = new ProductListModellClass(image1[i],title1[i],like[i]);
44 |
45 | productListModellClasses.add(beanClassForRecyclerView_contacts);
46 | }
47 |
48 |
49 |
50 | mAdapter2 = new RecycleAdapteProductList(ProductListActivity.this,productListModellClasses);
51 | RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(ProductListActivity.this);
52 | recyclerview.setLayoutManager(mLayoutManager);
53 | recyclerview.setItemAnimator(new DefaultItemAnimator());
54 | recyclerview.setAdapter(mAdapter2);
55 |
56 |
57 |
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/uiux/design/eshoppinguikit/MyOrderActivity.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.uiux.design.eshoppinguikit;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 | import android.support.v7.widget.DefaultItemAnimator;
6 | import android.support.v7.widget.LinearLayoutManager;
7 | import android.support.v7.widget.RecyclerView;
8 | import android.widget.TextView;
9 |
10 | import com.mhasancse.eshopping.Adapter.MyOrderRecycleAdapter;
11 | import com.mhasancse.eshopping.ModelClass.MyOrderModelClass;
12 | import com.mhasancse.eshopping.R;
13 |
14 | import java.util.ArrayList;
15 |
16 |
17 |
18 | public class MyOrderActivity extends AppCompatActivity {
19 |
20 | TextView title;
21 |
22 | private ArrayList myOrderModelClasses;
23 | private RecyclerView recyclerview;
24 | private MyOrderRecycleAdapter mAdapter2;
25 |
26 | private Integer image[] = {R.drawable.s9plus,R.drawable.shoesfila};
27 | private String title1[] = {"Samsung Galaxy S9 Plus","Fila Super"};
28 | private String price[] = {"Rs. 30,000","Rs. 2500"};
29 | private String qty[] = {"1","1"};
30 | private String date [] = {"28/01/2019 5:00PM","12/02/2019 11:00 AM"};
31 | private String order_no[] = {"#412458","#154352"};
32 |
33 | @Override
34 | protected void onCreate(Bundle savedInstanceState) {
35 | super.onCreate(savedInstanceState);
36 | setContentView(R.layout.activity_my_order);
37 |
38 | title = findViewById(R.id.title);
39 | title.setText("My Order");
40 |
41 |
42 |
43 | // MyOrder Recyclerview Code is here
44 |
45 | recyclerview = (RecyclerView)findViewById(R.id.recyclerView);
46 |
47 | myOrderModelClasses = new ArrayList<>();
48 |
49 |
50 |
51 | for (int i = 0; i < image.length; i++) {
52 | MyOrderModelClass beanClassForRecyclerView_contacts = new MyOrderModelClass(image[i],title1[i],price[i],qty[i],date[i],order_no[i]);
53 |
54 | myOrderModelClasses.add(beanClassForRecyclerView_contacts);
55 | }
56 |
57 |
58 |
59 | mAdapter2 = new MyOrderRecycleAdapter(MyOrderActivity.this,myOrderModelClasses);
60 | RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(MyOrderActivity.this);
61 | recyclerview.setLayoutManager(mLayoutManager);
62 | recyclerview.setItemAnimator(new DefaultItemAnimator());
63 | recyclerview.setAdapter(mAdapter2);
64 |
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/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 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
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 Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/Adapter/MyOrderRecycleAdapter.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.Adapter;
2 |
3 | import android.content.Context;
4 | import android.support.annotation.NonNull;
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 |
17 | import com.mhasancse.eshopping.ModelClass.MyOrderModelClass;
18 | import com.mhasancse.eshopping.R;
19 |
20 |
21 | public class MyOrderRecycleAdapter extends RecyclerView.Adapter {
22 |
23 | Context context;
24 |
25 |
26 | private List OfferList;
27 |
28 |
29 | public class MyViewHolder extends RecyclerView.ViewHolder {
30 |
31 |
32 | ImageView image;
33 | TextView title,qty,price,date,order_no;
34 |
35 |
36 | public MyViewHolder(View view) {
37 | super(view);
38 |
39 | image = (ImageView) view.findViewById(R.id.image);
40 | title = (TextView) view.findViewById(R.id.title);
41 | qty = (TextView) view.findViewById(R.id.qty);
42 | price = (TextView) view.findViewById(R.id.price);
43 | date = (TextView) view.findViewById(R.id.date);
44 | order_no = (TextView) view.findViewById(R.id.order_no);
45 |
46 |
47 | }
48 |
49 | }
50 |
51 |
52 | public MyOrderRecycleAdapter(Context context, ArrayList offerList) {
53 | this.OfferList = offerList;
54 | this.context = context;
55 | }
56 |
57 | @Override
58 | public MyOrderRecycleAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
59 | View itemView = LayoutInflater.from(parent.getContext())
60 | .inflate(R.layout.item_my_order_list, parent, false);
61 |
62 |
63 | return new MyOrderRecycleAdapter.MyViewHolder(itemView);
64 |
65 |
66 | }
67 |
68 | @Override
69 | public void onBindViewHolder(@NonNull MyViewHolder holder, final int position) {
70 | MyOrderModelClass lists = OfferList.get(position);
71 | holder.image.setImageResource(lists.getImage());
72 | holder.title.setText(lists.getTitle());
73 | holder.qty.setText(lists.getQuantity());
74 | holder.price.setText(lists.getPrice());
75 | holder.date.setText(lists.getDate());
76 | holder.order_no.setText(lists.getOrder_no());
77 |
78 |
79 |
80 | }
81 |
82 |
83 | @Override
84 | public int getItemCount() {
85 | return OfferList.size();
86 |
87 | }
88 |
89 | }
90 |
91 |
92 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_settings.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/Adapter/NavigationRecycleAdapter.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.Adapter;
2 |
3 | import android.content.Context;
4 | import android.content.Intent;
5 | import android.graphics.Color;
6 | import android.support.annotation.NonNull;
7 | import android.support.v7.widget.RecyclerView;
8 | import android.view.LayoutInflater;
9 | import android.view.View;
10 | import android.view.ViewGroup;
11 | import android.widget.TextView;
12 |
13 | import java.util.ArrayList;
14 | import java.util.List;
15 |
16 |
17 |
18 | import com.mhasancse.eshopping.ModelClass.EShoppingModelClass;
19 | import com.mhasancse.eshopping.R;
20 |
21 |
22 |
23 | public class NavigationRecycleAdapter extends RecyclerView.Adapter {
24 |
25 | Context context;
26 |
27 |
28 | private List OfferList;
29 |
30 | int myPos = 0;
31 |
32 | public class MyViewHolder extends RecyclerView.ViewHolder {
33 |
34 |
35 | TextView title;
36 |
37 |
38 | public MyViewHolder(View view) {
39 | super(view);
40 |
41 | title = (TextView) view.findViewById(R.id.title);
42 |
43 |
44 | }
45 |
46 | }
47 |
48 |
49 | public NavigationRecycleAdapter(Context context, ArrayList offerList) {
50 | this.OfferList = offerList;
51 | this.context = context;
52 | }
53 |
54 | @Override
55 | public NavigationRecycleAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
56 | View itemView = LayoutInflater.from(parent.getContext())
57 | .inflate(R.layout.item_navigation_list, parent, false);
58 |
59 |
60 | return new NavigationRecycleAdapter.MyViewHolder(itemView);
61 |
62 |
63 | }
64 |
65 | @Override
66 | public void onBindViewHolder(@NonNull MyViewHolder holder, final int position) {
67 | EShoppingModelClass lists = OfferList.get(position);
68 | holder.title.setText(lists.getTitle());
69 |
70 | if (myPos == position){
71 | holder.title.setTextColor(Color.parseColor("#38393f"));
72 |
73 |
74 | }else {
75 |
76 | holder.title.setTextColor(Color.parseColor("#acacac"));
77 |
78 | }
79 |
80 |
81 | holder.itemView.setOnClickListener(new View.OnClickListener() {
82 | @Override
83 | public void onClick(View view) {
84 | myPos = position;
85 | notifyDataSetChanged();
86 |
87 | }
88 |
89 |
90 | });
91 |
92 |
93 |
94 | }
95 |
96 |
97 | @Override
98 | public int getItemCount() {
99 | return OfferList.size();
100 |
101 | }
102 |
103 | }
104 |
105 |
106 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/Adapter/RecycleAdapteProductGrid.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.Adapter;
2 |
3 |
4 | import android.content.Context;
5 | import android.graphics.Paint;
6 | import android.os.Build;
7 | import android.support.annotation.RequiresApi;
8 | import android.support.v7.widget.RecyclerView;
9 | import android.view.LayoutInflater;
10 | import android.view.View;
11 | import android.view.ViewGroup;
12 | import android.widget.ImageView;
13 | import android.widget.LinearLayout;
14 | import android.widget.TextView;
15 |
16 | import com.mhasancse.eshopping.ModelClass.ProductGridModellClass;
17 | import com.mhasancse.eshopping.R;
18 |
19 | import java.util.ArrayList;
20 | import java.util.List;
21 |
22 | /**
23 | * Created by Rp on 6/14/2016.
24 | */
25 | public class RecycleAdapteProductGrid extends RecyclerView.Adapter {
26 | Context context;
27 |
28 |
29 | private List moviesList;
30 |
31 | int myPos = 0;
32 |
33 |
34 | public class MyViewHolder extends RecyclerView.ViewHolder {
35 |
36 |
37 | TextView title,offer,text;
38 | ImageView image;
39 | LinearLayout linear;
40 |
41 |
42 | public MyViewHolder(View view) {
43 | super(view);
44 |
45 | image = (ImageView) view.findViewById(R.id.image);
46 | offer = (TextView) view.findViewById(R.id.offer);
47 | text = (TextView) view.findViewById(R.id.text);
48 | //linear = (LinearLayout) view.findViewById(R.id.linear);
49 |
50 | }
51 |
52 | }
53 |
54 |
55 | public RecycleAdapteProductGrid(Context context, ArrayList moviesList) {
56 | this.moviesList = moviesList;
57 | this.context = context;
58 | }
59 |
60 | @Override
61 | public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
62 | View itemView = LayoutInflater.from(parent.getContext())
63 | .inflate(R.layout.item_product_grid_list, parent, false);
64 |
65 |
66 | return new MyViewHolder(itemView);
67 |
68 |
69 | }
70 |
71 |
72 | @RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN)
73 | @Override
74 | public void onBindViewHolder(final MyViewHolder holder,final int position) {
75 | ProductGridModellClass movie = moviesList.get(position);
76 | holder.image.setImageResource(movie.getImage());
77 |
78 | holder.offer.setText("Rs 60,000");
79 | holder.offer.setPaintFlags(holder.offer.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
80 |
81 | if(position==2 | position==5){
82 | holder.text.setVisibility(View.VISIBLE);
83 |
84 | }else {
85 | holder.text.setVisibility(View.GONE);
86 | }
87 |
88 |
89 |
90 | }
91 |
92 | @Override
93 | public int getItemCount() {
94 | return moviesList.size();
95 | }
96 |
97 |
98 |
99 | }
100 |
101 |
102 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_drawer.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
16 |
17 |
18 |
23 |
24 |
25 |
33 |
34 |
35 |
42 |
43 |
50 |
58 |
59 |
60 |
61 |
62 |
68 |
69 |
70 |
71 |
72 |
77 |
78 |
79 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_sucessfull.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
24 |
25 |
31 |
32 |
33 |
42 |
43 |
44 |
52 |
53 |
54 |
67 |
68 |
81 |
82 |
83 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/Adapter/RecycleAdapteProductList.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.Adapter;
2 |
3 | import android.app.Dialog;
4 | import android.content.Context;
5 | import android.graphics.Paint;
6 | import android.os.Build;
7 | import android.support.annotation.RequiresApi;
8 | import android.support.v7.widget.RecyclerView;
9 | import android.view.LayoutInflater;
10 | import android.view.View;
11 | import android.view.ViewGroup;
12 | import android.widget.ImageView;
13 | import android.widget.LinearLayout;
14 | import android.widget.RadioButton;
15 | import android.widget.TextView;
16 |
17 | import java.util.ArrayList;
18 | import java.util.List;
19 |
20 |
21 | import com.mhasancse.eshopping.ModelClass.ProductListModellClass;
22 | import com.mhasancse.eshopping.R;
23 |
24 |
25 | /**
26 | * Created by Rp on 6/14/2016.
27 | */
28 | public class RecycleAdapteProductList extends RecyclerView.Adapter {
29 | Context context;
30 |
31 |
32 | private List moviesList;
33 |
34 | Dialog myDialog, slideDialog;
35 | RadioButton btn1,btn2,btn3,btn4,btn5,btn6,btn11,btn22,btn33,btn44;
36 |
37 |
38 | public class MyViewHolder extends RecyclerView.ViewHolder {
39 |
40 |
41 |
42 | ImageView image,like;
43 | TextView title,offer;
44 | LinearLayout linear;
45 |
46 |
47 |
48 |
49 | public MyViewHolder(View view) {
50 | super(view);
51 |
52 | image = (ImageView) view.findViewById(R.id.image);
53 | like = (ImageView) view.findViewById(R.id.like);
54 | title = (TextView)view.findViewById(R.id.title);
55 | offer = (TextView) view.findViewById(R.id.offer);
56 | // linear = (LinearLayout) view.findViewById(R.id.linear);
57 |
58 | }
59 |
60 | }
61 |
62 |
63 | public RecycleAdapteProductList(Context context, ArrayList moviesList) {
64 | this.moviesList = moviesList;
65 | this.context = context;
66 | }
67 |
68 | @Override
69 | public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
70 | View itemView = LayoutInflater.from(parent.getContext())
71 | .inflate(R.layout.item_product_list, parent, false);
72 |
73 |
74 | return new MyViewHolder(itemView);
75 |
76 |
77 | }
78 |
79 |
80 | @RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN)
81 | @Override
82 | public void onBindViewHolder(final MyViewHolder holder,final int position) {
83 | ProductListModellClass movie = moviesList.get(position);
84 | holder.image.setImageResource(movie.getImage());
85 | holder.like.setImageResource(movie.getLike());
86 | holder.title.setText(movie.getTitle());
87 |
88 |
89 |
90 | holder.offer.setText("Rs 40000");
91 | holder.offer.setPaintFlags(holder.offer.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
92 |
93 |
94 |
95 | }
96 |
97 | @Override
98 | public int getItemCount() {
99 | return moviesList.size();
100 | }
101 |
102 |
103 |
104 | }
105 |
106 |
107 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/Adapter/SmartPhoneRecycleAdapter.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.Adapter;
2 |
3 | import android.content.Context;
4 | import android.support.annotation.NonNull;
5 |
6 | import android.support.v7.widget.RecyclerView;
7 | import android.view.LayoutInflater;
8 | import android.view.View;
9 | import android.view.ViewGroup;
10 | import android.widget.ImageView;
11 | import android.widget.TextView;
12 |
13 | import com.mhasancse.eshopping.ModelClass.FavouriteModelClass;
14 | import com.mhasancse.eshopping.R;
15 |
16 | import java.util.ArrayList;
17 | import java.util.List;
18 |
19 |
20 |
21 |
22 |
23 | public class SmartPhoneRecycleAdapter extends RecyclerView.Adapter {
24 |
25 | Context context;
26 |
27 |
28 | private List OfferList;
29 |
30 | boolean showingfirst = true;
31 |
32 |
33 | public class MyViewHolder extends RecyclerView.ViewHolder {
34 |
35 |
36 | ImageView image,like;
37 | TextView title,price;
38 |
39 |
40 | public MyViewHolder(View view) {
41 | super(view);
42 |
43 | image = (ImageView)view.findViewById(R.id.image);
44 | like = (ImageView)view.findViewById(R.id.like);
45 | title = (TextView) view.findViewById(R.id.title);
46 | price = (TextView) view.findViewById(R.id.price);
47 |
48 |
49 | }
50 |
51 | }
52 |
53 |
54 | public SmartPhoneRecycleAdapter(Context context, ArrayList offerList) {
55 | this.OfferList = offerList;
56 | this.context = context;
57 | }
58 |
59 | @Override
60 | public SmartPhoneRecycleAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
61 | View itemView = LayoutInflater.from(parent.getContext())
62 | .inflate(R.layout.item_smartphone_list, parent, false);
63 |
64 |
65 | return new SmartPhoneRecycleAdapter.MyViewHolder(itemView);
66 |
67 |
68 |
69 |
70 | }
71 |
72 | @Override
73 | public void onBindViewHolder(@NonNull final MyViewHolder holder, final int position) {
74 | final FavouriteModelClass lists = OfferList.get(position);
75 | holder.image.setImageResource(lists.getImage());
76 | holder.title.setText(lists.getTitle());
77 | holder.price.setText(lists.getPrice());
78 |
79 |
80 | holder.itemView.setOnClickListener(new View.OnClickListener() {
81 | @Override
82 | public void onClick(View view) {
83 |
84 | if (lists.isSelected() == true){
85 | lists.setSelected(false);
86 |
87 | holder.like.setImageResource(R.drawable.ic_dark_like);
88 |
89 | }else {
90 | lists.setSelected(true);
91 | holder.like.setImageResource(R.drawable.ic_heart_light);
92 | }
93 |
94 |
95 |
96 | }
97 | });
98 |
99 | }
100 |
101 |
102 | @Override
103 | public int getItemCount() {
104 | return OfferList.size();
105 |
106 | }
107 |
108 | }
109 |
110 |
111 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/item_review_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
15 |
16 |
17 |
25 |
26 |
27 |
31 |
32 |
42 |
43 |
51 |
52 |
53 |
54 |
63 |
64 |
65 |
74 |
75 |
76 |
77 |
84 |
85 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/Adapter/FavouriteRecycleAdapter.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.Adapter;
2 |
3 | import android.content.Context;
4 | import android.content.Intent;
5 | import android.support.annotation.NonNull;
6 | import android.support.v7.widget.RecyclerView;
7 | import android.view.LayoutInflater;
8 | import android.view.View;
9 | import android.view.ViewGroup;
10 | import android.widget.ImageView;
11 | import android.widget.TextView;
12 |
13 | import java.util.ArrayList;
14 | import java.util.List;
15 |
16 |
17 |
18 | import com.mhasancse.eshopping.ModelClass.FavouriteModelClass;
19 | import com.mhasancse.eshopping.R;
20 |
21 |
22 |
23 | public class FavouriteRecycleAdapter extends RecyclerView.Adapter {
24 |
25 | Context context;
26 |
27 |
28 | private List OfferList;
29 |
30 | boolean showingfirst = true;
31 |
32 |
33 | public class MyViewHolder extends RecyclerView.ViewHolder {
34 |
35 |
36 | ImageView image,like;
37 | TextView title,price;
38 |
39 |
40 | public MyViewHolder(View view) {
41 | super(view);
42 |
43 | image = (ImageView)view.findViewById(R.id.image);
44 | like = (ImageView)view.findViewById(R.id.like);
45 | title = (TextView) view.findViewById(R.id.title);
46 | price = (TextView) view.findViewById(R.id.price);
47 |
48 |
49 | }
50 |
51 | }
52 |
53 |
54 | public FavouriteRecycleAdapter(Context context, ArrayList offerList) {
55 | this.OfferList = offerList;
56 | this.context = context;
57 | }
58 |
59 | @Override
60 | public FavouriteRecycleAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
61 | View itemView = LayoutInflater.from(parent.getContext())
62 | .inflate(R.layout.item_favourite_list, parent, false);
63 |
64 |
65 | return new FavouriteRecycleAdapter.MyViewHolder(itemView);
66 |
67 |
68 |
69 |
70 | }
71 |
72 | @Override
73 | public void onBindViewHolder(@NonNull final MyViewHolder holder, final int position) {
74 | final FavouriteModelClass lists = OfferList.get(position);
75 | holder.image.setImageResource(lists.getImage());
76 | holder.title.setText(lists.getTitle());
77 | holder.price.setText(lists.getPrice());
78 |
79 |
80 | holder.itemView.setOnClickListener(new View.OnClickListener() {
81 | @Override
82 | public void onClick(View view) {
83 |
84 | if (lists.isSelected() == true){
85 | lists.setSelected(false);
86 |
87 | holder.like.setImageResource(R.drawable.ic_dark_like);
88 |
89 | }else {
90 | lists.setSelected(true);
91 | holder.like.setImageResource(R.drawable.ic_heart_light);
92 | }
93 |
94 |
95 |
96 | }
97 | });
98 |
99 | }
100 |
101 |
102 | @Override
103 | public int getItemCount() {
104 | return OfferList.size();
105 |
106 | }
107 |
108 | }
109 |
110 |
111 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/item_favourite_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
16 |
17 |
18 |
21 |
22 |
31 |
32 |
33 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
57 |
58 |
63 |
64 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/item_smartphone_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
16 |
17 |
18 |
21 |
22 |
31 |
32 |
33 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
57 |
58 |
63 |
64 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/uiux/design/eshoppinguikit/HomePageActivity.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.uiux.design.eshoppinguikit;
2 |
3 | import android.app.Activity;
4 | import android.content.Context;
5 | import android.support.v7.app.AppCompatActivity;
6 | import android.os.Bundle;
7 | import android.support.v7.widget.DefaultItemAnimator;
8 | import android.support.v7.widget.LinearLayoutManager;
9 | import android.support.v7.widget.RecyclerView;
10 | import android.view.View;
11 | import android.view.WindowManager;
12 | import android.view.inputmethod.InputMethodManager;
13 | import android.widget.EditText;
14 |
15 | import com.mhasancse.eshopping.Adapter.FavouriteRecycleAdapter;
16 | import com.mhasancse.eshopping.Adapter.SmartPhoneRecycleAdapter;
17 | import com.mhasancse.eshopping.ModelClass.FavouriteModelClass;
18 | import com.mhasancse.eshopping.R;
19 |
20 | import java.util.ArrayList;
21 |
22 |
23 |
24 | public class HomePageActivity extends AppCompatActivity {
25 |
26 |
27 | /*Favourite Recyclerview data is here*/
28 |
29 | private ArrayList favouriteModelClasses;
30 | private RecyclerView recyclerView;
31 | private FavouriteRecycleAdapter bAdapter;
32 |
33 | private int image[] = {R.drawable.headphone,R.drawable.reybane,R.drawable.shoesfila,R.drawable.headphone,R.drawable.reybane,R.drawable.shoesfila};
34 | private String title[] = {"Headphone","Rayban","Shoes","Headphone","Rayban","Shoes"};
35 | private String price[] = {"Rs 500","Rs 550","Rs 750","Rs 500","Rs 550","Rs 750"};
36 |
37 |
38 |
39 | /*Smartphones Recyclerview data is here*/
40 |
41 | private ArrayList favouriteModelClasses1;
42 | private RecyclerView recyclerView1;
43 | private SmartPhoneRecycleAdapter bAdapter1;
44 |
45 | private int image1[] = {R.drawable.s9plus,R.drawable.iphnx,R.drawable.vivo11,R.drawable.googlepixel,R.drawable.s9plus,R.drawable.iphnx};
46 | private String title1[] = {"Samsung S9+","I Phone X","Vivo V11","Google Pixel 3","Samsung S9+","I Phone X"};
47 | private String price1[] = {"Rs 45,000","Rs 55,000","Rs 25,000","Rs 40,000","Rs 43,000","Rs 51,000"};
48 |
49 |
50 | EditText editext;
51 |
52 |
53 | @Override
54 | protected void onCreate(Bundle savedInstanceState) {
55 | super.onCreate(savedInstanceState);
56 | setContentView(R.layout.activity_home_page);
57 |
58 |
59 | editext = findViewById(R.id.editext);
60 |
61 |
62 | getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
63 |
64 |
65 | /*Favourite recyclerview code is here*/
66 |
67 | recyclerView = findViewById(R.id.favourit_recyclerview);
68 | RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(HomePageActivity.this);
69 | recyclerView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));
70 | recyclerView.setItemAnimator(new DefaultItemAnimator());
71 |
72 | favouriteModelClasses = new ArrayList<>();
73 |
74 | for (int i = 0; i < image.length; i++) {
75 | FavouriteModelClass beanClassForRecyclerView_contacts = new FavouriteModelClass(image[i],title[i],price[i]);
76 | favouriteModelClasses.add(beanClassForRecyclerView_contacts);
77 | }
78 | bAdapter = new FavouriteRecycleAdapter(HomePageActivity.this,favouriteModelClasses);
79 | recyclerView.setAdapter(bAdapter);
80 |
81 |
82 |
83 |
84 | /*Smartphones recyclerview code is here*/
85 |
86 | recyclerView1 = findViewById(R.id.smartphone_recyclerview);
87 | RecyclerView.LayoutManager layoutManager1 = new LinearLayoutManager(HomePageActivity.this);
88 | recyclerView1.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));
89 | recyclerView1.setItemAnimator(new DefaultItemAnimator());
90 |
91 | favouriteModelClasses1 = new ArrayList<>();
92 |
93 | for (int i = 0; i < image1.length; i++) {
94 | FavouriteModelClass beanClassForRecyclerView_contacts = new FavouriteModelClass(image1[i],title1[i],price1[i]);
95 | favouriteModelClasses1.add(beanClassForRecyclerView_contacts);
96 | }
97 | bAdapter1 = new SmartPhoneRecycleAdapter(HomePageActivity.this,favouriteModelClasses1);
98 | recyclerView1.setAdapter(bAdapter1);
99 |
100 |
101 |
102 |
103 |
104 | }
105 |
106 |
107 | }
108 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/item_product_grid_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
17 |
18 |
24 |
25 |
26 |
29 |
30 |
34 |
35 |
42 |
43 |
50 |
51 |
52 |
59 |
60 |
61 |
66 |
67 |
68 |
75 |
76 |
83 |
84 |
85 |
86 |
87 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
130 |
131 |
132 |
133 |
134 |
135 |
140 |
141 |
142 |
143 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/Adapter/EShoppingListRecycleAdapter.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.Adapter;
2 |
3 | import android.content.Context;
4 | import android.content.Intent;
5 | import android.support.annotation.NonNull;
6 | import android.support.v7.widget.RecyclerView;
7 | import android.view.LayoutInflater;
8 | import android.view.View;
9 | import android.view.ViewGroup;
10 | import android.widget.TextView;
11 |
12 | import com.mhasancse.eshopping.ModelClass.EShoppingModelClass;
13 | import com.mhasancse.eshopping.R;
14 | import com.mhasancse.eshopping.uiux.design.eshoppinguikit.AddAddressActivity;
15 | import com.mhasancse.eshopping.uiux.design.eshoppinguikit.HomePageActivity;
16 | import com.mhasancse.eshopping.uiux.design.eshoppinguikit.LoginActivity;
17 | import com.mhasancse.eshopping.uiux.design.eshoppinguikit.MyCartActivity;
18 | import com.mhasancse.eshopping.uiux.design.eshoppinguikit.MyOrderActivity;
19 | import com.mhasancse.eshopping.uiux.design.eshoppinguikit.NavigationActivity;
20 | import com.mhasancse.eshopping.uiux.design.eshoppinguikit.PaymentActivity;
21 | import com.mhasancse.eshopping.uiux.design.eshoppinguikit.ProductDetailActivity;
22 | import com.mhasancse.eshopping.uiux.design.eshoppinguikit.ProductGridActivity;
23 | import com.mhasancse.eshopping.uiux.design.eshoppinguikit.ProductListActivity;
24 | import com.mhasancse.eshopping.uiux.design.eshoppinguikit.SignupActivity;
25 | import com.mhasancse.eshopping.uiux.design.eshoppinguikit.SucessfullActivity;
26 |
27 | import java.util.ArrayList;
28 | import java.util.List;
29 |
30 |
31 |
32 | public class EShoppingListRecycleAdapter extends RecyclerView.Adapter {
33 |
34 | Context context;
35 |
36 |
37 | private List OfferList;
38 |
39 |
40 | public class MyViewHolder extends RecyclerView.ViewHolder {
41 |
42 |
43 | TextView title;
44 |
45 |
46 | public MyViewHolder(View view) {
47 | super(view);
48 |
49 | title = (TextView) view.findViewById(R.id.title);
50 |
51 |
52 | }
53 |
54 | }
55 |
56 |
57 | public EShoppingListRecycleAdapter(Context context, ArrayList offerList) {
58 | this.OfferList = offerList;
59 | this.context = context;
60 | }
61 |
62 | @Override
63 | public EShoppingListRecycleAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
64 | View itemView = LayoutInflater.from(parent.getContext())
65 | .inflate(R.layout.item_eshopping_list, parent, false);
66 |
67 |
68 | return new EShoppingListRecycleAdapter.MyViewHolder(itemView);
69 |
70 |
71 | }
72 |
73 | @Override
74 | public void onBindViewHolder(@NonNull MyViewHolder holder, final int position) {
75 | EShoppingModelClass lists = OfferList.get(position);
76 | holder.title.setText(lists.getTitle());
77 |
78 |
79 | holder.itemView.setOnClickListener(new View.OnClickListener() {
80 | @Override
81 | public void onClick(View view) {
82 |
83 | if (position == 0) {
84 | Intent i = new Intent(context, SignupActivity.class);
85 | context.startActivity(i);
86 |
87 | }else if(position == 1) {
88 | Intent i = new Intent(context, LoginActivity.class);
89 | context.startActivity(i);
90 | }else if(position == 2) {
91 | Intent i = new Intent(context, HomePageActivity.class);
92 | context.startActivity(i);
93 | }else if(position == 3) {
94 | Intent i = new Intent(context, NavigationActivity.class);
95 | context.startActivity(i);
96 | }else if(position == 4) {
97 | Intent i = new Intent(context, ProductListActivity.class);
98 | context.startActivity(i);
99 | }else if(position == 5) {
100 | Intent i = new Intent(context, ProductGridActivity.class);
101 | context.startActivity(i);
102 | }else if(position == 6) {
103 | Intent i = new Intent(context, ProductDetailActivity.class);
104 | context.startActivity(i);
105 | }else if(position == 7) {
106 | Intent i = new Intent(context, MyCartActivity.class);
107 | context.startActivity(i);
108 | }else if(position == 8) {
109 | Intent i = new Intent(context, AddAddressActivity.class);
110 | context.startActivity(i);
111 | }else if(position == 9) {
112 | Intent i = new Intent(context, PaymentActivity.class);
113 | context.startActivity(i);
114 | }else if(position == 10) {
115 | Intent i = new Intent(context, MyOrderActivity.class);
116 | context.startActivity(i);
117 | }else if(position == 11) {
118 | Intent i = new Intent(context, SucessfullActivity.class);
119 | context.startActivity(i);
120 | }
121 | }
122 |
123 | });
124 |
125 |
126 | }
127 |
128 |
129 | @Override
130 | public int getItemCount() {
131 | return OfferList.size();
132 |
133 | }
134 |
135 | }
136 |
137 |
138 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_login.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
16 |
17 |
18 |
24 |
25 |
33 |
34 |
46 |
47 |
48 |
49 |
50 |
58 |
59 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
87 |
88 |
89 |
90 |
103 |
104 |
105 |
113 |
114 |
115 |
116 |
127 |
128 |
129 |
140 |
141 |
142 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/item_my_order_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
19 |
20 |
21 |
22 |
27 |
28 |
33 |
41 |
42 |
47 |
48 |
49 |
56 |
57 |
66 |
67 |
68 |
69 |
70 |
75 |
76 |
77 |
84 |
85 |
94 |
95 |
96 |
97 |
98 |
103 |
104 |
105 |
112 |
113 |
122 |
123 |
124 |
125 |
126 |
131 |
132 |
133 |
140 |
141 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/item_product_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
19 |
20 |
24 |
25 |
33 |
34 |
40 |
41 |
50 |
51 |
52 |
60 |
61 |
67 |
68 |
75 |
76 |
82 |
83 |
84 |
85 |
90 |
91 |
92 |
99 |
100 |
111 |
112 |
113 |
114 |
115 |
116 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
136 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mhasancse/eshopping/uiux/design/eshoppinguikit/NavigationActivity.java:
--------------------------------------------------------------------------------
1 | package com.mhasancse.eshopping.uiux.design.eshoppinguikit;
2 |
3 | import android.content.res.Configuration;
4 | import android.os.Bundle;
5 | import android.support.annotation.NonNull;
6 | import android.support.design.widget.NavigationView;
7 | import android.support.v4.view.GravityCompat;
8 | import android.support.v4.widget.DrawerLayout;
9 | import android.support.v7.app.ActionBar;
10 | import android.support.v7.app.ActionBarDrawerToggle;
11 | import android.support.v7.app.AppCompatActivity;
12 | import android.support.v7.widget.DefaultItemAnimator;
13 | import android.support.v7.widget.LinearLayoutManager;
14 | import android.support.v7.widget.RecyclerView;
15 | import android.support.v7.widget.Toolbar;
16 | import android.util.Log;
17 | import android.view.Gravity;
18 | import android.view.MenuItem;
19 | import android.view.View;
20 |
21 | import com.mhasancse.eshopping.Adapter.NavigationRecycleAdapter;
22 | import com.mhasancse.eshopping.ModelClass.EShoppingModelClass;
23 | import com.mhasancse.eshopping.R;
24 |
25 | import java.util.ArrayList;
26 |
27 |
28 |
29 | public class NavigationActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener {
30 |
31 | private ActionBarDrawerToggle actionBarDrawerToggle;
32 | NavigationView navigationView;
33 |
34 | private DrawerLayout drawer;
35 | private Toolbar toolbar;
36 |
37 |
38 | /*recyclerview data is here*/
39 |
40 | private ArrayList eShoppingModelClasses;
41 |
42 | private RecyclerView recyclerView;
43 | private NavigationRecycleAdapter mAdapter;
44 |
45 |
46 | private String title[] = {"Home", "Cart", "My Orders", "Categories",
47 | "Offers", "Profile", "Help", "Logout"};
48 |
49 |
50 | @Override
51 | protected void onCreate(Bundle savedInstanceState) {
52 | super.onCreate(savedInstanceState);
53 | setContentView(R.layout.activity_navigation);
54 |
55 |
56 | drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
57 | navigationView = (NavigationView) findViewById(R.id.navigation_view);
58 | setToolbar();
59 | drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
60 |
61 |
62 |
63 |
64 | /*recycleview code is here*/
65 |
66 |
67 | recyclerView = (RecyclerView) findViewById(R.id.recyclerview);
68 |
69 | eShoppingModelClasses = new ArrayList<>();
70 |
71 |
72 | for (int i = 0; i < title.length; i++) {
73 | EShoppingModelClass beanClassForRecyclerView_contacts = new EShoppingModelClass(title[i]);
74 |
75 | eShoppingModelClasses.add(beanClassForRecyclerView_contacts);
76 | }
77 |
78 |
79 | mAdapter = new NavigationRecycleAdapter(NavigationActivity.this, eShoppingModelClasses);
80 |
81 | RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(NavigationActivity.this);
82 | recyclerView.setLayoutManager(mLayoutManager);
83 | recyclerView.setItemAnimator(new DefaultItemAnimator());
84 | recyclerView.setAdapter(mAdapter);
85 |
86 |
87 | actionBarDrawerToggle = new ActionBarDrawerToggle(this, drawer, toolbar, R.string.openDrawer, R.string.closeDrawer) {
88 |
89 | @Override
90 | public void onDrawerClosed(View drawerView) {
91 | // Code here will be triggered once the drawer closes as we dont want anything to happen so we leave this blank
92 | super.onDrawerClosed(drawerView);
93 | }
94 |
95 | @Override
96 | public void onDrawerOpened(View drawerView) {
97 | // Code here will be triggered once the drawer open as we dont want anything to happen so we leave this blank
98 | super.onDrawerOpened(drawerView);
99 | }
100 | };
101 |
102 | //Setting the actionbarToggle to drawer layout
103 | drawer.setDrawerListener(actionBarDrawerToggle);
104 |
105 | //calling sync state is necessary or else your hamburger icon wont show up
106 | actionBarDrawerToggle.syncState();
107 | actionBarDrawerToggle.setDrawerIndicatorEnabled(false);
108 |
109 | invalidateOptionsMenu();
110 |
111 | }
112 |
113 |
114 | @Override
115 | public boolean onOptionsItemSelected(MenuItem item) {
116 | // toggle nav drawer on selecting action bar app icon/title
117 | if (actionBarDrawerToggle.onOptionsItemSelected(item)) {
118 | return true;
119 | }
120 | return super.onOptionsItemSelected(item);
121 | }
122 |
123 | /**
124 | * When using the ActionBarDrawerToggle, you must call it during
125 | * onPostCreate() and onConfigurationChanged()...
126 | */
127 |
128 | @Override
129 | protected void onPostCreate(Bundle savedInstanceState) {
130 | super.onPostCreate(savedInstanceState);
131 | // Sync the toggle state after onRestoreInstanceState has occurred.
132 | actionBarDrawerToggle.syncState();
133 | }
134 |
135 | @Override
136 | public void onConfigurationChanged(Configuration newConfig) {
137 | super.onConfigurationChanged(newConfig);
138 | // Pass any configuration change to the drawer toggls
139 | actionBarDrawerToggle.onConfigurationChanged(newConfig);
140 | }
141 |
142 | @Override
143 | public void onBackPressed() {
144 | if (drawer.isDrawerOpen(GravityCompat.START)) {
145 |
146 | drawer.closeDrawer(Gravity.LEFT); //OPEN Nav Drawer!
147 | } else {
148 | finish();
149 | }
150 | }
151 |
152 | private void setToolbar() {
153 | toolbar = (Toolbar) findViewById(R.id.toolbar);
154 | setSupportActionBar(toolbar);
155 | ActionBar actionBar = getSupportActionBar();
156 | if (actionBar != null) actionBar.setDisplayHomeAsUpEnabled(false);
157 | actionBar.setTitle("");
158 |
159 | toolbar.findViewById(R.id.navigation_menu).setOnClickListener(new View.OnClickListener() {
160 | @Override
161 | public void onClick(View v) {
162 |
163 | Log.e("Click", "keryu");
164 |
165 | if (drawer.isDrawerOpen(navigationView)) {
166 | drawer.closeDrawer(navigationView);
167 | } else {
168 | drawer.openDrawer(navigationView);
169 | }
170 | }
171 | });
172 |
173 | }
174 |
175 | @Override
176 | public boolean onNavigationItemSelected(@NonNull MenuItem item) {
177 |
178 |
179 | DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
180 | drawer.closeDrawer(GravityCompat.START);
181 | return true;
182 | }
183 | }
184 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_signup.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
16 |
17 |
18 |
31 |
32 |
33 |
39 |
40 |
48 |
49 |
61 |
62 |
63 |
64 |
65 |
73 |
74 |
86 |
87 |
88 |
89 |
90 |
91 |
99 |
100 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
128 |
129 |
130 |
131 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
160 |
161 |
162 |
173 |
174 |
175 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_home_page.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
20 |
21 |
22 |
26 |
27 |
28 |
29 |
30 |
35 |
36 |
42 |
43 |
49 |
50 |
51 |
62 |
63 |
64 |
65 |
66 |
67 |
71 |
72 |
77 |
78 |
85 |
86 |
93 |
94 |
95 |
102 |
103 |
104 |
109 |
110 |
115 |
116 |
123 |
124 |
131 |
132 |
133 |
140 |
141 |
142 |
143 |
149 |
150 |
151 |
155 |
156 |
161 |
162 |
167 |
168 |
169 |
173 |
174 |
179 |
180 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_add_address.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
15 |
16 |
17 |
18 |
19 |
23 |
24 |
34 |
45 |
52 |
62 |
73 |
80 |
81 |
91 |
102 |
109 |
110 |
120 |
131 |
138 |
139 |
149 |
160 |
167 |
168 |
169 |
170 |
171 |
172 |
183 |
184 |
185 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_payment.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
32 |
39 |
40 |
47 |
48 |
49 |
50 |
51 |
52 |
58 |
59 |
60 |
65 |
66 |
72 |
73 |
78 |
79 |
86 |
87 |
94 |
95 |
96 |
97 |
98 |
102 |
103 |
108 |
109 |
115 |
116 |
121 |
122 |
129 |
130 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
154 |
155 |
156 |
164 |
165 |
170 |
171 |
172 |
173 |
182 |
183 |
184 |
185 |
194 |
195 |
200 |
201 |
202 |
208 |
209 |
210 |
217 |
218 |
219 |
220 |
226 |
227 |
228 |
229 |
240 |
241 |
242 |
--------------------------------------------------------------------------------