Created
August 3, 2019 07:51
-
-
Save elktros/f70f8fe56d7f40ca68a2d3c1324f87e1 to your computer and use it in GitHub Desktop.
Quadruped_Robot_BotMessageLayout
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_width="match_parent" | |
android:layout_height="wrap_content" | |
android:paddingVertical="10dp" | |
android:paddingLeft="15dp" | |
android:paddingRight="60dp" | |
android:clipToPadding="false"> | |
<View | |
android:id="@+id/avatar" | |
android:layout_alignParentLeft="true" | |
android:scaleType="centerInside" | |
android:background="@drawable/circle" | |
android:layout_width="34dp" | |
android:layout_height="34dp" /> | |
<TextView | |
android:id="@+id/name" | |
android:layout_marginLeft="15dp" | |
android:layout_toRightOf="@+id/avatar" | |
android:layout_alignTop="@+id/avatar" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:paddingBottom="4dp" | |
android:text="Quadruped"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:id="@+id/message_body" | |
android:layout_below="@+id/name" | |
android:layout_alignLeft="@+id/name" | |
android:background="@drawable/their_message" | |
android:paddingVertical="12dp" | |
android:paddingHorizontal="16dp" | |
android:elevation="2dp" | |
android:textSize="18dp" | |
android:text=" This is a sample bot response." | |
/> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment