Advertisement
ZazoTazo

Row Design Activity

Jul 31st, 2019
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.30 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:id="@+id/layout"
  6.    android:layout_width="match_parent"
  7.    android:layout_height="wrap_content">
  8.  
  9.     <ImageView
  10.        android:id="@+id/mobileImage"
  11.        android:layout_width="50dp"
  12.        android:layout_height="50dp"
  13.        android:layout_marginBottom="8dp"
  14.        android:layout_marginEnd="8dp"
  15.        android:layout_marginStart="16dp"
  16.        android:layout_marginTop="8dp"
  17.        android:contentDescription="@string/phone_image"
  18.        app:layout_constraintBottom_toBottomOf="parent"
  19.        app:layout_constraintEnd_toStartOf="@+id/mobileName"
  20.        app:layout_constraintHorizontal_bias="0.0"
  21.        app:layout_constraintStart_toStartOf="parent"
  22.        app:layout_constraintTop_toTopOf="parent"
  23.        app:layout_constraintVertical_bias="0.0"
  24.        app:srcCompat="@mipmap/ic_launcher" />
  25.  
  26.     <TextView
  27.        android:id="@+id/mobileName"
  28.        android:layout_width="wrap_content"
  29.        android:layout_height="wrap_content"
  30.        android:layout_marginBottom="8dp"
  31.        android:layout_marginEnd="40dp"
  32.        android:layout_marginTop="8dp"
  33.        android:hint="Text View"
  34.        app:layout_constraintBottom_toBottomOf="parent"
  35.        app:layout_constraintEnd_toEndOf="parent"
  36.        app:layout_constraintTop_toTopOf="parent"
  37.        app:layout_constraintVertical_bias="0.15" />
  38.  
  39.     <TextView
  40.        android:id="@+id/mobilePrice"
  41.        android:layout_width="wrap_content"
  42.        android:layout_height="wrap_content"
  43.        android:layout_marginBottom="16dp"
  44.        android:layout_marginEnd="28dp"
  45.        android:layout_marginStart="8dp"
  46.        android:layout_marginTop="8dp"
  47.        android:hint="Text View"
  48.        app:layout_constraintBottom_toBottomOf="parent"
  49.        app:layout_constraintEnd_toEndOf="parent"
  50.        app:layout_constraintHorizontal_bias="0.946"
  51.        app:layout_constraintStart_toEndOf="@+id/mobileImage"
  52.        app:layout_constraintTop_toBottomOf="@+id/mobileName"
  53.        app:layout_constraintVertical_bias="1.0" />
  54. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement