├── Feed
├── .gitignore
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── test
│ │ │ └── mindorks
│ │ │ └── feed
│ │ │ └── feed
│ │ │ └── ApplicationTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── assets
│ │ │ └── news.json
│ │ ├── java
│ │ │ └── test
│ │ │ │ └── mindorks
│ │ │ │ └── feed
│ │ │ │ └── feed
│ │ │ │ ├── Feed.java
│ │ │ │ ├── HeadingView.java
│ │ │ │ ├── Info.java
│ │ │ │ ├── InfoView.java
│ │ │ │ ├── MainActivity.java
│ │ │ │ └── Utils.java
│ │ └── res
│ │ │ ├── drawable-hdpi
│ │ │ ├── ic_keyboard_arrow_down_white_24dp.png
│ │ │ └── ic_keyboard_arrow_up_white_24dp.png
│ │ │ ├── drawable-mdpi
│ │ │ ├── ic_keyboard_arrow_down_white_24dp.png
│ │ │ └── ic_keyboard_arrow_up_white_24dp.png
│ │ │ ├── drawable-xhdpi
│ │ │ ├── ic_keyboard_arrow_down_white_24dp.png
│ │ │ └── ic_keyboard_arrow_up_white_24dp.png
│ │ │ ├── drawable-xxhdpi
│ │ │ ├── ic_keyboard_arrow_down_white_24dp.png
│ │ │ └── ic_keyboard_arrow_up_white_24dp.png
│ │ │ ├── drawable-xxxhdpi
│ │ │ ├── ic_keyboard_arrow_down_white_24dp.png
│ │ │ └── ic_keyboard_arrow_up_white_24dp.png
│ │ │ ├── drawable
│ │ │ ├── bottom_border_on_dark.xml
│ │ │ └── bottom_border_on_light.xml
│ │ │ ├── layout
│ │ │ ├── activity_main.xml
│ │ │ ├── feed_heading.xml
│ │ │ └── feed_item.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-w820dp
│ │ │ └── dimens.xml
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ ├── dimens.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── test
│ │ └── java
│ │ └── test
│ │ └── mindorks
│ │ └── feed
│ │ └── feed
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── GalleryTest
├── .gitignore
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── test
│ │ │ └── mindorks
│ │ │ └── gallery
│ │ │ └── gallerytest
│ │ │ └── ApplicationTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── assets
│ │ │ └── images.json
│ │ ├── java
│ │ │ └── test
│ │ │ │ └── mindorks
│ │ │ │ └── gallery
│ │ │ │ └── gallerytest
│ │ │ │ ├── Image.java
│ │ │ │ ├── MainActivity.java
│ │ │ │ ├── Utils.java
│ │ │ │ └── gallery
│ │ │ │ ├── ImageTypeBig.java
│ │ │ │ ├── ImageTypeSmall.java
│ │ │ │ └── ImageTypeSmallList.java
│ │ └── res
│ │ │ ├── layout
│ │ │ ├── activity_main.xml
│ │ │ ├── gallery_item_big.xml
│ │ │ ├── gallery_item_small.xml
│ │ │ └── gallery_item_small_list.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-w820dp
│ │ │ └── dimens.xml
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ ├── dimens.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── test
│ │ └── java
│ │ └── test
│ │ └── mindorks
│ │ └── gallery
│ │ └── gallerytest
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── InfiniteList
├── .gitignore
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── ali
│ │ │ └── infinitelist
│ │ │ └── demo
│ │ │ └── infinitelist
│ │ │ └── ExampleInstrumentedTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── assets
│ │ │ └── infinite_news.json
│ │ ├── java
│ │ │ └── ali
│ │ │ │ └── infinitelist
│ │ │ │ └── demo
│ │ │ │ └── infinitelist
│ │ │ │ ├── InfiniteFeedInfo.java
│ │ │ │ ├── ItemView.java
│ │ │ │ ├── LoadMoreView.java
│ │ │ │ ├── MainActivity.java
│ │ │ │ └── Utils.java
│ │ └── res
│ │ │ ├── layout
│ │ │ ├── activity_main.xml
│ │ │ ├── load_more_item_view.xml
│ │ │ └── load_more_view.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-w820dp
│ │ │ └── dimens.xml
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ ├── dimens.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── test
│ │ └── java
│ │ └── ali
│ │ └── infinitelist
│ │ └── demo
│ │ └── infinitelist
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── JPostNetworking
├── .gitignore
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── ali
│ │ │ └── jpostnetworking
│ │ │ └── test
│ │ │ └── jpostnetworking
│ │ │ └── ExampleInstrumentedTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── ali
│ │ │ │ └── jpostnetworking
│ │ │ │ └── test
│ │ │ │ └── jpostnetworking
│ │ │ │ ├── ApiHandler.java
│ │ │ │ ├── Application.java
│ │ │ │ ├── GitRepo.java
│ │ │ │ ├── GitRepoMsg.java
│ │ │ │ ├── MainActivity.java
│ │ │ │ └── RepoListAdapter.java
│ │ └── res
│ │ │ ├── layout
│ │ │ ├── activity_main.xml
│ │ │ └── repo_list_item.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-w820dp
│ │ │ └── dimens.xml
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ ├── dimens.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── test
│ │ └── java
│ │ └── ali
│ │ └── jpostnetworking
│ │ └── test
│ │ └── jpostnetworking
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── LICENSE
├── NestedPlaceHolderView
├── .gitignore
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── ali
│ │ │ └── nestedplaceholderview
│ │ │ └── demo
│ │ │ └── nestedplaceholderview
│ │ │ └── ExampleInstrumentedTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── ali
│ │ │ │ └── nestedplaceholderview
│ │ │ │ └── demo
│ │ │ │ └── nestedplaceholderview
│ │ │ │ ├── GoogleNews.java
│ │ │ │ ├── GridItemView.java
│ │ │ │ ├── ListItemView.java
│ │ │ │ ├── MainActivity.java
│ │ │ │ ├── RowListView.java
│ │ │ │ └── RowListView2.java
│ │ └── res
│ │ │ ├── layout
│ │ │ ├── activity_main.xml
│ │ │ ├── news_grid_item.xml
│ │ │ ├── news_list_item.xml
│ │ │ └── news_row_list.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-w820dp
│ │ │ └── dimens.xml
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ ├── dimens.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── test
│ │ └── java
│ │ └── ali
│ │ └── nestedplaceholderview
│ │ └── demo
│ │ └── nestedplaceholderview
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── NestedViewPagerView
├── .gitignore
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── com
│ │ │ └── mindorks
│ │ │ └── placeholderview
│ │ │ └── nested
│ │ │ └── nestedplaceholderview
│ │ │ └── ExampleInstrumentedTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── mindorks
│ │ │ │ └── placeholderview
│ │ │ │ └── nested
│ │ │ │ └── nestedplaceholderview
│ │ │ │ ├── CustomPlaceHolderView.java
│ │ │ │ ├── DemoApplication.java
│ │ │ │ ├── ItemViewMain.java
│ │ │ │ ├── ItemViewPager.java
│ │ │ │ ├── MainActivity.java
│ │ │ │ ├── MainActivity2.java
│ │ │ │ ├── PagerAdapter.java
│ │ │ │ └── PagerFragment.java
│ │ └── res
│ │ │ ├── layout
│ │ │ ├── activity_main.xml
│ │ │ ├── activity_main_2.xml
│ │ │ ├── fragment_page.xml
│ │ │ ├── item_view_main.xml
│ │ │ └── item_viewpager.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-w820dp
│ │ │ └── dimens.xml
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ ├── dimens.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── test
│ │ └── java
│ │ └── com
│ │ └── mindorks
│ │ └── placeholderview
│ │ └── nested
│ │ └── nestedplaceholderview
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── README.md
├── RandomPromotionalCards
├── .gitignore
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── android
│ │ │ └── mindorks
│ │ │ └── com
│ │ │ └── randomaddviewcards
│ │ │ └── ExampleInstrumentedTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── assets
│ │ │ └── profiles.json
│ │ ├── java
│ │ │ └── android
│ │ │ │ └── mindorks
│ │ │ │ └── com
│ │ │ │ └── randomaddviewcards
│ │ │ │ ├── AddViewCard.java
│ │ │ │ ├── MainActivity.java
│ │ │ │ ├── Profile.java
│ │ │ │ ├── TinderCard.java
│ │ │ │ └── Utils.java
│ │ └── res
│ │ │ ├── drawable
│ │ │ ├── ic_cancel.png
│ │ │ └── ic_heart.png
│ │ │ ├── layout
│ │ │ ├── activity_main.xml
│ │ │ ├── add_card_view.xml
│ │ │ ├── tinder_card_view.xml
│ │ │ ├── tinder_swipe_in_msg_view.xml
│ │ │ └── tinder_swipe_out_msg_view.xml
│ │ │ ├── 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
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── test
│ │ └── java
│ │ └── android
│ │ └── mindorks
│ │ └── com
│ │ └── randomaddviewcards
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── TinderSwipe
├── .gitignore
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── test
│ │ │ └── mindorks
│ │ │ └── swipe
│ │ │ └── tinderswipe
│ │ │ └── ApplicationTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── assets
│ │ │ └── profiles.json
│ │ ├── java
│ │ │ └── test
│ │ │ │ └── mindorks
│ │ │ │ └── swipe
│ │ │ │ └── tinderswipe
│ │ │ │ ├── MainActivity.java
│ │ │ │ ├── Profile.java
│ │ │ │ ├── TinderCard.java
│ │ │ │ └── Utils.java
│ │ └── res
│ │ │ ├── drawable
│ │ │ ├── ic_cancel.png
│ │ │ └── ic_heart.png
│ │ │ ├── layout
│ │ │ ├── activity_main.xml
│ │ │ ├── tinder_card_view.xml
│ │ │ ├── tinder_swipe_in_msg_view.xml
│ │ │ └── tinder_swipe_out_msg_view.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-w820dp
│ │ │ └── dimens.xml
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ ├── dimens.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── test
│ │ └── java
│ │ └── test
│ │ └── mindorks
│ │ └── swipe
│ │ └── tinderswipe
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── feed-expandable-v2
├── .gitignore
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── test
│ │ │ └── mindorks
│ │ │ └── feed
│ │ │ └── feed
│ │ │ └── ApplicationTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── assets
│ │ │ └── news.json
│ │ ├── java
│ │ │ └── test
│ │ │ │ └── mindorks
│ │ │ │ └── feed
│ │ │ │ └── feed
│ │ │ │ ├── Feed.java
│ │ │ │ ├── HeadingView.java
│ │ │ │ ├── Info.java
│ │ │ │ ├── InfoView.java
│ │ │ │ ├── MainActivity.java
│ │ │ │ └── Utils.java
│ │ └── res
│ │ │ ├── drawable-hdpi
│ │ │ ├── ic_keyboard_arrow_down_white_24dp.png
│ │ │ └── ic_keyboard_arrow_up_white_24dp.png
│ │ │ ├── drawable-mdpi
│ │ │ ├── ic_keyboard_arrow_down_white_24dp.png
│ │ │ └── ic_keyboard_arrow_up_white_24dp.png
│ │ │ ├── drawable-xhdpi
│ │ │ ├── ic_keyboard_arrow_down_white_24dp.png
│ │ │ └── ic_keyboard_arrow_up_white_24dp.png
│ │ │ ├── drawable-xxhdpi
│ │ │ ├── ic_keyboard_arrow_down_white_24dp.png
│ │ │ └── ic_keyboard_arrow_up_white_24dp.png
│ │ │ ├── drawable-xxxhdpi
│ │ │ ├── ic_keyboard_arrow_down_white_24dp.png
│ │ │ └── ic_keyboard_arrow_up_white_24dp.png
│ │ │ ├── drawable
│ │ │ ├── bottom_border_on_dark.xml
│ │ │ └── bottom_border_on_light.xml
│ │ │ ├── layout
│ │ │ ├── activity_main.xml
│ │ │ ├── feed_heading.xml
│ │ │ └── feed_item.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-w820dp
│ │ │ └── dimens.xml
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ ├── dimens.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── test
│ │ └── java
│ │ └── test
│ │ └── mindorks
│ │ └── feed
│ │ └── feed
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── tinder-swipe-kotlin
├── .gitignore
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── kotlin
│ │ │ └── tinderswipe
│ │ │ └── swipe
│ │ │ └── mindorks
│ │ │ └── demo
│ │ │ └── ExampleInstrumentedTest.kt
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── assets
│ │ │ └── profiles.json
│ │ ├── java
│ │ │ └── tinderswipe
│ │ │ │ └── swipe
│ │ │ │ └── mindorks
│ │ │ │ └── demo
│ │ │ │ ├── MainActivity.kt
│ │ │ │ ├── Profile.kt
│ │ │ │ ├── TinderCard.kt
│ │ │ │ └── Utils.kt
│ │ └── res
│ │ │ ├── drawable-v24
│ │ │ └── ic_launcher_foreground.xml
│ │ │ ├── drawable
│ │ │ ├── ic_cancel.png
│ │ │ ├── ic_heart.png
│ │ │ └── ic_launcher_background.xml
│ │ │ ├── layout
│ │ │ ├── activity_main.xml
│ │ │ ├── tinder_card_view.xml
│ │ │ ├── tinder_swipe_in_msg_view.xml
│ │ │ └── tinder_swipe_out_msg_view.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ ├── ic_launcher.xml
│ │ │ └── ic_launcher_round.xml
│ │ │ ├── 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
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── test
│ │ └── java
│ │ └── kotlin
│ │ └── tinderswipe
│ │ └── swipe
│ │ └── mindorks
│ │ └── demo
│ │ └── ExampleUnitTest.kt
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── tinder-swipe-top-Left-right-bottom
├── .gitignore
├── .idea
│ ├── compiler.xml
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── encodings.xml
│ ├── gradle.xml
│ ├── markdown-navigator
│ │ └── profiles_settings.xml
│ ├── misc.xml
│ ├── modules.xml
│ ├── runConfigurations.xml
│ └── vcs.xml
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── dependency
│ │ │ └── greendao
│ │ │ └── test
│ │ │ └── tinder
│ │ │ └── directional
│ │ │ └── ExampleInstrumentedTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── assets
│ │ │ └── profiles.json
│ │ ├── java
│ │ │ └── dependency
│ │ │ │ └── greendao
│ │ │ │ └── test
│ │ │ │ └── tinder
│ │ │ │ └── directional
│ │ │ │ ├── MainActivity.java
│ │ │ │ ├── Profile.java
│ │ │ │ ├── TinderCard.java
│ │ │ │ └── Utils.java
│ │ └── res
│ │ │ ├── drawable
│ │ │ ├── ic_cancel.png
│ │ │ └── ic_heart.png
│ │ │ ├── layout
│ │ │ ├── activity_main.xml
│ │ │ ├── tinder_card_view.xml
│ │ │ ├── tinder_swipe_in_msg_view.xml
│ │ │ └── tinder_swipe_out_msg_view.xml
│ │ │ ├── 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
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── test
│ │ └── java
│ │ └── dependency
│ │ └── greendao
│ │ └── test
│ │ └── tinder
│ │ └── directional
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
└── tinder-swipe-v2
├── .gitignore
├── .idea
├── compiler.xml
├── copyright
│ └── profiles_settings.xml
├── encodings.xml
├── gradle.xml
├── markdown-navigator
│ └── profiles_settings.xml
├── misc.xml
├── modules.xml
├── runConfigurations.xml
└── vcs.xml
├── app
├── .gitignore
├── build.gradle
├── proguard-rules.pro
└── src
│ ├── androidTest
│ └── java
│ │ └── dependency
│ │ └── greendao
│ │ └── test
│ │ └── tinder
│ │ └── directional
│ │ └── ExampleInstrumentedTest.java
│ ├── main
│ ├── AndroidManifest.xml
│ ├── assets
│ │ └── profiles.json
│ ├── java
│ │ └── dependency
│ │ │ └── greendao
│ │ │ └── test
│ │ │ └── tinder
│ │ │ └── directional
│ │ │ ├── MainActivity.java
│ │ │ ├── Profile.java
│ │ │ ├── TinderCard.java
│ │ │ └── Utils.java
│ └── res
│ │ ├── drawable
│ │ ├── ic_cancel.png
│ │ └── ic_heart.png
│ │ ├── layout
│ │ ├── activity_main.xml
│ │ ├── tinder_card_view.xml
│ │ ├── tinder_swipe_in_msg_view.xml
│ │ └── tinder_swipe_out_msg_view.xml
│ │ ├── 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
│ │ └── values
│ │ ├── colors.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ └── test
│ └── java
│ └── dependency
│ └── greendao
│ └── test
│ └── tinder
│ └── directional
│ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
/Feed/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea
5 | .DS_Store
6 | /build
7 | /captures
8 |
--------------------------------------------------------------------------------
/Feed/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/Feed/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 25
5 | buildToolsVersion "25.0.3"
6 |
7 | defaultConfig {
8 | applicationId "test.mindorks.feed.feed"
9 | minSdkVersion 16
10 | targetSdkVersion 25
11 | versionCode 1
12 | versionName "1.0"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | sourceSets {
21 | main {
22 | assets.srcDirs = ['src/main/assets', 'src/main/assets/']
23 | res.srcDirs = ['src/main/res', 'src/main/res/drawable']
24 | }
25 | }
26 | }
27 |
28 | dependencies {
29 | compile fileTree(dir: 'libs', include: ['*.jar'])
30 | testCompile 'junit:junit:4.12'
31 | compile 'com.android.support:appcompat-v7:25.3.1'
32 | compile 'com.mindorks:placeholderview:0.7.2'
33 | compile 'com.android.support:cardview-v7:25.3.1'
34 | compile 'com.github.bumptech.glide:glide:3.7.0'
35 | compile 'com.google.code.gson:gson:2.7'
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/Feed/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/janisharali/Library/Android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/Feed/app/src/androidTest/java/test/mindorks/feed/feed/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package test.mindorks.feed.feed;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/Feed/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/Feed/app/src/main/java/test/mindorks/feed/feed/Feed.java:
--------------------------------------------------------------------------------
1 | package test.mindorks.feed.feed;
2 |
3 | import com.google.gson.annotations.Expose;
4 | import com.google.gson.annotations.SerializedName;
5 |
6 | import java.util.List;
7 |
8 | /**
9 | * Created by janisharali on 24/08/16.
10 | */
11 | public class Feed {
12 |
13 | @SerializedName("category")
14 | @Expose
15 | private String heading;
16 |
17 | @SerializedName("data")
18 | @Expose
19 | private List infoList;
20 |
21 | public String getHeading() {
22 | return heading;
23 | }
24 |
25 | public void setHeading(String heading) {
26 | this.heading = heading;
27 | }
28 |
29 | public List getInfoList() {
30 | return infoList;
31 | }
32 |
33 | public void setInfoList(List infoList) {
34 | this.infoList = infoList;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Feed/app/src/main/java/test/mindorks/feed/feed/Info.java:
--------------------------------------------------------------------------------
1 | package test.mindorks.feed.feed;
2 |
3 | import com.google.gson.annotations.Expose;
4 | import com.google.gson.annotations.SerializedName;
5 |
6 | /**
7 | * Created by janisharali on 24/08/16.
8 | */
9 | public class Info {
10 |
11 | @SerializedName("title")
12 | @Expose
13 | private String title;
14 |
15 | @SerializedName("image_url")
16 | @Expose
17 | private String imageUrl;
18 |
19 | @SerializedName("caption")
20 | @Expose
21 | private String caption;
22 |
23 | @SerializedName("time")
24 | @Expose
25 | private String time;
26 |
27 | public String getTitle() {
28 | return title;
29 | }
30 |
31 | public void setTitle(String title) {
32 | this.title = title;
33 | }
34 |
35 | public String getImageUrl() {
36 | return imageUrl;
37 | }
38 |
39 | public void setImageUrl(String imageUrl) {
40 | this.imageUrl = imageUrl;
41 | }
42 |
43 | public String getCaption() {
44 | return caption;
45 | }
46 |
47 | public void setCaption(String caption) {
48 | this.caption = caption;
49 | }
50 |
51 | public String getTime() {
52 | return time;
53 | }
54 |
55 | public void setTime(String time) {
56 | this.time = time;
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/Feed/app/src/main/res/drawable-hdpi/ic_keyboard_arrow_down_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/Feed/app/src/main/res/drawable-hdpi/ic_keyboard_arrow_down_white_24dp.png
--------------------------------------------------------------------------------
/Feed/app/src/main/res/drawable-hdpi/ic_keyboard_arrow_up_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/Feed/app/src/main/res/drawable-hdpi/ic_keyboard_arrow_up_white_24dp.png
--------------------------------------------------------------------------------
/Feed/app/src/main/res/drawable-mdpi/ic_keyboard_arrow_down_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/Feed/app/src/main/res/drawable-mdpi/ic_keyboard_arrow_down_white_24dp.png
--------------------------------------------------------------------------------
/Feed/app/src/main/res/drawable-mdpi/ic_keyboard_arrow_up_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/Feed/app/src/main/res/drawable-mdpi/ic_keyboard_arrow_up_white_24dp.png
--------------------------------------------------------------------------------
/Feed/app/src/main/res/drawable-xhdpi/ic_keyboard_arrow_down_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/Feed/app/src/main/res/drawable-xhdpi/ic_keyboard_arrow_down_white_24dp.png
--------------------------------------------------------------------------------
/Feed/app/src/main/res/drawable-xhdpi/ic_keyboard_arrow_up_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/Feed/app/src/main/res/drawable-xhdpi/ic_keyboard_arrow_up_white_24dp.png
--------------------------------------------------------------------------------
/Feed/app/src/main/res/drawable-xxhdpi/ic_keyboard_arrow_down_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/Feed/app/src/main/res/drawable-xxhdpi/ic_keyboard_arrow_down_white_24dp.png
--------------------------------------------------------------------------------
/Feed/app/src/main/res/drawable-xxhdpi/ic_keyboard_arrow_up_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/Feed/app/src/main/res/drawable-xxhdpi/ic_keyboard_arrow_up_white_24dp.png
--------------------------------------------------------------------------------
/Feed/app/src/main/res/drawable-xxxhdpi/ic_keyboard_arrow_down_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/Feed/app/src/main/res/drawable-xxxhdpi/ic_keyboard_arrow_down_white_24dp.png
--------------------------------------------------------------------------------
/Feed/app/src/main/res/drawable-xxxhdpi/ic_keyboard_arrow_up_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/Feed/app/src/main/res/drawable-xxxhdpi/ic_keyboard_arrow_up_white_24dp.png
--------------------------------------------------------------------------------
/Feed/app/src/main/res/drawable/bottom_border_on_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
7 |
8 |
9 | -
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Feed/app/src/main/res/drawable/bottom_border_on_light.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
7 |
8 |
9 | -
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Feed/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
--------------------------------------------------------------------------------
/Feed/app/src/main/res/layout/feed_heading.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
24 |
28 |
33 |
38 |
39 |
--------------------------------------------------------------------------------
/Feed/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/Feed/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Feed/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/Feed/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Feed/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/Feed/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Feed/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/Feed/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Feed/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/Feed/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Feed/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/Feed/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #f2b632
4 | #22264b
5 | #FF4081
6 | #e8edf3
7 | #FFFFFF
8 |
9 |
--------------------------------------------------------------------------------
/Feed/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/Feed/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Feed
3 |
4 |
--------------------------------------------------------------------------------
/Feed/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Feed/app/src/test/java/test/mindorks/feed/feed/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package test.mindorks.feed.feed;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * To work on unit tests, switch the Test Artifact in the Build Variants view.
9 | */
10 | public class ExampleUnitTest {
11 | @Test
12 | public void addition_isCorrect() throws Exception {
13 | assertEquals(4, 2 + 2);
14 | }
15 | }
--------------------------------------------------------------------------------
/Feed/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.0'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/Feed/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/Feed/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/Feed/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/Feed/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu Aug 25 00:46:08 IST 2016
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/Feed/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/GalleryTest/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea
5 | .DS_Store
6 | /build
7 | /captures
8 |
--------------------------------------------------------------------------------
/GalleryTest/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/GalleryTest/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 25
5 | buildToolsVersion "25.0.3"
6 |
7 | defaultConfig {
8 | applicationId "test.mindorks.gallery.gallerytest"
9 | minSdkVersion 16
10 | targetSdkVersion 25
11 | versionCode 1
12 | versionName "1.0"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | sourceSets {
21 | main {
22 | assets.srcDirs = ['src/main/assets', 'src/main/assets/']
23 | res.srcDirs = ['src/main/res', 'src/main/res/drawable']
24 | }
25 | }
26 | }
27 |
28 | dependencies {
29 | compile fileTree(dir: 'libs', include: ['*.jar'])
30 | testCompile 'junit:junit:4.12'
31 | compile 'com.android.support:appcompat-v7:25.3.1'
32 | compile 'com.android.support:recyclerview-v7:25.3.1'
33 | compile 'com.mindorks:placeholderview:0.7.3-alpha'
34 | compile 'com.android.support:cardview-v7:25.3.1'
35 | compile 'com.github.bumptech.glide:glide:3.7.0'
36 | compile 'com.google.code.gson:gson:2.8.2'
37 | }
38 |
--------------------------------------------------------------------------------
/GalleryTest/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/janisharali/Library/Android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/GalleryTest/app/src/androidTest/java/test/mindorks/gallery/gallerytest/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package test.mindorks.gallery.gallerytest;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/GalleryTest/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/GalleryTest/app/src/main/java/test/mindorks/gallery/gallerytest/Image.java:
--------------------------------------------------------------------------------
1 | package test.mindorks.gallery.gallerytest;
2 |
3 | import com.google.gson.annotations.Expose;
4 | import com.google.gson.annotations.SerializedName;
5 |
6 | /**
7 | * Created by janisharali on 21/08/16.
8 | */
9 | public class Image {
10 |
11 | @SerializedName("url")
12 | @Expose
13 | private String imageUrl;
14 |
15 | public String getImageUrl() {
16 | return imageUrl;
17 | }
18 |
19 | public void setImageUrl(String imageUrl) {
20 | this.imageUrl = imageUrl;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/GalleryTest/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
12 |
17 |
--------------------------------------------------------------------------------
/GalleryTest/app/src/main/res/layout/gallery_item_big.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
13 |
19 |
20 |
--------------------------------------------------------------------------------
/GalleryTest/app/src/main/res/layout/gallery_item_small.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
13 |
19 |
20 |
--------------------------------------------------------------------------------
/GalleryTest/app/src/main/res/layout/gallery_item_small_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
11 |
--------------------------------------------------------------------------------
/GalleryTest/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/GalleryTest/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GalleryTest/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/GalleryTest/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GalleryTest/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/GalleryTest/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GalleryTest/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/GalleryTest/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GalleryTest/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/GalleryTest/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GalleryTest/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/GalleryTest/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/GalleryTest/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/GalleryTest/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | GalleryTest
3 |
4 |
--------------------------------------------------------------------------------
/GalleryTest/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
--------------------------------------------------------------------------------
/GalleryTest/app/src/test/java/test/mindorks/gallery/gallerytest/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package test.mindorks.gallery.gallerytest;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * To work on unit tests, switch the Test Artifact in the Build Variants view.
9 | */
10 | public class ExampleUnitTest {
11 | @Test
12 | public void addition_isCorrect() throws Exception {
13 | assertEquals(4, 2 + 2);
14 | }
15 | }
--------------------------------------------------------------------------------
/GalleryTest/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.0'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/GalleryTest/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/GalleryTest/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/GalleryTest/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/GalleryTest/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Tue Aug 23 11:32:09 IST 2016
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/GalleryTest/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/InfiniteList/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea
5 | .DS_Store
6 | /build
7 | /captures
8 | .externalNativeBuild
9 |
--------------------------------------------------------------------------------
/InfiniteList/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/InfiniteList/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 25
5 | buildToolsVersion "25.0.3"
6 | defaultConfig {
7 | applicationId "ali.infinitelist.demo.infinitelist"
8 | minSdkVersion 16
9 | targetSdkVersion 25
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | sourceSets {
21 | main {
22 | assets.srcDirs = ['src/main/assets', 'src/main/assets/']
23 | res.srcDirs = ['src/main/res', 'src/main/res/drawable']
24 | }
25 | }
26 |
27 | }
28 |
29 | dependencies {
30 | compile fileTree(dir: 'libs', include: ['*.jar'])
31 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
32 | exclude group: 'com.android.support', module: 'support-annotations'
33 | })
34 | compile 'com.android.support:appcompat-v7:25.3.1'
35 | testCompile 'junit:junit:4.12'
36 | compile 'com.mindorks:placeholderview:0.6.2'
37 | compile 'com.github.bumptech.glide:glide:3.7.0'
38 | compile 'com.android.support:cardview-v7:25.3.1'
39 | compile 'com.google.code.gson:gson:2.7'
40 | }
--------------------------------------------------------------------------------
/InfiniteList/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/janisharali/Library/Android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/InfiniteList/app/src/androidTest/java/ali/infinitelist/demo/infinitelist/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package ali.infinitelist.demo.infinitelist;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("ali.infinitelist.demo.infinitelist", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/InfiniteList/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/InfiniteList/app/src/main/java/ali/infinitelist/demo/infinitelist/InfiniteFeedInfo.java:
--------------------------------------------------------------------------------
1 | package ali.infinitelist.demo.infinitelist;
2 |
3 | import com.google.gson.annotations.Expose;
4 | import com.google.gson.annotations.SerializedName;
5 |
6 | /**
7 | * Created by janisharali on 24/08/16.
8 | */
9 | public class InfiniteFeedInfo {
10 |
11 | @SerializedName("title")
12 | @Expose
13 | private String title;
14 |
15 | @SerializedName("image_url")
16 | @Expose
17 | private String imageUrl;
18 |
19 | @SerializedName("caption")
20 | @Expose
21 | private String caption;
22 |
23 | @SerializedName("time")
24 | @Expose
25 | private String time;
26 |
27 | public String getTitle() {
28 | return title;
29 | }
30 |
31 | public void setTitle(String title) {
32 | this.title = title;
33 | }
34 |
35 | public String getImageUrl() {
36 | return imageUrl;
37 | }
38 |
39 | public void setImageUrl(String imageUrl) {
40 | this.imageUrl = imageUrl;
41 | }
42 |
43 | public String getCaption() {
44 | return caption;
45 | }
46 |
47 | public void setCaption(String caption) {
48 | this.caption = caption;
49 | }
50 |
51 | public String getTime() {
52 | return time;
53 | }
54 |
55 | public void setTime(String time) {
56 | this.time = time;
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/InfiniteList/app/src/main/java/ali/infinitelist/demo/infinitelist/ItemView.java:
--------------------------------------------------------------------------------
1 | package ali.infinitelist.demo.infinitelist;
2 |
3 | import android.content.Context;
4 | import android.widget.ImageView;
5 | import android.widget.TextView;
6 |
7 | import com.bumptech.glide.Glide;
8 | import com.mindorks.placeholderview.annotations.Layout;
9 | import com.mindorks.placeholderview.annotations.Resolve;
10 | import com.mindorks.placeholderview.annotations.View;
11 |
12 |
13 | /**
14 | * Created by janisharali on 24/08/16.
15 | */
16 | @Layout(R.layout.load_more_item_view)
17 | public class ItemView {
18 |
19 | @View(R.id.titleTxt)
20 | private TextView titleTxt;
21 |
22 | @View(R.id.captionTxt)
23 | private TextView captionTxt;
24 |
25 | @View(R.id.timeTxt)
26 | private TextView timeTxt;
27 |
28 | @View(R.id.imageView)
29 | private ImageView imageView;
30 |
31 | private InfiniteFeedInfo mInfo;
32 | private Context mContext;
33 |
34 | public ItemView(Context context, InfiniteFeedInfo info) {
35 | mContext = context;
36 | mInfo = info;
37 | }
38 |
39 | @Resolve
40 | private void onResolved() {
41 | titleTxt.setText(mInfo.getTitle());
42 | captionTxt.setText(mInfo.getCaption());
43 | timeTxt.setText(mInfo.getTime());
44 | Glide.with(mContext).load(mInfo.getImageUrl()).into(imageView);
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/InfiniteList/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
13 |
17 |
18 |
--------------------------------------------------------------------------------
/InfiniteList/app/src/main/res/layout/load_more_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
11 |
--------------------------------------------------------------------------------
/InfiniteList/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/InfiniteList/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/InfiniteList/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/InfiniteList/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/InfiniteList/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/InfiniteList/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/InfiniteList/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/InfiniteList/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/InfiniteList/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/InfiniteList/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/InfiniteList/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/InfiniteList/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/InfiniteList/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/InfiniteList/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | InfiniteList
3 |
4 |
--------------------------------------------------------------------------------
/InfiniteList/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/InfiniteList/app/src/test/java/ali/infinitelist/demo/infinitelist/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package ali.infinitelist.demo.infinitelist;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/InfiniteList/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.1'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/InfiniteList/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | org.gradle.jvmargs=-Xmx1536m
13 |
14 | # When configured, Gradle will run in incubating parallel mode.
15 | # This option should only be used with decoupled projects. More details, visit
16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17 | # org.gradle.parallel=true
18 |
--------------------------------------------------------------------------------
/InfiniteList/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/InfiniteList/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/InfiniteList/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Dec 28 10:00:20 PST 2015
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/InfiniteList/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/JPostNetworking/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea
5 | .DS_Store
6 | /build
7 | /captures
8 | .externalNativeBuild
9 |
--------------------------------------------------------------------------------
/JPostNetworking/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/JPostNetworking/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 23
5 | buildToolsVersion "24.0.1"
6 | defaultConfig {
7 | applicationId "ali.jpostnetworking.test.jpostnetworking"
8 | minSdkVersion 16
9 | targetSdkVersion 23
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(include: ['*.jar'], dir: 'libs')
24 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
25 | exclude group: 'com.android.support', module: 'support-annotations'
26 | })
27 | compile 'com.android.support:appcompat-v7:23.4.0'
28 | testCompile 'junit:junit:4.12'
29 |
30 | compile 'com.google.code.gson:gson:2.7'
31 | compile 'com.mindorks:android-jpost:0.0.4'
32 | }
33 |
--------------------------------------------------------------------------------
/JPostNetworking/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/janisharali/Library/Android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/JPostNetworking/app/src/androidTest/java/ali/jpostnetworking/test/jpostnetworking/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package ali.jpostnetworking.test.jpostnetworking;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("ali.jpostnetworking.test.jpostnetworking", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/JPostNetworking/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/JPostNetworking/app/src/main/java/ali/jpostnetworking/test/jpostnetworking/Application.java:
--------------------------------------------------------------------------------
1 | package ali.jpostnetworking.test.jpostnetworking;
2 |
3 | /**
4 | * Created by janisharali on 03/10/16.
5 | */
6 |
7 | public class Application extends android.app.Application {
8 |
9 | @Override
10 | public void onCreate() {
11 | super.onCreate();
12 | ApiHandler.init();
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/JPostNetworking/app/src/main/java/ali/jpostnetworking/test/jpostnetworking/GitRepo.java:
--------------------------------------------------------------------------------
1 | package ali.jpostnetworking.test.jpostnetworking;
2 |
3 | import com.google.gson.annotations.Expose;
4 | import com.google.gson.annotations.SerializedName;
5 |
6 | import java.util.List;
7 |
8 | /**
9 | * Created by janisharali on 03/10/16.
10 | */
11 |
12 | public class GitRepo {
13 |
14 | @SerializedName("id")
15 | @Expose
16 | private Integer id;
17 |
18 | @SerializedName("name")
19 | @Expose
20 | private String name;
21 |
22 | @SerializedName("html_url")
23 | @Expose
24 | private String url;
25 |
26 | @SerializedName("size")
27 | @Expose
28 | private Integer size;
29 |
30 | public Integer getId() {
31 | return id;
32 | }
33 |
34 | public void setId(Integer id) {
35 | this.id = id;
36 | }
37 |
38 | public String getName() {
39 | return name;
40 | }
41 |
42 | public void setName(String name) {
43 | this.name = name;
44 | }
45 |
46 | public String getUrl() {
47 | return url;
48 | }
49 |
50 | public void setUrl(String url) {
51 | this.url = url;
52 | }
53 |
54 | public Integer getSize() {
55 | return size;
56 | }
57 |
58 | public void setSize(Integer size) {
59 | this.size = size;
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/JPostNetworking/app/src/main/java/ali/jpostnetworking/test/jpostnetworking/GitRepoMsg.java:
--------------------------------------------------------------------------------
1 | package ali.jpostnetworking.test.jpostnetworking;
2 |
3 | import java.util.List;
4 |
5 | /**
6 | * Created by janisharali on 03/10/16.
7 | */
8 |
9 | public class GitRepoMsg {
10 |
11 | private List gitRepoList;
12 |
13 | public GitRepoMsg(List gitRepoList) {
14 | this.gitRepoList = gitRepoList;
15 | }
16 |
17 | public List getGitRepoList() {
18 | return gitRepoList;
19 | }
20 |
21 | public void setGitRepoList(List gitRepoList) {
22 | this.gitRepoList = gitRepoList;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/JPostNetworking/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/JPostNetworking/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/JPostNetworking/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/JPostNetworking/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/JPostNetworking/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/JPostNetworking/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/JPostNetworking/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/JPostNetworking/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/JPostNetworking/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/JPostNetworking/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/JPostNetworking/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/JPostNetworking/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/JPostNetworking/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/JPostNetworking/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/JPostNetworking/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | JPostNetworking
3 | Repo ID:
4 | Name:
5 | Url:
6 | Size:
7 |
8 |
--------------------------------------------------------------------------------
/JPostNetworking/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/JPostNetworking/app/src/test/java/ali/jpostnetworking/test/jpostnetworking/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package ali.jpostnetworking.test.jpostnetworking;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/JPostNetworking/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.1'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/JPostNetworking/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | org.gradle.jvmargs=-Xmx1536m
13 |
14 | # When configured, Gradle will run in incubating parallel mode.
15 | # This option should only be used with decoupled projects. More details, visit
16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17 | # org.gradle.parallel=true
18 |
--------------------------------------------------------------------------------
/JPostNetworking/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/JPostNetworking/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/JPostNetworking/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Dec 28 10:00:20 PST 2015
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/JPostNetworking/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea
5 | .DS_Store
6 | /build
7 | /captures
8 | .externalNativeBuild
9 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 24
5 | buildToolsVersion "24.0.2"
6 | defaultConfig {
7 | applicationId "ali.nestedplaceholderview.demo.nestedplaceholderview"
8 | minSdkVersion 16
9 | targetSdkVersion 24
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
25 | exclude group: 'com.android.support', module: 'support-annotations'
26 | })
27 | compile 'com.android.support:appcompat-v7:24.2.1'
28 | compile 'com.mindorks:placeholderview:0.2.7'
29 | compile 'com.google.code.gson:gson:2.7'
30 | testCompile 'junit:junit:4.12'
31 | }
32 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/janisharali/Library/Android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/androidTest/java/ali/nestedplaceholderview/demo/nestedplaceholderview/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package ali.nestedplaceholderview.demo.nestedplaceholderview;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("ali.nestedplaceholderview.demo.nestedplaceholderview", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/main/java/ali/nestedplaceholderview/demo/nestedplaceholderview/ListItemView.java:
--------------------------------------------------------------------------------
1 | package ali.nestedplaceholderview.demo.nestedplaceholderview;
2 |
3 | import android.widget.TextView;
4 |
5 | import com.mindorks.placeholderview.Animation;
6 | import com.mindorks.placeholderview.annotations.Animate;
7 | import com.mindorks.placeholderview.annotations.Layout;
8 | import com.mindorks.placeholderview.annotations.Resolve;
9 | import com.mindorks.placeholderview.annotations.View;
10 |
11 | /**
12 | * Created by janisharali on 11/10/16.
13 | */
14 | //@Animate(Animation.CARD_TOP_IN_DESC)
15 | @Layout(R.layout.news_list_item)
16 | public class ListItemView {
17 |
18 | @View(R.id.titleTxt)
19 | private TextView titleTxt;
20 |
21 | @View(R.id.pubDateTxt)
22 | private TextView pubDateTxt;
23 |
24 | @View(R.id.newsTxt)
25 | private TextView newsTxt;
26 |
27 |
28 | private GoogleNews.entry googleNewsEntry;
29 |
30 | public ListItemView(GoogleNews.entry googleNewsEntry) {
31 | this.googleNewsEntry = googleNewsEntry;
32 | }
33 |
34 | @Resolve
35 | public void onResolved(){
36 | titleTxt.setText(String.valueOf(googleNewsEntry.getTitle()));
37 | pubDateTxt.setText(googleNewsEntry.getPublishedDate());
38 | newsTxt.setText(googleNewsEntry.getContentSnippet());
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/main/java/ali/nestedplaceholderview/demo/nestedplaceholderview/MainActivity.java:
--------------------------------------------------------------------------------
1 | package ali.nestedplaceholderview.demo.nestedplaceholderview;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 |
6 | import com.mindorks.placeholderview.PlaceHolderView;
7 |
8 | public class MainActivity extends AppCompatActivity {
9 |
10 | @Override
11 | protected void onCreate(Bundle savedInstanceState) {
12 | super.onCreate(savedInstanceState);
13 | setContentView(R.layout.activity_main);
14 |
15 | PlaceHolderView repoListView = (PlaceHolderView) findViewById(R.id.repoListView);
16 | repoListView
17 | .addView(new RowListView(repoListView))
18 | .addView(new RowListView2(repoListView))
19 | .addView(new RowListView(repoListView))
20 | .addView(new RowListView2(repoListView));
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/main/res/layout/news_row_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/NestedPlaceHolderView/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/NestedPlaceHolderView/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/NestedPlaceHolderView/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/NestedPlaceHolderView/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/NestedPlaceHolderView/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | NestedPlaceHolderView
3 | Title:
4 | Published Date:
5 | News:
6 |
7 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/app/src/test/java/ali/nestedplaceholderview/demo/nestedplaceholderview/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package ali.nestedplaceholderview.demo.nestedplaceholderview;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/NestedPlaceHolderView/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.1'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | org.gradle.jvmargs=-Xmx1536m
13 |
14 | # When configured, Gradle will run in incubating parallel mode.
15 | # This option should only be used with decoupled projects. More details, visit
16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17 | # org.gradle.parallel=true
18 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/NestedPlaceHolderView/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/NestedPlaceHolderView/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Dec 28 10:00:20 PST 2015
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/NestedPlaceHolderView/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/NestedViewPagerView/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea
5 | .DS_Store
6 | /build
7 | /captures
8 | .externalNativeBuild
9 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 25
5 | buildToolsVersion "25.0.2"
6 | defaultConfig {
7 | applicationId "com.mindorks.placeholderview.nested.nestedplaceholderview"
8 | minSdkVersion 16
9 | targetSdkVersion 25
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
25 | exclude group: 'com.android.support', module: 'support-annotations'
26 | })
27 | compile 'com.android.support:appcompat-v7:25.1.0'
28 | compile 'com.mindorks:placeholderview:0.6.1'
29 | testCompile 'junit:junit:4.12'
30 | }
31 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/janisharali/Library/Android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/androidTest/java/com/mindorks/placeholderview/nested/nestedplaceholderview/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.mindorks.placeholderview.nested.nestedplaceholderview;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.mindorks.placeholderview.nested.nestedplaceholderview", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/java/com/mindorks/placeholderview/nested/nestedplaceholderview/CustomPlaceHolderView.java:
--------------------------------------------------------------------------------
1 | package com.mindorks.placeholderview.nested.nestedplaceholderview;
2 |
3 | import android.content.Context;
4 | import android.util.AttributeSet;
5 | import android.view.MotionEvent;
6 |
7 | import com.mindorks.placeholderview.PlaceHolderView;
8 |
9 | /**
10 | * Created by janisharali on 19/01/17.
11 | */
12 |
13 | public class CustomPlaceHolderView extends PlaceHolderView {
14 |
15 | public CustomPlaceHolderView(Context context) {
16 | super(context);
17 | }
18 |
19 | public CustomPlaceHolderView(Context context, AttributeSet attrs) {
20 | super(context, attrs);
21 | }
22 |
23 | public CustomPlaceHolderView(Context context, AttributeSet attrs, int defStyle) {
24 | super(context, attrs, defStyle);
25 | }
26 |
27 | @Override
28 | public boolean onTouchEvent(MotionEvent e) {
29 | return super.onTouchEvent(e);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/java/com/mindorks/placeholderview/nested/nestedplaceholderview/DemoApplication.java:
--------------------------------------------------------------------------------
1 | package com.mindorks.placeholderview.nested.nestedplaceholderview;
2 |
3 | import android.app.Application;
4 |
5 | /**
6 | * Created by janisharali on 18/01/17.
7 | */
8 |
9 | public class DemoApplication extends Application {
10 | }
11 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/java/com/mindorks/placeholderview/nested/nestedplaceholderview/ItemViewPager.java:
--------------------------------------------------------------------------------
1 | package com.mindorks.placeholderview.nested.nestedplaceholderview;
2 |
3 | import android.content.Context;
4 | import android.graphics.Color;
5 | import android.support.v4.view.ViewPager;
6 | import android.widget.ImageView;
7 | import android.widget.TextView;
8 |
9 | import com.mindorks.placeholderview.annotations.Layout;
10 | import com.mindorks.placeholderview.annotations.Position;
11 | import com.mindorks.placeholderview.annotations.Resolve;
12 | import com.mindorks.placeholderview.annotations.View;
13 |
14 | /**
15 | * Created by janisharali on 18/01/17.
16 | */
17 |
18 | @Layout(R.layout.item_viewpager)
19 | public class ItemViewPager {
20 |
21 | private static int count = 1;
22 |
23 | @View(R.id.imageView)
24 | private ImageView mImageView;
25 |
26 | @View(R.id.textView)
27 | private TextView mTextView;
28 |
29 | @Position
30 | private int mPosition;
31 |
32 | public ItemViewPager() {
33 | }
34 |
35 | @Resolve
36 | private void onResolved() {
37 | if(count % 2 == 0){
38 | mImageView.setBackgroundColor(Color.BLACK);
39 | }else{
40 | mImageView.setBackgroundColor(Color.GRAY);
41 | }
42 | mTextView.setText(String.valueOf(mPosition));
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/java/com/mindorks/placeholderview/nested/nestedplaceholderview/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.mindorks.placeholderview.nested.nestedplaceholderview;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 |
6 | import com.mindorks.placeholderview.PlaceHolderView;
7 |
8 | public class MainActivity extends AppCompatActivity {
9 |
10 | @Override
11 | protected void onCreate(Bundle savedInstanceState) {
12 | super.onCreate(savedInstanceState);
13 | setContentView(R.layout.activity_main);
14 |
15 | PlaceHolderView holderView = (PlaceHolderView)findViewById(R.id.viewHolder);
16 | holderView
17 | .addView(new ItemViewMain(getSupportFragmentManager()))
18 | .addView(new ItemViewMain(getSupportFragmentManager()))
19 | .addView(new ItemViewMain(getSupportFragmentManager()))
20 | .addView(new ItemViewMain(getSupportFragmentManager()))
21 | .addView(new ItemViewMain(getSupportFragmentManager()))
22 | .addView(new ItemViewMain(getSupportFragmentManager()))
23 | .addView(new ItemViewMain(getSupportFragmentManager()))
24 | .addView(new ItemViewMain(getSupportFragmentManager()));
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/java/com/mindorks/placeholderview/nested/nestedplaceholderview/MainActivity2.java:
--------------------------------------------------------------------------------
1 | package com.mindorks.placeholderview.nested.nestedplaceholderview;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.AppCompatActivity;
5 |
6 | import com.mindorks.placeholderview.PlaceHolderView;
7 |
8 | public class MainActivity2 extends AppCompatActivity {
9 |
10 | @Override
11 | protected void onCreate(Bundle savedInstanceState) {
12 | super.onCreate(savedInstanceState);
13 | setContentView(R.layout.activity_main_2);
14 |
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/java/com/mindorks/placeholderview/nested/nestedplaceholderview/PagerAdapter.java:
--------------------------------------------------------------------------------
1 | package com.mindorks.placeholderview.nested.nestedplaceholderview;
2 |
3 | import android.support.v4.app.Fragment;
4 | import android.support.v4.app.FragmentManager;
5 | import android.support.v4.app.FragmentPagerAdapter;
6 |
7 | import java.util.ArrayList;
8 | import java.util.List;
9 |
10 | /**
11 | * Created by janisharali on 18/01/17.
12 | */
13 |
14 | public class PagerAdapter extends FragmentPagerAdapter {
15 |
16 | private List fragmentList;
17 | private List fragmentTitleList;
18 |
19 | public PagerAdapter(FragmentManager manager) {
20 | super(manager);
21 | this.fragmentList = new ArrayList<>();
22 | this.fragmentTitleList = new ArrayList<>();
23 | }
24 |
25 | @Override
26 | public Fragment getItem(int position) {
27 | return fragmentList.get(position);
28 | }
29 |
30 | @Override
31 | public int getCount() {
32 | return fragmentList.size();
33 | }
34 |
35 | public void addFragment(Fragment fragment, String title) {
36 | fragmentList.add(fragment);
37 | fragmentTitleList.add(title);
38 | }
39 |
40 | public void clear(){
41 | fragmentList.clear();
42 | fragmentTitleList.clear();
43 | }
44 |
45 | @Override
46 | public CharSequence getPageTitle(int position) {
47 | return fragmentTitleList.get(position);
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/res/layout/fragment_page.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/res/layout/item_view_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/res/layout/item_viewpager.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
13 |
14 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/NestedViewPagerView/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/NestedViewPagerView/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/NestedViewPagerView/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/NestedViewPagerView/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/NestedViewPagerView/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | NestedPlaceHolderView
3 |
4 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/NestedViewPagerView/app/src/test/java/com/mindorks/placeholderview/nested/nestedplaceholderview/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.mindorks.placeholderview.nested.nestedplaceholderview;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/NestedViewPagerView/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.3'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/NestedViewPagerView/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | org.gradle.jvmargs=-Xmx1536m
13 |
14 | # When configured, Gradle will run in incubating parallel mode.
15 | # This option should only be used with decoupled projects. More details, visit
16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17 | # org.gradle.parallel=true
18 |
--------------------------------------------------------------------------------
/NestedViewPagerView/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/NestedViewPagerView/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/NestedViewPagerView/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Dec 28 10:00:20 PST 2015
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/NestedViewPagerView/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # tutorials
2 | Published tutorial files
3 |
--------------------------------------------------------------------------------
/RandomPromotionalCards/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .externalNativeBuild
10 | .idea
11 |
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/janisharali/Library/Android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Uncomment this to preserve the line number information for
20 | # debugging stack traces.
21 | #-keepattributes SourceFile,LineNumberTable
22 |
23 | # If you keep the line number information, uncomment this to
24 | # hide the original source file name.
25 | #-renamesourcefileattribute SourceFile
26 |
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/androidTest/java/android/mindorks/com/randomaddviewcards/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package android.mindorks.com.randomaddviewcards;
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.assertEquals;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("android.mindorks.com.randomaddviewcards", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/java/android/mindorks/com/randomaddviewcards/Profile.java:
--------------------------------------------------------------------------------
1 | package android.mindorks.com.randomaddviewcards;
2 |
3 | import com.google.gson.annotations.Expose;
4 | import com.google.gson.annotations.SerializedName;
5 |
6 | /**
7 | * Created by janisharali on 29/08/16.
8 | */
9 | public class Profile {
10 |
11 | @SerializedName("name")
12 | @Expose
13 | private String name;
14 |
15 | @SerializedName("url")
16 | @Expose
17 | private String imageUrl;
18 |
19 | @SerializedName("age")
20 | @Expose
21 | private Integer age;
22 |
23 | @SerializedName("location")
24 | @Expose
25 | private String location;
26 |
27 | public String getName() {
28 | return name;
29 | }
30 |
31 | public void setName(String name) {
32 | this.name = name;
33 | }
34 |
35 | public String getImageUrl() {
36 | return imageUrl;
37 | }
38 |
39 | public void setImageUrl(String imageUrl) {
40 | this.imageUrl = imageUrl;
41 | }
42 |
43 | public Integer getAge() {
44 | return age;
45 | }
46 |
47 | public void setAge(Integer age) {
48 | this.age = age;
49 | }
50 |
51 | public String getLocation() {
52 | return location;
53 | }
54 |
55 | public void setLocation(String location) {
56 | this.location = location;
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/drawable/ic_cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/RandomPromotionalCards/app/src/main/res/drawable/ic_cancel.png
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/drawable/ic_heart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/RandomPromotionalCards/app/src/main/res/drawable/ic_heart.png
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/layout/add_card_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
17 |
18 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/layout/tinder_swipe_in_msg_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
15 |
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/layout/tinder_swipe_out_msg_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
16 |
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/RandomPromotionalCards/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/RandomPromotionalCards/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/RandomPromotionalCards/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/RandomPromotionalCards/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/RandomPromotionalCards/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/RandomPromotionalCards/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/RandomPromotionalCards/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/RandomPromotionalCards/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/RandomPromotionalCards/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/RandomPromotionalCards/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #8c8c8c
4 | #000000
5 | #FF4081
6 | #FFFFFF
7 | #e5e5e5
8 |
9 |
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | RandomAddViewCards
3 |
4 |
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/RandomPromotionalCards/app/src/test/java/android/mindorks/com/randomaddviewcards/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package android.mindorks.com.randomaddviewcards;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.assertEquals;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/RandomPromotionalCards/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.3.3'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/RandomPromotionalCards/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 |
--------------------------------------------------------------------------------
/RandomPromotionalCards/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/RandomPromotionalCards/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/RandomPromotionalCards/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Oct 23 00:44:18 IST 2017
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-3.3-all.zip
7 |
--------------------------------------------------------------------------------
/RandomPromotionalCards/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/TinderSwipe/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea
5 | .DS_Store
6 | /build
7 | /captures
8 |
--------------------------------------------------------------------------------
/TinderSwipe/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/TinderSwipe/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 25
5 | buildToolsVersion "25.0.2"
6 |
7 | defaultConfig {
8 | applicationId "test.mindorks.swipe.tinderswipe"
9 | minSdkVersion 16
10 | targetSdkVersion 25
11 | versionCode 1
12 | versionName "1.0"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | sourceSets {
21 | main {
22 | assets.srcDirs = ['src/main/assets', 'src/main/assets/']
23 | res.srcDirs = ['src/main/res', 'src/main/res/drawable']
24 | }
25 | }
26 | }
27 |
28 | dependencies {
29 | compile fileTree(dir: 'libs', include: ['*.jar'])
30 | testCompile 'junit:junit:4.12'
31 | compile 'com.android.support:appcompat-v7:25.3.1'
32 | compile 'com.android.support:cardview-v7:25.3.1'
33 | compile 'com.github.bumptech.glide:glide:3.7.0'
34 | compile 'com.google.code.gson:gson:2.7'
35 | compile 'com.mindorks:placeholderview:0.7.2'
36 | compile 'jp.wasabeef:glide-transformations:2.0.2'
37 | }
38 |
--------------------------------------------------------------------------------
/TinderSwipe/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/janisharali/Library/Android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/TinderSwipe/app/src/androidTest/java/test/mindorks/swipe/tinderswipe/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package test.mindorks.swipe.tinderswipe;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/java/test/mindorks/swipe/tinderswipe/Profile.java:
--------------------------------------------------------------------------------
1 | package test.mindorks.swipe.tinderswipe;
2 |
3 | import com.google.gson.annotations.Expose;
4 | import com.google.gson.annotations.SerializedName;
5 |
6 | /**
7 | * Created by janisharali on 29/08/16.
8 | */
9 | public class Profile {
10 |
11 | @SerializedName("name")
12 | @Expose
13 | private String name;
14 |
15 | @SerializedName("url")
16 | @Expose
17 | private String imageUrl;
18 |
19 | @SerializedName("age")
20 | @Expose
21 | private Integer age;
22 |
23 | @SerializedName("location")
24 | @Expose
25 | private String location;
26 |
27 | public String getName() {
28 | return name;
29 | }
30 |
31 | public void setName(String name) {
32 | this.name = name;
33 | }
34 |
35 | public String getImageUrl() {
36 | return imageUrl;
37 | }
38 |
39 | public void setImageUrl(String imageUrl) {
40 | this.imageUrl = imageUrl;
41 | }
42 |
43 | public Integer getAge() {
44 | return age;
45 | }
46 |
47 | public void setAge(Integer age) {
48 | this.age = age;
49 | }
50 |
51 | public String getLocation() {
52 | return location;
53 | }
54 |
55 | public void setLocation(String location) {
56 | this.location = location;
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/res/drawable/ic_cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/TinderSwipe/app/src/main/res/drawable/ic_cancel.png
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/res/drawable/ic_heart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/TinderSwipe/app/src/main/res/drawable/ic_heart.png
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
14 |
19 |
25 |
31 |
32 |
36 |
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/res/layout/tinder_swipe_in_msg_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
15 |
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/res/layout/tinder_swipe_out_msg_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
16 |
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/TinderSwipe/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/TinderSwipe/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/TinderSwipe/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/TinderSwipe/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/TinderSwipe/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #8c8c8c
4 | #000000
5 | #FF4081
6 | #FFFFFF
7 | #e5e5e5
8 |
9 |
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | TinderSwipe
3 |
4 |
--------------------------------------------------------------------------------
/TinderSwipe/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/TinderSwipe/app/src/test/java/test/mindorks/swipe/tinderswipe/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package test.mindorks.swipe.tinderswipe;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * To work on unit tests, switch the Test Artifact in the Build Variants view.
9 | */
10 | public class ExampleUnitTest {
11 | @Test
12 | public void addition_isCorrect() throws Exception {
13 | assertEquals(4, 2 + 2);
14 | }
15 | }
--------------------------------------------------------------------------------
/TinderSwipe/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.2'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/TinderSwipe/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/TinderSwipe/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/TinderSwipe/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/TinderSwipe/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Aug 29 00:56:41 IST 2016
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/TinderSwipe/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/feed-expandable-v2/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea
5 | .DS_Store
6 | /build
7 | /captures
8 |
--------------------------------------------------------------------------------
/feed-expandable-v2/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/feed-expandable-v2/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/janisharali/Library/Android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/androidTest/java/test/mindorks/feed/feed/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package test.mindorks.feed.feed;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/java/test/mindorks/feed/feed/Feed.java:
--------------------------------------------------------------------------------
1 | package test.mindorks.feed.feed;
2 |
3 | import com.google.gson.annotations.Expose;
4 | import com.google.gson.annotations.SerializedName;
5 |
6 | import java.util.List;
7 |
8 | /**
9 | * Created by janisharali on 24/08/16.
10 | */
11 | public class Feed {
12 |
13 | @SerializedName("category")
14 | @Expose
15 | private String heading;
16 |
17 | @SerializedName("data")
18 | @Expose
19 | private List infoList;
20 |
21 | public String getHeading() {
22 | return heading;
23 | }
24 |
25 | public void setHeading(String heading) {
26 | this.heading = heading;
27 | }
28 |
29 | public List getInfoList() {
30 | return infoList;
31 | }
32 |
33 | public void setInfoList(List infoList) {
34 | this.infoList = infoList;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/java/test/mindorks/feed/feed/Info.java:
--------------------------------------------------------------------------------
1 | package test.mindorks.feed.feed;
2 |
3 | import com.google.gson.annotations.Expose;
4 | import com.google.gson.annotations.SerializedName;
5 |
6 | /**
7 | * Created by janisharali on 24/08/16.
8 | */
9 | public class Info {
10 |
11 | @SerializedName("title")
12 | @Expose
13 | private String title;
14 |
15 | @SerializedName("image_url")
16 | @Expose
17 | private String imageUrl;
18 |
19 | @SerializedName("caption")
20 | @Expose
21 | private String caption;
22 |
23 | @SerializedName("time")
24 | @Expose
25 | private String time;
26 |
27 | public String getTitle() {
28 | return title;
29 | }
30 |
31 | public void setTitle(String title) {
32 | this.title = title;
33 | }
34 |
35 | public String getImageUrl() {
36 | return imageUrl;
37 | }
38 |
39 | public void setImageUrl(String imageUrl) {
40 | this.imageUrl = imageUrl;
41 | }
42 |
43 | public String getCaption() {
44 | return caption;
45 | }
46 |
47 | public void setCaption(String caption) {
48 | this.caption = caption;
49 | }
50 |
51 | public String getTime() {
52 | return time;
53 | }
54 |
55 | public void setTime(String time) {
56 | this.time = time;
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/java/test/mindorks/feed/feed/InfoView.java:
--------------------------------------------------------------------------------
1 | package test.mindorks.feed.feed;
2 |
3 | import android.content.Context;
4 | import android.widget.ImageView;
5 | import android.widget.TextView;
6 |
7 | import com.bumptech.glide.Glide;
8 | import com.mindorks.placeholderview.annotations.Layout;
9 | import com.mindorks.placeholderview.annotations.Resolve;
10 | import com.mindorks.placeholderview.annotations.View;
11 | import com.mindorks.placeholderview.annotations.expand.ChildPosition;
12 | import com.mindorks.placeholderview.annotations.expand.ParentPosition;
13 |
14 | /**
15 | * Created by janisharali on 24/08/16.
16 | */
17 | @Layout(R.layout.feed_item)
18 | public class InfoView {
19 |
20 | @ParentPosition
21 | int mParentPosition;
22 |
23 | @ChildPosition
24 | int mChildPosition;
25 |
26 | @View(R.id.titleTxt)
27 | TextView titleTxt;
28 |
29 | @View(R.id.captionTxt)
30 | TextView captionTxt;
31 |
32 | @View(R.id.timeTxt)
33 | TextView timeTxt;
34 |
35 | @View(R.id.imageView)
36 | ImageView imageView;
37 |
38 | Info mInfo;
39 | Context mContext;
40 |
41 | public InfoView(Context context, Info info) {
42 | mContext = context;
43 | mInfo = info;
44 | }
45 |
46 | @Resolve
47 | public void onResolved() {
48 | titleTxt.setText(mInfo.getTitle());
49 | captionTxt.setText(mInfo.getCaption());
50 | timeTxt.setText(mInfo.getTime());
51 | Glide.with(mContext).load(mInfo.getImageUrl()).into(imageView);
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/java/test/mindorks/feed/feed/MainActivity.java:
--------------------------------------------------------------------------------
1 | package test.mindorks.feed.feed;
2 |
3 | import android.content.Context;
4 | import android.os.Bundle;
5 | import android.support.v7.app.AppCompatActivity;
6 |
7 | import com.mindorks.placeholderview.ExpandablePlaceHolderView;
8 |
9 | public class MainActivity extends AppCompatActivity {
10 |
11 | private ExpandablePlaceHolderView mExpandableView;
12 | private Context mContext;
13 |
14 | @Override
15 | protected void onCreate(Bundle savedInstanceState) {
16 | super.onCreate(savedInstanceState);
17 | setContentView(R.layout.activity_main);
18 | mContext = this.getApplicationContext();
19 | mExpandableView = (ExpandablePlaceHolderView)findViewById(R.id.expandableView);
20 |
21 | for (Feed feed : Utils.loadFeeds(this.getApplicationContext())) {
22 | mExpandableView.addView(new HeadingView(mContext, feed.getHeading()));
23 | for (Info info : feed.getInfoList()) {
24 | mExpandableView.addView(new InfoView(mContext, info));
25 | }
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/drawable-hdpi/ic_keyboard_arrow_down_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/feed-expandable-v2/app/src/main/res/drawable-hdpi/ic_keyboard_arrow_down_white_24dp.png
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/drawable-hdpi/ic_keyboard_arrow_up_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/feed-expandable-v2/app/src/main/res/drawable-hdpi/ic_keyboard_arrow_up_white_24dp.png
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/drawable-mdpi/ic_keyboard_arrow_down_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/feed-expandable-v2/app/src/main/res/drawable-mdpi/ic_keyboard_arrow_down_white_24dp.png
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/drawable-mdpi/ic_keyboard_arrow_up_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/feed-expandable-v2/app/src/main/res/drawable-mdpi/ic_keyboard_arrow_up_white_24dp.png
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/drawable-xhdpi/ic_keyboard_arrow_down_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/feed-expandable-v2/app/src/main/res/drawable-xhdpi/ic_keyboard_arrow_down_white_24dp.png
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/drawable-xhdpi/ic_keyboard_arrow_up_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/feed-expandable-v2/app/src/main/res/drawable-xhdpi/ic_keyboard_arrow_up_white_24dp.png
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/drawable-xxhdpi/ic_keyboard_arrow_down_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/feed-expandable-v2/app/src/main/res/drawable-xxhdpi/ic_keyboard_arrow_down_white_24dp.png
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/drawable-xxhdpi/ic_keyboard_arrow_up_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/feed-expandable-v2/app/src/main/res/drawable-xxhdpi/ic_keyboard_arrow_up_white_24dp.png
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/drawable-xxxhdpi/ic_keyboard_arrow_down_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/feed-expandable-v2/app/src/main/res/drawable-xxxhdpi/ic_keyboard_arrow_down_white_24dp.png
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/drawable-xxxhdpi/ic_keyboard_arrow_up_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/feed-expandable-v2/app/src/main/res/drawable-xxxhdpi/ic_keyboard_arrow_up_white_24dp.png
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/drawable/bottom_border_on_dark.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
7 |
8 |
9 | -
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/drawable/bottom_border_on_light.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
7 |
8 |
9 | -
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/layout/feed_heading.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
24 |
28 |
33 |
38 |
39 |
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/feed-expandable-v2/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/feed-expandable-v2/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/feed-expandable-v2/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/feed-expandable-v2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/feed-expandable-v2/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #f2b632
4 | #22264b
5 | #FF4081
6 | #e8edf3
7 | #FFFFFF
8 |
9 |
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Feed
3 |
4 |
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/feed-expandable-v2/app/src/test/java/test/mindorks/feed/feed/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package test.mindorks.feed.feed;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * To work on unit tests, switch the Test Artifact in the Build Variants view.
9 | */
10 | public class ExampleUnitTest {
11 | @Test
12 | public void addition_isCorrect() throws Exception {
13 | assertEquals(4, 2 + 2);
14 | }
15 | }
--------------------------------------------------------------------------------
/feed-expandable-v2/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | google()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.1.0'
10 |
11 | // NOTE: Do not place your application dependencies here; they belong
12 | // in the individual module build.gradle files
13 | }
14 | }
15 |
16 | allprojects {
17 | repositories {
18 | jcenter()
19 | google()
20 | }
21 | }
22 |
23 | task clean(type: Delete) {
24 | delete rootProject.buildDir
25 | }
26 |
--------------------------------------------------------------------------------
/feed-expandable-v2/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/feed-expandable-v2/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/feed-expandable-v2/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/feed-expandable-v2/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sun Mar 04 01:05:31 IST 2018
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-4.5.1-all.zip
--------------------------------------------------------------------------------
/feed-expandable-v2/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | .idea
5 | .DS_Store
6 | /build
7 | /captures
8 | .externalNativeBuild
9 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/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 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/androidTest/java/kotlin/tinderswipe/swipe/mindorks/demo/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | package kotlin.tinderswipe.swipe.mindorks.demo
2 |
3 | import android.support.test.InstrumentationRegistry
4 | import android.support.test.runner.AndroidJUnit4
5 |
6 | import org.junit.Test
7 | import org.junit.runner.RunWith
8 |
9 | import org.junit.Assert.*
10 |
11 | /**
12 | * Instrumented test, which will execute on an Android device.
13 | *
14 | * See [testing documentation](http://d.android.com/tools/testing).
15 | */
16 | @RunWith(AndroidJUnit4::class)
17 | class ExampleInstrumentedTest {
18 | @Test
19 | fun useAppContext() {
20 | // Context of the app under test.
21 | val appContext = InstrumentationRegistry.getTargetContext()
22 | assertEquals("kotlin.tinderswipe.swipe.mindorks.demo", appContext.packageName)
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/java/tinderswipe/swipe/mindorks/demo/Profile.kt:
--------------------------------------------------------------------------------
1 | package tinderswipe.swipe.mindorks.demo
2 |
3 | import com.google.gson.annotations.Expose
4 | import com.google.gson.annotations.SerializedName
5 |
6 | data class Profile(
7 | @SerializedName("name") @Expose var name: String,
8 | @SerializedName("url") @Expose var imageUrl: String,
9 | @SerializedName("age") @Expose var age: Int,
10 | @SerializedName("location") @Expose var location: String
11 | )
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/drawable/ic_cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-kotlin/app/src/main/res/drawable/ic_cancel.png
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/drawable/ic_heart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-kotlin/app/src/main/res/drawable/ic_heart.png
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/layout/tinder_swipe_in_msg_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
15 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/layout/tinder_swipe_out_msg_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
16 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-kotlin/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-kotlin/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-kotlin/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-kotlin/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-kotlin/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-kotlin/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-kotlin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-kotlin/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-kotlin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-kotlin/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 | #FFFFFF
7 | #e5e5e5
8 |
9 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | tinder-swipe-kotlin
3 |
4 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/app/src/test/java/kotlin/tinderswipe/swipe/mindorks/demo/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | package kotlin.tinderswipe.swipe.mindorks.demo
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * See [testing documentation](http://d.android.com/tools/testing).
11 | */
12 | class ExampleUnitTest {
13 | @Test
14 | fun addition_isCorrect() {
15 | assertEquals(4, 2 + 2)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | ext.kotlin_version = '1.2.30'
5 | repositories {
6 | google()
7 | jcenter()
8 | }
9 | dependencies {
10 | classpath 'com.android.tools.build:gradle:3.1.0'
11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
12 |
13 | // NOTE: Do not place your application dependencies here; they belong
14 | // in the individual module build.gradle files
15 | }
16 | }
17 |
18 | allprojects {
19 | repositories {
20 | google()
21 | jcenter()
22 | }
23 | }
24 |
25 | task clean(type: Delete) {
26 | delete rootProject.buildDir
27 | }
28 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/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 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-kotlin/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sun Apr 08 12:37:18 IST 2018
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-4.4-all.zip
7 |
--------------------------------------------------------------------------------
/tinder-swipe-kotlin/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .externalNativeBuild
10 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/.idea/markdown-navigator/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea
5 | .DS_Store
6 | /build
7 | /captures
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 26
5 | buildToolsVersion "26.0.0"
6 | defaultConfig {
7 | applicationId "dependency.greendao.test.tinder.directional"
8 | minSdkVersion 16
9 | targetSdkVersion 26
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
25 | exclude group: 'com.android.support', module: 'support-annotations'
26 | })
27 | compile 'com.android.support:appcompat-v7:26.+'
28 | testCompile 'junit:junit:4.12'
29 | compile 'com.android.support:cardview-v7:26.+'
30 | compile 'com.github.bumptech.glide:glide:3.7.0'
31 | compile 'com.google.code.gson:gson:2.7'
32 |
33 | // RecyclerView dependency is added to override the
34 | // default 25.3.1 RecyclerView dependency stated by placeholderview
35 | // since we are using the 26.+ support libraries in the project
36 | compile 'com.android.support:recyclerview-v7:26.+'
37 | compile 'com.mindorks:placeholderview:0.7.0'
38 |
39 | compile 'jp.wasabeef:glide-transformations:2.0.2'
40 | }
41 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/janisharali/Library/Android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Uncomment this to preserve the line number information for
20 | # debugging stack traces.
21 | #-keepattributes SourceFile,LineNumberTable
22 |
23 | # If you keep the line number information, uncomment this to
24 | # hide the original source file name.
25 | #-renamesourcefileattribute SourceFile
26 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/androidTest/java/dependency/greendao/test/tinder/directional/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package dependency.greendao.test.tinder.directional;
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.assertEquals;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("dependency.greendao.test.tinder.directional", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/java/dependency/greendao/test/tinder/directional/Profile.java:
--------------------------------------------------------------------------------
1 | package dependency.greendao.test.tinder.directional;
2 |
3 | import com.google.gson.annotations.Expose;
4 | import com.google.gson.annotations.SerializedName;
5 |
6 | /**
7 | * Created by janisharali on 29/08/16.
8 | */
9 | public class Profile {
10 |
11 | @SerializedName("name")
12 | @Expose
13 | private String name;
14 |
15 | @SerializedName("url")
16 | @Expose
17 | private String imageUrl;
18 |
19 | @SerializedName("age")
20 | @Expose
21 | private Integer age;
22 |
23 | @SerializedName("location")
24 | @Expose
25 | private String location;
26 |
27 | public String getName() {
28 | return name;
29 | }
30 |
31 | public void setName(String name) {
32 | this.name = name;
33 | }
34 |
35 | public String getImageUrl() {
36 | return imageUrl;
37 | }
38 |
39 | public void setImageUrl(String imageUrl) {
40 | this.imageUrl = imageUrl;
41 | }
42 |
43 | public Integer getAge() {
44 | return age;
45 | }
46 |
47 | public void setAge(Integer age) {
48 | this.age = age;
49 | }
50 |
51 | public String getLocation() {
52 | return location;
53 | }
54 |
55 | public void setLocation(String location) {
56 | this.location = location;
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/drawable/ic_cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-top-Left-right-bottom/app/src/main/res/drawable/ic_cancel.png
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/drawable/ic_heart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-top-Left-right-bottom/app/src/main/res/drawable/ic_heart.png
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/layout/tinder_swipe_in_msg_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
15 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/layout/tinder_swipe_out_msg_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
16 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-top-Left-right-bottom/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #8c8c8c
4 | #000000
5 | #FF4081
6 | #FFFFFF
7 | #e5e5e5
8 |
9 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | TinderSwipe
3 |
4 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/app/src/test/java/dependency/greendao/test/tinder/directional/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package dependency.greendao.test.tinder.directional;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.assertEquals;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.3.3'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/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 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-top-Left-right-bottom/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Aug 09 20:53:52 IST 2017
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-3.3-all.zip
7 |
--------------------------------------------------------------------------------
/tinder-swipe-top-Left-right-bottom/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .externalNativeBuild
10 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/.idea/markdown-navigator/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea
5 | .DS_Store
6 | /build
7 | /captures
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/janisharali/Library/Android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Uncomment this to preserve the line number information for
20 | # debugging stack traces.
21 | #-keepattributes SourceFile,LineNumberTable
22 |
23 | # If you keep the line number information, uncomment this to
24 | # hide the original source file name.
25 | #-renamesourcefileattribute SourceFile
26 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/androidTest/java/dependency/greendao/test/tinder/directional/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package dependency.greendao.test.tinder.directional;
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.assertEquals;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("dependency.greendao.test.tinder.directional", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/java/dependency/greendao/test/tinder/directional/Profile.java:
--------------------------------------------------------------------------------
1 | package dependency.greendao.test.tinder.directional;
2 |
3 | import com.google.gson.annotations.Expose;
4 | import com.google.gson.annotations.SerializedName;
5 |
6 | /**
7 | * Created by janisharali on 29/08/16.
8 | */
9 | public class Profile {
10 |
11 | @SerializedName("name")
12 | @Expose
13 | private String name;
14 |
15 | @SerializedName("url")
16 | @Expose
17 | private String imageUrl;
18 |
19 | @SerializedName("age")
20 | @Expose
21 | private Integer age;
22 |
23 | @SerializedName("location")
24 | @Expose
25 | private String location;
26 |
27 | public String getName() {
28 | return name;
29 | }
30 |
31 | public void setName(String name) {
32 | this.name = name;
33 | }
34 |
35 | public String getImageUrl() {
36 | return imageUrl;
37 | }
38 |
39 | public void setImageUrl(String imageUrl) {
40 | this.imageUrl = imageUrl;
41 | }
42 |
43 | public Integer getAge() {
44 | return age;
45 | }
46 |
47 | public void setAge(Integer age) {
48 | this.age = age;
49 | }
50 |
51 | public String getLocation() {
52 | return location;
53 | }
54 |
55 | public void setLocation(String location) {
56 | this.location = location;
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/drawable/ic_cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-v2/app/src/main/res/drawable/ic_cancel.png
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/drawable/ic_heart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-v2/app/src/main/res/drawable/ic_heart.png
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
14 |
15 |
20 |
21 |
27 |
28 |
34 |
35 |
36 |
40 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/layout/tinder_swipe_in_msg_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
15 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/layout/tinder_swipe_out_msg_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
16 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-v2/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-v2/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-v2/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-v2/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-v2/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-v2/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-v2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-v2/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-v2/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-v2/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #8c8c8c
4 | #000000
5 | #FF4081
6 | #FFFFFF
7 | #e5e5e5
8 |
9 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | TinderSwipe
3 |
4 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/app/src/test/java/dependency/greendao/test/tinder/directional/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package dependency.greendao.test.tinder.directional;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.assertEquals;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/tinder-swipe-v2/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | google()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.1.0'
10 |
11 | // NOTE: Do not place your application dependencies here; they belong
12 | // in the individual module build.gradle files
13 | }
14 | }
15 |
16 | allprojects {
17 | repositories {
18 | jcenter()
19 | google()
20 | }
21 | }
22 |
23 | task clean(type: Delete) {
24 | delete rootProject.buildDir
25 | }
26 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/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 |
--------------------------------------------------------------------------------
/tinder-swipe-v2/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/janishar/Tutorials/888408ef7dd8a170bdc22a4992dca56421dd6ded/tinder-swipe-v2/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/tinder-swipe-v2/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Mar 02 15:31:10 IST 2018
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-4.5.1-all.zip
--------------------------------------------------------------------------------
/tinder-swipe-v2/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------