Created
February 7, 2021 21:57
-
-
Save bumie-e/c5596b38a5fdcdb2391b1e2b3f872a56 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"?> | |
<androidx.constraintlayout.widget.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:layout_marginLeft="8dp" | |
android:background="@drawable/circle" | |
app:layout_constraintLeft_toLeftOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<TextView | |
android:id="@+id/text_message_name" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginLeft="8dp" | |
android:layout_marginTop="4dp" | |
android:text="John Doe" | |
android:textSize="12sp" | |
app:layout_constraintLeft_toRightOf="@+id/image_message_profile" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<TextView | |
android:id="@+id/text_message_body" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginLeft="8dp" | |
android:layout_marginTop="4dp" | |
android:background="@drawable/chatbubble" | |
android:maxWidth="240dp" | |
android:padding="8dp" | |
android:text="hi man, how are you?" | |
android:textColor="#ffffff" | |
app:layout_constraintLeft_toRightOf="@+id/image_message_profile" | |
app:layout_constraintTop_toBottomOf="@+id/text_message_name" /> | |
<TextView | |
android:id="@+id/text_message_time" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginLeft="4dp" | |
android:text="11:40" | |
android:textSize="10sp" | |
app:layout_constraintBottom_toBottomOf="@+id/text_message_body" | |
app:layout_constraintLeft_toRightOf="@+id/text_message_body" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment