• Tab_Layout_|_TabBar_-_Android_Example

    Tab Layout | TabBar - Android Example  Tab Layout | TabBar - Android Example

    In this example creating a tab layout to show different screen for each tab.
    Creating three tabs and setting different images and screens for each tab.

     

    - To Create Tab and Tab change listner Extend TabActivity and implements OnTabChangeListener.
    - Create tabhost object to create tabs.
    - Create three tabs name FOOD , GAME , SPORT and set background images.
    - Create three activities add these tabs.
    - Add Tabs to tabhost.

    Read More
  • Table_Layout_-_Android_Example

    Table Layout - Android Example  Table Layout - Android Example

    In this example creating  a basic layout then a login screen.

    In Android, TableLayout let you arranges components in rows and columns, just like the standard table layout in HTML, <tr> and <td>.

    In this tutorial, we show you how to use TableLayout to arrange button, textview and edittext in rows and columns format, and also demonstrates the use of “android:layout_span” to span view in 2 cells, and “android:layout_column” to display the view in specified column.

    Read More
  • Relative_Layout_Basics_-_Android_Example

    Relative Layout Basics - Android Example  Relative Layout Basics - Android Example

    In this example we learn how to create a RELATIVE LAYOUT and how it will adjust components.

    1.    Creating a Login screen.

    The RelativeLayout is very flexible. RelativeLayout give flexbility to position your component base on the relative or sibling component’s position. It’s the most flexible layout, that allow you to position your component to display in anywhere you want.

    Read More