Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.56 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.  
  8.  
  9.     <TextView
  10.        android:id="@+id/stopSchedulesItemTransportNumber"
  11.        android:layout_width="40dp"
  12.        android:layout_height="40dp"
  13.        android:background="@color/transportTypeBus"
  14.        android:gravity="center"
  15.        android:text="1a"
  16.        android:textColor="@android:color/white"
  17.        android:layout_marginLeft="16dp"
  18.        android:layout_marginRight="16dp"
  19.        app:layout_constraintLeft_toLeftOf="parent"
  20.        app:layout_constraintBottom_toBottomOf="parent"
  21.        app:layout_constraintTop_toTopOf="parent"
  22.         />
  23.  
  24.     <android.support.constraint.Barrier
  25.        android:layout_width="wrap_content"
  26.        android:layout_height="wrap_content"
  27.        android:id="@+id/stopSchedulesItemBarrier1"
  28.        app:barrierDirection="end"
  29.        app:constraint_referenced_ids="stopSchedulesItemTransportNumber"
  30.        />
  31.  
  32.     <TextView
  33.        android:id="@+id/stopSchedulesItemRouteName"
  34.        android:layout_width="0dp"
  35.        android:layout_height="wrap_content"
  36.        android:text="Route stop1 - Route stop2"
  37.        android:layout_marginLeft="16dp"
  38.        app:layout_constraintLeft_toRightOf="@id/stopSchedulesItemBarrier1"
  39.        app:layout_constraintRight_toLeftOf="@+id/stopSchedulesItemBarrier2"
  40.        app:layout_constraintBottom_toBottomOf="parent"
  41.        app:layout_constraintTop_toTopOf="parent"
  42.        />
  43.  
  44.     <android.support.constraint.Barrier
  45.        android:layout_width="wrap_content"
  46.        android:layout_height="wrap_content"
  47.        android:id="@+id/stopSchedulesItemBarrier2"
  48.        app:barrierDirection="end"
  49.        app:constraint_referenced_ids="stopSchedulesItemRouteName"
  50.        />
  51.  
  52.     <TextView
  53.        android:id="@+id/stopSchedulesItemNearestTime"
  54.        android:layout_width="wrap_content"
  55.        android:layout_height="wrap_content"
  56.        android:text="12:10"
  57.        android:textColor="@color/transportTypeBus"
  58.        android:layout_marginLeft="16dp"
  59.        android:layout_marginRight="16dp"
  60.        app:layout_constraintBottom_toBottomOf="parent"
  61.        app:layout_constraintTop_toTopOf="parent"
  62.        app:layout_constraintLeft_toLeftOf="@id/stopSchedulesItemBarrier2"
  63.        app:layout_constraintRight_toRightOf="parent"
  64.        />
  65. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement