Hi all!
I have horizontal layout contains 2 TextView items. The left width is
limited by 10 characters. How can I store strings longer than 10
characters in new lines of this TextView? I need actually fixed width
but possibility to grow heigh.
Now the text "next line" (see xml) can't be visible.
See following xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:background="@drawable/background_result_2">
<TextView
android:layout_height="fill_parent"
android:id="@+id/txtLeft"
android:gravity="right|center_vertical"
android:paddingRight="10dip"
android:minWidth="70dip"
android:textColor="@color/white"
android:paddingLeft="5dip"
android:textSize="15dip"
android:layout_width="wrap_content"
android:singleLine="false"
android:text="0123456789next line"/>
<TextView
android:id="@+id/txtRight"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:textSize="15dip"
android:paddingLeft="10dip"
android:gravity="left|center_vertical"
android:text="result"
android:textColor="@color/white"/>
</LinearLayout>
Thanks,
Evgeny
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en