Created
June 4, 2019 18:58
-
-
Save AlexPrestonSB/5c792b97a4a7496dea68e61d9c661050 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"?> | |
<android.support.constraint.ConstraintLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:paddingTop="8dp"> | |
<ImageView | |
android:id="@+id/image_message_profile" | |
android:layout_width="32dp" | |
android:layout_height="32dp" | |
android:background="@drawable/circle" | |
app:layout_constraintTop_toTopOf="parent" | |
android:layout_marginLeft="8dp" | |
app:layout_constraintLeft_toLeftOf="parent" /> | |
<TextView | |
android:id="@+id/text_message_name" | |
android:text="John Doe" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textSize="14sp" | |
app:layout_constraintLeft_toRightOf="@+id/image_message_profile" | |
android:layout_marginLeft="8dp" | |
app:layout_constraintTop_toTopOf="parent" | |
android:layout_marginTop="4dp" /> | |
<TextView | |
android:id="@+id/text_message_body" | |
android:text="hi man, how are you?" | |
android:background="@drawable/rounded_rectangle_gray" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:maxWidth="240dp" | |
android:paddingLeft="12dp" | |
android:paddingRight="12dp" | |
android:paddingTop="6dp" | |
android:paddingBottom="6dp" | |
android:textSize="16sp" | |
android:textColor="#000000" | |
android:layout_marginTop="4dp" | |
app:layout_constraintTop_toBottomOf="@+id/text_message_name" | |
app:layout_constraintLeft_toRightOf="@+id/image_message_profile" | |
android:layout_marginLeft="8dp" /> | |
<TextView | |
android:id="@+id/text_message_time" | |
android:text="11:40" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textSize="10sp" | |
app:layout_constraintLeft_toRightOf="@+id/text_message_body" | |
android:layout_marginLeft="4dp" | |
app:layout_constraintBottom_toBottomOf="@+id/text_message_body" /> | |
</android.support.constraint.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment