program

Android Edittext Inputtype

Edittext inputtype is used to set your input type for edittext.

Ex:- You can set your edittext inputtype as 'Phone'. So that user can able to type only numbers.

Android RelativeLayout

RelativeLayout:

What are the uses of Relative layout?

  • By adding views to relative layout, we can set the relative positions of views with respect to each other.
  • For example if we add three views like imageview, textview and edittext we can specify the position of textview, that is whether it should be below (or any other direction) to edittext or imageview.
  • android:layout_above=”@+id/idname” (Here ”@+id/idname” is the id name of th

Android TableLayout

TableLayout:

By seeing the word ‘Table’ itself we know that Table Layout is used to show views in a table format with rows & columns.

How to add rows in a table layout?

  • TableRow is used to add rows in a table layout.
  • TableRow is a layout. It will arrange its children horizontally.
Syndicate content