Now the width of each row is changing depending on the size of the text. But I would like a fixed size for each column like excel. What should be changed? It shouldn't be match_parent since the parent has very large width..
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/text_margin"
android:textAppearance="?attr/textAppearanceListItem" />
<TextView
android:id="@+id/email"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/text_margin"
android:textAppearance="?attr/textAppearanceListItem" />
<TextView
android:id="@+id/short_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/text_margin"
android:textAppearance="?attr/textAppearanceListItem" />
</LinearLayout>
EDIT
Current edition it shows something like
Chris chris@gmail.com R
Apostole apostole@gmail.com -
But what I want is
Chris chris@gmail.com R
Apostole apostole@gmail.com -
I tried @Priyank Prajapati 's version but it still gives the former layout