Main repository containing all the example apps demonstrating features/functionality/integrations in android application development
NOTE: If you are going to download just a single example app (using the download link), make sure you follow the below procedure
- Create a folder
android-examples
- Next download and add the
dependencies.gradle
to thisandroid-examples
folder- Now move the example app folder inside the
android-examples
folderThe reason this is required because each single app uses
ext
variables defined and referenced fromdependencies.gradle
file from the parent folder namelyandroid-examples
.
- Custom Drawer
- DropDown Button
- Enable Splash Screen
- Firebase Analytics Integration
- Firebase Crashlytics Integration
- Google Signin
- Grid Layout
- Image Editor
- Image from Network
- Infinite List
- Load local image
- Load local json
- Navigation Drawer
- Persist Key Value
- Push Notifications
- Simple Material App
- Sliver App Bar
- Stateful Widget
- Stateless counter app
- Stateless Widgets
- Todo list using Provider
- Unit Testing
- Using Alert Dialog
- Using Bottom Navigation Bar
- Using Bottom Sheet
- Using Custom Fonts
- Using EditText
- Using Gradient
- Using HTTP GET
- Using InteractiveViewer
- Using Listview
- Using ListwheelScrollView
- Using SnackBar
- Using Stepper
- Using Tabs
- Using Theme
- View PDF File
- UsingAndroidUtils
- UsingEasyDeviceInfo
- UsingOptimusHTTP
- UsingPackageHunter
- UsingQREader
- UsingRecyclerViewHelper
- UsingScreenshott
- UsingSensey
- UsingShoutout
- UsingStackedHorizontalProgressbar
- UsingZentone
I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:
-
Match coding style (braces, spacing, etc.) This is best achieved using
Reformat Code
feature of Android StudioCMD
+Option
+L
on Mac andCTRL
+ALT
+L
on Linux + Windows . -
If its a feature, bugfix, or anything please only change code to what you specify.
-
Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
-
Pull requests must be made against
develop
branch. Any other branch (unless specified by the maintainers) will get rejected. -
Check for existing issues first, before filing an issue.
-
Make sure you follow the set standard as all other projects in this repo do
-
Upgrade your gradle wrapper to the one all other apps are using. Use the below command at root of your project
./gradlew wrapper --gradle-version <version_name>
i.e
./gradlew wrapper --gradle-version 6.0.1
-
Use
ext
variables as defined independencies.gradle
, in yourbuild.gradle
files to make sure all apps are in sync with configurations and dependencies. Take a look here and here -
Use the package name of the format
github.nisrulz.*
where*
is the example you are adding to the repo. I am trying to follow a set standard in the repo, please adhere to that.
-
-
Have fun!
NOTE: There is a quick bootstrapping cookiecutter template to create an Android example project that adheres to all wiring up and standards for this repo. Read how to use use it from links below:
Since the repo is pretty large now , I am sure many folks would like to download only some of the projects. To tackle that follow the steps below:
-
Install
svn
using homebrew (mac/linux)brew install svn
-
Copy the name of the example folder in this repo i.e
AccessingGoogleDrive
-
Next replace
example_folder
in the below command:svn checkout https://github.com/nisrulz/android-examples/trunk/example_folder
i.e Consider
AccessingGoogleDrive
is the name of the example's folder, the command becomes:svn checkout https://github.com/nisrulz/android-examples/trunk/AccessingGoogleDrive
-
Done! You should have the specific example all checked out!
This project was created by Nishant Srivastava but hopefully developed and maintained by many others. See the the list of contributors here.
If you appreciate my work, consider buying me a cup of ☕ to keep me recharged 🤘 [PayPal]