Note that there are some explanatory texts on larger screens.

plurals
  1. POLarge text in list view
    text
    copied!<p>hi i want to create a list view contain an image and two text view.i create them and checked they working fine when text is small say hello world but when i have large text only one textview is visible.i know its because of linearlayout as the text size increases other textview going to downside so not visible can any one please suggest a layout or guideline tha how to handle large text or vary listview sizes so that when text is arge size of listitem increases and when the size is small size decreases or remain constant. here is my layout of listview</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;ImageView android:layout_width="50px" android:layout_height="wrap_content" android:src="@drawable/s3" /&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="100px" android:layout_height="fill_parent"&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Hello worldjjkljllk;lk;lkklkljkjgfytedtdgihfddgihjghvssetrtyugufgfddfdsafdfugvbcfttyugbhgsdtrrtyvhv"/&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Hello world"/&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Hello world"/&gt; &lt;/LinearLayout&gt; &lt;CheckBox android:layout_width="30px" android:layout_height="wrap_content" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>and here is base adapter class.</p> <pre><code>class base extends BaseAdapter{ @Override public int getCount() { // TODO Auto-generated method stub return 5; } @Override public Object getItem(int arg0) { // TODO Auto-generated method stub return arg0; } @Override public long getItemId(int arg0) { // TODO Auto-generated method stub return arg0; } @Override public View getView(int arg0, View arg1, ViewGroup arg2) { // TODO Auto-generated method stub View v; LayoutInflater li=getLayoutInflater(); v=li.inflate(R.layout.listitem, null); return v; } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload