forked from RohitSurwase/AndroidDesignPatterns
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request RohitSurwase#3 from Rohitss/develop
All demos are published with steps.
- Loading branch information
Showing
20 changed files
with
93 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Navigation Drawer throughout application. | ||
|
||
This demo will be ready soon. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
//Step 1. Add Gradle dependency to app-gradle. | ||
This demo app show, how we can add image chooser with material UI | ||
Image chooser will include all gallery and camera apps. | ||
Best part is that we can also crop selected image using this demo code. | ||
To crop image I have used "Android-Image-Cropper" by "ArthurHub" library. | ||
* Library github link - "https://github.com/ArthurHub/Android-Image-Cropper" | ||
//Step 1. Add Gradle dependency to app-gradle. | ||
//Step 2. Add CropImageActivity to app-manifest | ||
//Step 3. Add ImageUtilityHelper class in your project. | ||
//Step 4. Create object of ImageUtilityHelper class. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,37 @@ | ||
AndroidDesignPatterns | ||
Android Design Patterns | ||
|
||
Collection of best code snippets to help everyone to simplify android app development. | ||
Collection of best code snippets to help everyone to simplify Android App Development. | ||
|
||
Basic idea of this project is to gather all the example of different topics at one place. | ||
Basic idea of this repository is to gather all the example of different topics at one place. | ||
|
||
Currently this collection includes | ||
1. Different ways to show splash screen | ||
2. Best and correct way to show splash screen. | ||
3. Adding Navigation Drawer throughout the application | ||
4. Swipeable tabs with TabLayout | ||
5. Auto read SMS/OTP | ||
6. Image Picker with camera and gallery options. | ||
|
||
Demos which will be added soon | ||
- Synchronised Local SQLite Database. | ||
- Most effective way to use RecyclerView | ||
- Activity Life Cycle Methods | ||
- Fragment Life Cycle Methods | ||
|
||
Sample for commenting functions/activities in this project | ||
/** | ||
* <b>functionName</b> | ||
* <p>This function is used to ....</p> | ||
* <p1>Created By - userName</p1> | ||
*/ | ||
|
||
|
||
# /** | ||
# * <b>functionName</b> | ||
# * <p>This function is used to ....</p> | ||
# * <p1>Created By - userName</p1> | ||
# */ | ||
Ex.- | ||
/** | ||
* <b>private void showSplashScreen()</b> | ||
* <p>This function is used to show splash screen</p> | ||
* <p1>Created By - Rohitss</p1> | ||
*/ | ||
# /** | ||
# * <b>private void showSplashScreen()</b> | ||
# * <p>This function is used to show splash screen</p> | ||
# * <p1>Created By - Rohitss</p1> | ||
# */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This demo shows different ways to show splash screen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This demo shows the right way to show splash screen in application. | ||
|
||
This way app don't need to load theme to show splash screen. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 2 additions & 5 deletions
7
SwipeableTabs/app/src/main/java/com/rohitss/swipeabletabs/ThreeFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters