-
-
Save wirasetiawan29/4f742362928763e1f7b85b4e61c50db5 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"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_height="wrap_content" | |
android:layout_width="match_parent" | |
android:id="@+id/message_container" | |
android:paddingTop="5dp" | |
android:paddingBottom="5dp"> | |
<FrameLayout | |
android:id="@+id/left_arrow" | |
android:layout_width="50dp" | |
android:layout_height="50dp" | |
android:background="@drawable/chat_message_arrow" | |
android:rotation="180" | |
android:layout_marginLeft="2dp"/> | |
<LinearLayout | |
android:layout_height="match_parent" | |
android:layout_width="wrap_content" | |
android:orientation="vertical" | |
android:background="@drawable/chat_message_background" | |
android:id="@+id/message" | |
android:padding="10dp" | |
android:layout_marginLeft="26dp" | |
android:layout_marginRight="26dp"> | |
<TextView android:id="@+id/message_text" | |
android:layout_width="wrap_content" | |
android:layout_height="0dp" | |
android:layout_weight="1" | |
android:textSize="16sp" | |
android:textColor="#FFFFFF" | |
android:textStyle="bold"/> | |
<TextView android:id="@+id/name_text" | |
android:textStyle="normal" | |
android:textColor="#E0E0E0" | |
android:layout_width="wrap_content" | |
android:layout_height="0dp" | |
android:textSize="12sp" | |
android:layout_weight="1" /> | |
<TextView android:id="@+id/time_text" | |
android:textStyle="normal" | |
android:textColor="#E0E0E0" | |
android:layout_width="wrap_content" | |
android:layout_height="0dp" | |
android:textSize="12sp" | |
android:layout_weight="1" /> | |
</LinearLayout> | |
<FrameLayout | |
android:id="@+id/right_arrow" | |
android:layout_width="50dp" | |
android:layout_height="50dp" | |
android:background="@drawable/chat_message_arrow" | |
android:rotation="180" | |
android:layout_alignParentTop="true" | |
android:layout_alignRight="@+id/message" | |
android:layout_alignEnd="@+id/message" | |
android:layout_marginRight="-25dp"/> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment