Guest User

Untitled

a guest
Jul 17th, 2020
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.29 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    android:id="@+id/comments"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="wrap_content"
  7.    android:orientation="horizontal">
  8.  
  9.     <include layout="@layout/rounded_image" />
  10.  
  11.     <androidx.constraintlayout.widget.ConstraintLayout
  12.        android:layout_width="match_parent"
  13.        android:layout_height="wrap_content"
  14.        android:layout_marginLeft="5dp"
  15.        android:layout_marginStart="5dp"
  16.        android:layout_marginBottom="5dp"
  17.        app:layout_constraintEnd_toEndOf="parent"
  18.        android:background="@drawable/rounded_corners" >
  19.  
  20.         <TextView
  21.            android:id="@+id/commentHeader"
  22.            android:layout_width="wrap_content"
  23.            android:layout_height="wrap_content"
  24.            android:textColor="#000"
  25.            android:textStyle="bold"
  26.            app:layout_constraintStart_toStartOf="parent"
  27.            app:layout_constraintTop_toTopOf="parent" />
  28.  
  29.         <TextView
  30.            android:id="@+id/commentContent"
  31.            android:layout_width="wrap_content"
  32.            android:layout_height="wrap_content"
  33.            android:textColor="#000"
  34.            android:textSize="16sp"
  35.            app:layout_constraintStart_toStartOf="parent"
  36.            app:layout_constraintTop_toBottomOf="@+id/commentHeader"/>
  37.  
  38.         <TextView
  39.            android:id="@+id/date"
  40.            android:layout_width="wrap_content"
  41.            android:layout_height="wrap_content"
  42.            android:textStyle="bold"
  43.            app:layout_constraintStart_toStartOf="parent"
  44.            app:layout_constraintTop_toBottomOf="@+id/commentContent" />
  45.  
  46.         <TextView
  47.            android:id="@+id/like"
  48.            android:layout_width="wrap_content"
  49.            android:layout_height="wrap_content"
  50.            android:textStyle="bold"
  51.            android:layout_marginStart="5dp"
  52.            android:layout_marginLeft="5dp"
  53.            android:text="@string/like"
  54.            app:layout_constraintStart_toEndOf="@+id/date"
  55.            app:layout_constraintTop_toBottomOf="@+id/commentContent" />
  56.     </androidx.constraintlayout.widget.ConstraintLayout>
  57. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment