Code

Learn free code

Show Snackbar on button click Android Studio

In this tutorial we will display a snackbar on Button click. To display snack bar we have to include design library into build.gradle(app). Step 1: Create a new project OR Open your project Step 2: Add design library in build.gradle(Module: app) in dependencies section. add this design libraryimplementation ‘com.android.support:design:27.0.2’ Step 3: Snackbar code activity_main.xml MainActivity.java Note: in the following […]

Show Snackbar on button click Android Studio Read More »

Adding Floating Action Button Kotlin

The Floating Action Button (FAB) is a circular button that triggers primary action in your app’s UI. This tutorial shows you how to add the FAB to your layout, customize some of its appearance, and respond to the button taps. We will show Snackbar on FAB click.We will use Kotlin and Android Studio.Minimum API: Android 2.1 is API level 7 Step 1: Create a new project OR Open your

Adding Floating Action Button Kotlin Read More »

Downloading File From Android WebView

In this tutorial we will handle downloading files from WebView, we will also need Write_External_Storage permission to download files. ✓ Run-time Permission “WRITE_EXTERNAL_STORAGE” on devices >=Marshmallow. ✓ Download any file.✓ Show download message/progress in notification. Step 1: Create a new project OR Open your project Step 2: Code AndroidManifest.xml activity_main.xml MainActivity.java Step 3:Output

Downloading File From Android WebView Read More »