Skip to content

Commit

Permalink
位置消息文字适配
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyanan committed Sep 30, 2017
1 parent 74ed4a2 commit 9ec4c22
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
14 changes: 7 additions & 7 deletions chatapp/src/main/res/layout/jmui_chat_item_receive_location.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@
android:background="@drawable/receive_msg_normal"
android:orientation="vertical"
android:paddingBottom="3dp"
android:paddingRight="3dp"
android:paddingLeft="9dp">

android:paddingLeft="9dp"
android:paddingRight="3dp">


<ImageView
Expand All @@ -47,24 +46,25 @@
android:src="@drawable/jmui_location_default"/>

<View
android:visibility="gone"
android:id="@+id/location_view"
android:layout_width="163dp"
android:layout_height="30dp"
android:layout_gravity="bottom"
android:alpha="0.6"
android:background="#000000"/>
android:background="#000000"
android:visibility="gone"/>

<TextView
android:layout_marginBottom="6dp"
android:id="@+id/jmui_loc_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:ellipsize="end"
android:ems="10"
android:gravity="center"
android:maxLines="2"
android:textColor="@color/white"
android:textSize="14sp"/>
android:textSize="12sp"/>
</FrameLayout>


Expand Down
14 changes: 8 additions & 6 deletions chatapp/src/main/res/layout/jmui_chat_item_send_location.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,24 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:layout_marginBottom="6dp"
android:ellipsize="end"
android:ems="10"
android:gravity="center"
android:maxLines="2"
android:textColor="@color/white"
android:textSize="14sp"/>
android:textSize="12sp"/>

</FrameLayout>

<TextView
android:text="未读消息"
android:layout_centerVertical="true"
android:id="@+id/text_receipt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginRight="7dp"
android:textSize="12sp"
android:layout_toLeftOf="@id/jmui_layout_location"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:text="未读消息"
android:textSize="12sp"/>

<ImageButton
android:id="@+id/jmui_fail_resend_ib"
Expand Down

0 comments on commit 9ec4c22

Please sign in to comment.