Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.54 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    xmlns:app="http://schemas.android.com/apk/res-auto"
  6.    android:background="#000000">
  7.  
  8.     <ImageView
  9.        android:id="@+id/imgTest"
  10.        android:layout_width="50dp"
  11.        android:layout_height="50dp"
  12.        android:background="#C21717"
  13.        app:layout_constraintTop_toTopOf="parent"
  14.        app:layout_constraintStart_toStartOf="parent"
  15.        app:layout_constraintEnd_toEndOf="parent"
  16.        android:layout_marginTop="30dp"/>
  17.  
  18.     <TextView
  19.        android:id="@+id/tvLabel"
  20.        android:layout_width="wrap_content"
  21.        android:layout_height="wrap_content"
  22.        android:textSize="16sp"
  23.        android:textColor="#ffffff"
  24.        android:text="Nguyen Van Thuc"
  25.        app:layout_constraintTop_toBottomOf="@+id/imgTest"
  26.        app:layout_constraintStart_toStartOf="parent"
  27.        app:layout_constraintEnd_toEndOf="parent"
  28.        android:layout_marginTop="10dp"/>
  29.    
  30.     <LinearLayout
  31.        android:layout_width="0dp"
  32.        android:layout_height="wrap_content"
  33.        app:layout_constraintTop_toBottomOf="@+id/tvLabel"
  34.        app:layout_constraintStart_toStartOf="parent"
  35.        app:layout_constraintEnd_toEndOf="parent"
  36.        android:layout_marginTop="30dp"
  37.        android:layout_marginStart="30dp"
  38.        android:layout_marginEnd="30dp"
  39.        android:orientation="vertical">
  40.         <LinearLayout
  41.            android:layout_width="match_parent"
  42.            android:layout_height="wrap_content"
  43.            android:orientation="horizontal">
  44.             <TextView
  45.                android:text="Text 1"
  46.                android:layout_width="0dp"
  47.                android:layout_height="wrap_content"
  48.                android:layout_weight="1"/>
  49.             <TextView
  50.                android:text="Detail sdfsdfs sdfsdfsd dsfsdfs sdfsdfs sdfsdfsd sdfsdfsd sdfsd "
  51.                android:layout_width="0dp"
  52.                android:layout_height="wrap_content"
  53.                android:layout_weight="3"/>
  54.         </LinearLayout>
  55.  
  56.         <LinearLayout
  57.            android:layout_width="match_parent"
  58.            android:layout_height="wrap_content"
  59.            android:orientation="horizontal">
  60.             <TextView
  61.                android:text="Text 1"
  62.                android:layout_width="0dp"
  63.                android:layout_height="wrap_content"
  64.                android:layout_weight="1"/>
  65.             <TextView
  66.                android:text="Detail sdfsdfs sdfsdfsd dfsd sdfsd "
  67.                android:layout_width="0dp"
  68.                android:layout_height="wrap_content"
  69.                android:layout_weight="3"/>
  70.         </LinearLayout>
  71.  
  72.         <LinearLayout
  73.            android:layout_width="match_parent"
  74.            android:layout_height="wrap_content"
  75.            android:orientation="horizontal">
  76.             <TextView
  77.                android:text="Text 1"
  78.                android:layout_width="0dp"
  79.                android:layout_height="wrap_content"
  80.                android:layout_weight="1"/>
  81.             <TextView
  82.                android:text="Detail sdfsdfs sdfsdfsd dfsd sdfsd "
  83.                android:layout_width="0dp"
  84.                android:layout_height="wrap_content"
  85.                android:layout_weight="3"/>
  86.         </LinearLayout>
  87.        
  88.        
  89.     </LinearLayout>
  90.  
  91. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement