Created
October 27, 2016 14:33
-
-
Save jerryOkafor/451a6399a33d80f7718ac16810123b58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<RelativeLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<LinearLayout | |
android:orientation="horizontal" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:padding="3dp" | |
android:gravity="center" | |
android:layout_marginBottom="5dp" | |
android:layout_marginTop="5dp" | |
android:layout_alignParentTop="true" | |
android:layout_centerHorizontal="true" | |
android:background="@drawable/new_date_bg" | |
android:layout_gravity="center_horizontal" | |
android:id="@+id/chat_day_holder" | |
android:visibility="visible" | |
android:elevation="5dp"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textAppearance="?android:attr/textAppearanceSmall" | |
android:text="Small Text" | |
android:textColor="@color/white" | |
android:alpha="0.78" | |
android:id="@+id/chat_day_text" | |
android:textStyle="bold" /> | |
</LinearLayout> | |
<LinearLayout | |
android:orientation="horizontal" | |
android:layout_width="match_parent" | |
android:id="@+id/message_holder" | |
android:layout_height="wrap_content" | |
android:gravity="right" | |
android:layout_below="@+id/chat_day_holder" | |
android:layout_alignParentLeft="true" | |
android:layout_alignParentStart="true" | |
android:layout_marginTop="3dp"> | |
<RelativeLayout | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:id="@+id/message_text_holder" | |
android:layout_marginLeft="5dp" | |
android:layout_marginRight="5dp" | |
android:maxWidth="250dp" | |
android:elevation="5dp"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textAppearance="?android:attr/textAppearanceSmall" | |
android:text="Okafor Jerry Hanks" | |
android:id="@+id/chat_sender" | |
android:layout_alignParentTop="true" | |
android:layout_alignParentLeft="true" | |
android:layout_alignParentStart="true" | |
android:textColor="@color/highlighted_text_material_light" | |
android:paddingLeft="5dp" | |
android:paddingTop="5dp" | |
android:textStyle="bold" | |
android:visibility="visible" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textAppearance="?android:attr/textAppearanceSmall" | |
android:text="@string/sample_text_chat" | |
android:textColor="@color/Black" | |
android:background="@android:color/transparent" | |
android:alpha="0.89" | |
android:maxWidth="290dp" | |
android:minWidth="80dp" | |
android:id="@+id/chat_message" | |
android:layout_below="@+id/chat_sender" | |
android:layout_alignParentLeft="true" | |
android:layout_alignParentStart="true" | |
android:paddingLeft="5dp" | |
android:paddingTop="5dp" | |
android:visibility="visible" | |
android:paddingRight="5dp" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textAppearance="?android:attr/textAppearanceSmall" | |
android:text="21:30" | |
android:id="@+id/time_stamp_tv" | |
android:paddingRight="5dp" | |
android:paddingBottom="5dp" | |
android:drawableRight="@drawable/ic_done_all" | |
android:drawablePadding="5dp" | |
android:drawableTint="@color/colorPrimary" | |
android:textSize="10dp" | |
android:gravity="left|bottom" | |
android:textStyle="bold" | |
android:layout_marginTop="5dp" | |
android:layout_below="@+id/chat_message" | |
android:layout_alignRight="@+id/chat_message" | |
android:layout_alignEnd="@+id/chat_message" /> | |
</RelativeLayout> | |
</LinearLayout> | |
</RelativeLayout> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment