tags:

views:

55

answers:

2

can anybody tell what is the equivalent component in android like table view in iphone?

How to implement table view component like iphone in android?

give example

Thanks

A: 

You can use table layout

The TableLayout groups views into rows and columns. You use the element to designate a row in the table.

<?xml version="1.0" encoding="utf-8"?>
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent" 
android:layout_width="fill_parent"
android:background="#000044">
<TableRow>
  <TextView id="@+id/textName" android:text="Name:" android:textColor="#ffffff" />
  <EditText id="@+id/editName"  android:width="240px" />
</TableRow>
<TableRow>
  <TextView id="@+id/textPasswd" android:text="Password:" android:textColor="#ffffff" />
  <EditText id="@+id/editPasswd" android:password="true" />
</TableRow>
<TableRow>
  <Button id="@+id/buttonSignIn" android:text="Sign In" />
</TableRow>
</TableLayout>

Refer below links for further information

http://androiddevel.blogspot.com/2007/12/tablelayout-example.html

http://mobiforge.com/designing/story/understanding-user-interface-android-part-1-layouts

krunal shah
A: 

GridView