Program: ListView with custom Layout & Array from String.xml
Activity_main.xml String.xml Custom.xml MainActivity.java
ListView with predefined Layout & Array from Java
ListView is a view group that displays a list of scrollable items. The list items are automatically inserted to the list using an Adapter that pulls content from a source…
Adapters & Views With Adapters
Adapter views are so ubiquitous that you’d have a hard time finding a popular Android app that doesn’t use them. The name might sound unfamiliar, but if you think you’ve…
Text Fields
A EditText is an overlay over TextView that configures itself to be editable. It is the predefined subclass of TextView that includes rich editing capabilities. Every text field expects a…
Radio Button & Radio Group
In Android, you can use “android.widget.RadioButton” class to render radio button, and those radio buttons are usually grouped by android.widget.RadioGroup. If RadioButtons are in group, when one RadioButton within a…
Rating bar
Android RatingBar can be used to get the rating from the user. The Rating returns a floating-point number. It may be 2.0, 3.5, 4.0 etc. Android RatingBar displays the rating…
Toggle button
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…