我有这个作为我的布局在我的列表视图中的项目:如何让这个消息泡泡在右侧?
<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" >
<RelativeLayout
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:paddingLeft="7dip" >
<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"
/>
<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" />
<RelativeLayout
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_below="@id/body"
android:id="@+id/picture_layout"
android:orientation="vertical"
>
<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"/>
</RelativeLayout>
<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" />
</RelativeLayout>
我想泡,虽然是在右侧。这是一个消息泡泡的布局。我试图把它放在像iPhone对话这样的右侧。我已经尝试过所有我能想到的关于把它放在右侧而不是左侧的东西。有人看到我的布局有什么问题吗?请帮忙!由于
**编辑**
绿色的泡沫,我在这张照片瞄准的一个
http://getandroidstuff.com/wp-content/uploads/2010/12/GO-SMS-Android.jpg
*改变布局*
这是迄今为止我有什么想法?
我想要灰色的泡沫看起来像白色的人,除了在右侧。
你是什么意思的泡沫? – 0gravity 2012-07-19 23:55:05
像这样http://getandroidstuff.com/wp-content/uploads/2010/12/GO-SMS-Android.jpg ..绿色泡泡就是我想要做到的 – 2012-07-19 23:56:19
他希望iPhone上的对话风格在Android – FabianCook 2012-07-20 00:02:16