Android ListFragment Example

ListFragment A fragment that displays a list of items by binding to a data source such as an array or Cursor, and exposes event handlers when the user selects an item. The basic implementation of list fragment is for creating list of items in fragments. Get GITHUB code from Here.   Let’s have a look […]

Android ListFragment Example Read More »

Android Fragment Example

Fragment A fragment is an independent Android component which can be used by an activity. A fragment encapsulates functionality so that it is easier to reuse within activities and layouts. A fragment runs in the context of an activity, but has its own life cycle and typically its own user interface. Android devices exists in a variety

Android Fragment Example Read More »

Android CheckedTextView Example

Checked TextView CheckedTextView is an extension of normal TextView that has a checkbox along with some text. It is mainly used in a ListView where we want to show which item is selected or not. Checkmark attribute is used to provide a graphic or a drawable to CheckedTextView. Download GITHUB code from Here.   Creating New Project 1.

Android CheckedTextView Example Read More »

Android ToggleButton Example

Toggle Buttons A toggle button allows the user to change a setting between two states. You can add a basic toggle button to your layout with the ToggleButton object. Android 4.0 (API level 14) introduces another kind of toggle button called a switch that provides a slider control, which you can add with a Switch object. Android ToggleButton and

Android ToggleButton Example Read More »

Android MultiAutoCompleteTextview

Multi AutoComplete Textview An editable text view, extending AutoCompleteTextView, that can show completion suggestions for the substring of the text where the user is typing instead of necessarily for the entire thing. MultiAutoCompleteTextView can hold multiple string words value at single time. These all values are separated by comma(,). Get GITHUB code from Here.   Creating New Project

Android MultiAutoCompleteTextview Read More »

Android AutoCompleteTextview Example

What is AutoComplete Textview? An editable text view that shows completion suggestions automatically while the user is typing. The list of suggestions is displayed in a drop-down menu from which the user can choose an item to replace the content of the edit box with. Get GITHUB code from Here. Creating New Project In Android Studio, go

Android AutoCompleteTextview Example Read More »

Android StackView Example

What is StackView? The Honeycomb Android version, introduced some interesting widgets with collections. One of them is the Android StackView. StackView helps in arranging items in the form of stacked cards, where the front item can be flipped to bring the item behind it to the front. Here, you will learn to stack images with text

Android StackView Example Read More »

RecyclerView Example In Kotlin

What is RecyclerView? The RecyclerView widget is a more advanced and flexible version of ListView. This widget is a container for displaying large data sets that can be scrolled very efficiently by maintaining a limited number of views. Here I would demonstrate you a working example of RecyclerView, with some basic functionality. The RecyclerView we

RecyclerView Example In Kotlin Read More »

Android RecyclerView OnItemClickListener Example

If you’ve used a RecyclerView, you may know that they don’t have a setOnItemClickListener as ListView had, so we have to create our own way to do it. There are many ways to achieve this, but I will show you the way I usually do it. My mechanism consists of passing the listener as a parameter to the constructor

Android RecyclerView OnItemClickListener Example Read More »

Android RecyclerView Example

RecyclerView The RecyclerView widget is a more advanced and flexible version of ListView. This widget is a container for displaying large data sets that can be scrolled very efficiently by maintaining a limited number of views. Here I would demonstrate you a working example of RecyclerView, with some basic functionality. The RecyclerView we are going to design contains

Android RecyclerView Example Read More »