Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get this message bubble to be on the right side?
    primarykey
    data
    text
    <p>I have this as my layout for an item in my listview:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/msgbox_self_default" &gt; &lt;RelativeLayout android:id="@+id/layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:paddingLeft="7dip" &gt; &lt;ImageView android:id="@+id/pending" android:layout_height="fill_parent" android:layout_width="wrap_content" android:layout_marginLeft="2dip" android:src="@drawable/ic_sms_mms_pending" android:visibility="gone" /&gt; &lt;TextView android:id="@+id/body" android:text="@+id/body" android:singleLine="false" android:paddingLeft="@dimen/message_item_text_padding_left_right" android:paddingRight="@dimen/message_item_text_padding_left_right" android:paddingTop="@dimen/message_item_text_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:linksClickable="false" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="#ff000000" android:textSize="16sp" android:layout_alignParentRight="true" /&gt; &lt;RelativeLayout android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_below="@id/body" android:id="@+id/picture_layout" android:orientation="vertical" &gt; &lt;ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/picture" android:visibility="gone" android:maxWidth="178dip" android:maxHeight="178dip" android:layout_alignParentRight="true" android:adjustViewBounds="true" android:background="@android:drawable/picture_frame" android:layout_centerHorizontal="true"/&gt; &lt;/RelativeLayout&gt; &lt;TextView android:paddingRight="@dimen/message_item_text_padding_left_right" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/picture_layout" android:paddingLeft="3dip" android:textAppearance="?android:attr/textAppearanceSmall" android:id="@+id/date" android:text="@+id/date" android:singleLine="true" android:layout_alignParentRight="true" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p></p> <p>I want the bubble though to be on the right side. This is a layout for a message bubble. I am trying to put it on the right side like the iPhone conversations. I have tried every possibly thing I can think of relating to putting it on the right side instead of the left. Does anyone see anything wrong with my layout? Please help! Thanks</p> <p>** EDIT **</p> <p>The green bubble is the one that I aiming for in this picture</p> <p><a href="http://getandroidstuff.com/wp-content/uploads/2010/12/GO-SMS-Android.jpg" rel="nofollow noreferrer">http://getandroidstuff.com/wp-content/uploads/2010/12/GO-SMS-Android.jpg</a></p> <p><strong>* CHANGED LAYOUT *</strong></p> <p>this is so far what I have.. anymore ideas?</p> <p><img src="https://i.stack.imgur.com/JI3gI.png" alt="Example"></p> <p>I want the grey bubble to look like the white one except on the right side.</p>
    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.
    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