What is android equivalent to table view on iPhone?

Can someone tell me what an equivalent component is in an Android view, like a spreadsheet on an iPhone, for example?

How to implement a table view component, for example, on iPhone in android?

Give an example.

+3
source share
2 answers

You can use table layout

TableLayout groups view rows and columns. An element is used to indicate a row in a 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>

See the links below for more information.

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

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

+1
source

TableView iPhone ListView Android, .

GitHub uitableview Android: https://github.com/lorensiuswlt/android-uitableview

, .

+1

Source: https://habr.com/ru/post/1772053/


All Articles