Note that there are some explanatory texts on larger screens.

plurals
  1. POList view with image
    primarykey
    data
    text
    <p>My problem is to find best view configuration for my application that have a record in the listView.</p> <p><img src="https://i.stack.imgur.com/ZNRQs.jpg" alt="enter image description here"></p> <p>My main.xml has this content:</p> <pre><code>&lt;LinearLayout android:id="@+id/tabName" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/textConnection" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:paddingLeft="5dp" android:paddingRight="5dp" android:minHeight="20dp" /&gt; &lt;TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/textTitle" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:paddingLeft="10dp" android:paddingRight="10dp" android:minHeight="40dp" /&gt; &lt;ListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/listRecord" android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;/ListView&gt; &lt;/LinearLayout&gt; </code></pre> <p>And the my actual row of ListView is:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;ImageView android:id="@+id/imageBox" android:layout_width="48px" android:layout_marginTop="13dp" android:layout_height="48px"&gt; &lt;/ImageView&gt; &lt;TextView android:id="@+id/longText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_vertical" /&gt; &lt;TextView android:id="@+id/num1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_vertical" /&gt; &lt;TextView android:id="@+id/num2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_vertical" /&gt; &lt;TextView android:id="@+id/num3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_vertical" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>I tried with <code>TableLayout</code> but starting the application report an error in the <code>bindView</code>. Can I write my XML code with only textView? Consider that then I must add the caption of the <code>ListView</code> that have three image above each column with number. Thank's.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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