Advertisement
loredan13

layout

Aug 31st, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.96 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.              xmlns:tools="http://schemas.android.com/tools"
  4.              android:layout_width="match_parent"
  5.              android:layout_height="wrap_content"
  6.              android:layout_marginBottom="4dp"
  7.              android:layout_marginLeft="8dp"
  8.              android:layout_marginRight="8dp"
  9.              android:layout_marginTop="4dp"
  10.              android:orientation="horizontal">
  11.  
  12.     <android.support.v4.widget.Space
  13.        android:layout_width="0dp"
  14.        android:layout_height="0dp"
  15.        android:layout_weight="1"/>
  16.  
  17.     <FrameLayout
  18.        android:layout_width="wrap_content"
  19.        android:layout_height="wrap_content"
  20.        android:layout_marginLeft="48dp"
  21.        android:background="@drawable/chat_bubble_me">
  22.  
  23.         <LinearLayout
  24.            android:layout_width="wrap_content"
  25.            android:layout_height="wrap_content"
  26.            android:orientation="horizontal">
  27.  
  28.             <TextView
  29.                android:id="@+id/message"
  30.                android:layout_width="wrap_content"
  31.                android:layout_height="wrap_content"
  32.                android:layout_marginRight="4dp"
  33.                android:layout_weight="1"
  34.                android:textAppearance="?android:attr/textAppearanceSmall"
  35.                tools:text="Message"/>
  36.  
  37.             <TextView
  38.                android:id="@+id/time"
  39.                android:layout_width="wrap_content"
  40.                android:layout_height="wrap_content"
  41.                android:layout_gravity="bottom"
  42.                android:layout_marginBottom="-2dp"
  43.                android:layout_marginRight="4dp"
  44.                android:layout_weight="0"
  45.                android:textAppearance="?android:attr/textAppearanceSmall"
  46.                android:textSize="12sp"
  47.                tools:text="time"/>
  48.         </LinearLayout>
  49.     </FrameLayout>
  50. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement