I’m using the following XML layout:
<?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="vertical" >
<!--Multi Line TextView -->
<TextView
android:id="@+id/incomingmsg"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:autoLink="web"
android:inputType="textMultiLine"
android:minLines="5"
android:scrollbars="vertical"
android:singleLine="false"
android:textIsSelectable="true" >
</TextView>
<!--Some more Views Here -->
</LinearLayout>
If the TextView has too much data, then the Views below are not appearing on the screen.I want the Views to be displayed immediately below the TextView based on the size of the text.
According to your XML, your views are set to be above the TextView (the multi-lined one), and not below the TextView?
Also, there is a max_height, and max_lines attribute you can add or set. This may help.