What is Widgets

A widgets is a UI element that is used to designed the GUI of the anddroid app.

There are a lots of widgets in android. They are as follows.

TextView:.

It is used to display the text on to the screen.For example Enter the UserName or Enter the Password in android .We are basically use the TextView.

       <TextView
android:id="@+id/textView"
android:layout_height="wrap_content"
android:layout_height="wrap_content"
android:text="Enter the UserName"/>

Button:.

It is used to perform some action after clicking like if you want to add two number than you will use the Button widgets.

       <Button
android:id="@+id/button"
android:layout_height="wrap_content"
android:layout_height="wrap_content"
android:text="Add"/>

ListView:.

Android ListView is used to display the the list of items in vertical manner with scrollbar..

       <ListView
        android:id="@+id/listView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:layout_alignParentTop="true"
        android:layout_marginTop="72dp" />       

widgets

what is widgets for video here

Smiley face                     Smiley face