I want to make my textview multiline.
Image : http://s13.postimg.org/y0q78e1yv/Capture.png
But how can I make my text multiline ?
Which atribut ?
TextView txt_tweet = (TextView) View.inflate(this, R.layout.special_textview, null);
special_textview
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:paddingBottom="5dp"
android:inputType="textMultiLine"
android:scrollHorizontally="false">
</TextView>
You want to show to different texts in the same textview? if so, use two text views like:
Remote android:inputType="textMultiLine", this is an EditText Atribute.
If you just want to use more then one line in the same text view:
If this textview you want to use belongs to a ListView, just use:
It will give you two texts views to work on.