Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to Display Text and Image in Paragraph
    primarykey
    data
    text
    <p>I am trying to display Image And Text in this format, but i am unable to do it.<img src="https://i.stack.imgur.com/WEZK8.png" alt="enter image description here"> </p> <p>Is this possible? if so, Can anybody please help me in doing this. Thanks in advance..</p> <p>this is my XML for the list view row..</p> <pre><code>&lt;RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;ImageView android:id="@+id/myImageView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_launcher" /&gt; &lt;TextView android:id="@+id/myImageViewText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@+id/myImageView" android:layout_alignTop="@+id/myImageView" android:layout_margin="1dp" android:gravity="center" android:text="Hello" android:textColor="#000000" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p>here is getView method: </p> <pre><code> @Override public View getView(final int position, View convertView, ViewGroup parent) { View v = convertView; if (v == null) { LayoutInflater vi = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = vi.inflate(R.layout.alerts_row, null); } DbNewsItem o = items.get(position); if (o != null) { TextView desc = (TextView) v.findViewById(R.id.alert_details); ImageView iv = (ImageView) v.findViewById(R.id.alert_image); desc.setText(o.getDesc()); imageLoader.displayImage(img_url, iv, options); } return view; } </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
 

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