ListView - выравнивание текста
Добавлено: 28 июн 2014, 20:47
Просьба помочь с выравниванием текста в ListView.
Как выравнять текст в колонках?
Код ListView
https://play.google.com/store/apps/deta ... gins&hl=ru
Как выравнять текст в колонках?
Код ListView
Код: Выделить всё
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<TextView
android:id="@+id/tv_discount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:textSize="20sp" >
</TextView>
<TextView
android:id="@+id/tv_costDiscount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:textSize="20sp" >
</TextView>
<TextView
android:id="@+id/tv_income"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:textSize="20sp" >
</TextView>
</LinearLayout>