HelloFragment
Project Structure fragment_one.xml fragment_two.xml FragmentOne.java FragmentTwo.java activity_main.xml MainActivity.java Running Program
As described in Android website, EditText is a thin veneer over TextView that configures itself to be editable. We use edit text when we want to…
View More EditText WidgetSimple and plain buttons can do the job triggering some events in Android. But if you want to add more flavor and design to your…
View More Custom Buttons widgetWhen you want the user to set a date, you need a date picker. To do this, a DatePicker class is used for this task.…
View More Date Picker WidgetWe already know about the layouts and how components can be arranged in a view. Now, we need to know about widgets. We use widgets…
View More WidgetsThis example shows a ListView displaying a list of countries. We start by creating a new Android project and defining our layout file that will…
View More ListView: Sample Program 1ListView is a view group that displays a list of scrollable items. The list items are automatically inserted to the list using an Adapter that…
View More ListViewHelloTableLayout2: A Table Layout showing columns HelloTableLayout2 Output
View More TableLayout Example showing columnsTable Layout This is a layout that arranges its children into rows and columns. A TableLayout consists of a number of TableRow objects, each defining…
View More Table Layout