Android Retrofit Example

Retrofit Retrofit is a REST Client for Android and Java developed by Square. It makes it relatively easy to retrieve and upload JSON (or other structured data) via a REST based webservice. In Retrofit you configure which converter is used for the data serialization. Typically for JSON you use GSon, but you can add custom …

Android Retrofit ExampleRead More »

Android Working With Tabs

Tabs Tabs make it easy to explore and switch between different views. TabLayout TabLayout provides a horizontal layout to display tabs. ViewPager Integration If you’re using a ViewPager together with this layout, you can call setupWithViewPager(ViewPager) to link the two together. This layout will be automatically populated from the PagerAdapter’s page titles. Get GITHUB code from Here. Creating New Project …

Android Working With TabsRead 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 ExampleRead 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 ExampleRead 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 ExampleRead 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 MultiAutoCompleteTextviewRead 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 ExampleRead 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 ExampleRead 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 KotlinRead More »

%d bloggers like this: