Advertisement
Guest User

contraintLayout

a guest
Aug 19th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.33 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:app="http://schemas.android.com/apk/res-auto"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="60dp"
  7.    android:orientation="vertical">
  8.  
  9.  
  10.     <TextView
  11.        android:id="@+id/stopSchedulesItemTransportNumber"
  12.        android:layout_width="40dp"
  13.        android:layout_height="40dp"
  14.        android:layout_marginBottom="10dp"
  15.        android:layout_marginEnd="16dp"
  16.        android:layout_marginLeft="16dp"
  17.        android:layout_marginRight="16dp"
  18.        android:layout_marginStart="16dp"
  19.        android:layout_marginTop="10dp"
  20.        android:background="@color/transportTypeBus"
  21.        android:gravity="center"
  22.        android:text="1a"
  23.        android:textColor="@android:color/white"
  24.        app:layout_constraintBottom_toBottomOf="parent"
  25.        app:layout_constraintLeft_toLeftOf="parent"
  26.        app:layout_constraintRight_toLeftOf="@+id/stopSchedulesItemRouteName"
  27.        app:layout_constraintTop_toTopOf="parent"
  28.        app:layout_constraintDimensionRatio="1:1"/>
  29.  
  30.     <TextView
  31.        android:id="@+id/stopSchedulesItemRouteName"
  32.        android:layout_width="wrap_content"
  33.        android:layout_height="wrap_content"
  34.        android:layout_marginBottom="16dp"
  35.        android:layout_marginTop="16dp"
  36.        android:text="Route stop1 - Route stop2"
  37.        app:layout_constraintBottom_toBottomOf="parent"
  38.        app:layout_constraintLeft_toRightOf="@+id/stopSchedulesItemTransportNumber"
  39.        app:layout_constraintRight_toLeftOf="@+id/stopSchedulesItemNearestTime"
  40.        app:layout_constraintTop_toTopOf="parent" />
  41.  
  42.     <TextView
  43.        android:id="@+id/stopSchedulesItemNearestTime"
  44.        android:layout_width="wrap_content"
  45.        android:layout_height="wrap_content"
  46.        android:layout_marginBottom="16dp"
  47.        android:layout_marginEnd="16dp"
  48.        android:layout_marginRight="16dp"
  49.        android:layout_marginTop="16dp"
  50.        android:text="12:10"
  51.        android:textColor="@color/transportTypeBus"
  52.        app:layout_constraintBottom_toBottomOf="parent"
  53.        app:layout_constraintRight_toRightOf="parent"
  54.        app:layout_constraintTop_toTopOf="parent" />
  55. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement