Code

Learn free code

Android Custom Toast Example – Android Studio

In this tutorial we will learn how to display Custom Toast(with Image, Text) on a Button click using Android Studio. We will create a layout resource file for custom Toast. Following is the pictorial representation of using Custom Toast notification in android applications. Android Custom Toast Example Diagram Step 1: Create a new project OR Open your project  Step 2: Place an […]

Android Custom Toast Example – Android Studio Read More »

Android Splash Screen

In this tutorial i’ll show you how to create a splash screen for your android app using android studio. We need at least two activities one is splash screen and second is some other activity that will display after splash screen. Step 1: Create a new project OR Open your project Step 2: Create New Activity File>New>Activity>EmptyActivity Step 3:

Android Splash Screen Read More »

Options Menu Fragment – Android Studio – Kotlin

Add setHasOptionsMenu(true) in the onCreate() method to invoke the menu items in your Fragment class. You don’t need to override onCreateOptionsMenu in your Fragment class again.  Menu items can be changed (Add/remove) by overriding onPrepareOptionsMenu method available in Fragment. This will cover the followings: Use Options Menu / Actionbar menu Use Options Menu in fragments Add items with icons in options menu Show

Options Menu Fragment – Android Studio – Kotlin Read More »

Custom ListView with SearchView on ActionBar/Toolbar & onItemClick listener – Android Studio

This Tutorial will cover: ListView(Image, Title, Description) Filterable ListView SearchView on ActionBar/Toolbar to search ListView items Intent to go to NewActivity onItemClick BackButton in ActionBar of NewActivity Step 1: Create a new project OR Open your project Step 2: Create New Activity File>New>Activity>EmptyActivity Step 3: Create menu.xml under res>menu folder, to search item. Step 4: Create model.xml in res>layout folder,to design row Step 5: Place some images in res>drawable folder Step

Custom ListView with SearchView on ActionBar/Toolbar & onItemClick listener – Android Studio Read More »