Created
January 5, 2018 21:01
-
-
Save alkjez/fcf88ea88eae3e66c327595eccb90841 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="12sp" | |
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_orange" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:maxWidth="240dp" | |
android:padding="8dp" | |
android:textColor="#ffffff" | |
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> |
@tyty9798123 You've probably figured it out by now, but that is just a reference to what they are using as the profile image. You can replace it with whatever you want the image to be.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i get a error at 15 line
android:background="@drawable/circle"