Hello Friends, In this tutorial I will be showing how we can create Expandable Material Navigation Drawer. Step 1:- Creating New Project Create a new project in Android Studio from File ⇒ New Project Fill the required information like project name and package name of the project. When it prompts you to select the default activity, select Empty […]
Tag: Androidx
Moving Gradient Background In Android
Hello Friends, In this tutorial I will be showing how we can create Animated Gradient Background. Adding Animated Gradient Background in your app is really easy by using xml and java code. Animated moving gradients background between gradients as animation makes your android app really awesome. Step 1:- Creating New Project Create a new project in […]
How to detect Android Back button press.
Detecting android device hardware back button / soft back button press is very easy. But be careful while overriding the default back button action as it is not suggested to change the android default user experience. Method:- 1 Override the onBackPressed() method and take the action inside this function.