Skip to content

Instantly share code, notes, and snippets.

View nawanirakshit's full-sized avatar
🎯
Focusing

Rakshit Nawani nawanirakshit

🎯
Focusing
View GitHub Profile
@nawanirakshit
nawanirakshit / android_change_theme.txt
Created April 5, 2024 09:09
Android: Change app theme
We can select any othe of the following theme mode to work with
1. AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
This mode is used when we need to select the system assigned mode
2. AppCompatDelegate.MODE_NIGHT_NO
This mode is used when we need to set the Light mode in the app
3. AppCompatDelegate.MODE_NIGHT_YES
This mode is used when we need to set the Dark mode in the app
and to set the theme we need to add one of the above in following method
@nawanirakshit
nawanirakshit / BaseRecyclerViewAdapter.kt
Created January 18, 2020 05:57
Base/Core class for Android Developement
/**
* Created By: Rakshit Nawani
* Date: January 18 2020
*
* BaseRecyclerViewAdapter can be used as a base class for all the Recycler View's Adapter, it contains all the basic functions needed by the user, like
* 1. Add Item
* 2. Update Item
* 3. Add List
* 4. Remove Item
* and many more according to needs.