Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.95 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <android.support.constraint.ConstraintLayout
  4.    xmlns:android="http://schemas.android.com/apk/res/android"
  5.    xmlns:app="http://schemas.android.com/apk/res-auto"
  6.    xmlns:tools="http://schemas.android.com/tools"
  7.    android:id="@+id/placeDetailsLayout"
  8.    android:layout_width="match_parent"
  9.    android:layout_height="wrap_content"
  10.    android:background="@android:color/transparent"
  11.    android:visibility="gone"
  12.    app:behavior_hideable="true"
  13.    app:behavior_peekHeight="56dp"
  14.    app:layout_behavior="@string/bottom_sheet_behavior"
  15.    tools:visibility="visible">
  16.  
  17.     <View
  18.        android:id="@+id/shadow"
  19.        android:layout_width="match_parent"
  20.        android:layout_height="8dp"
  21.        android:background="@drawable/top_shadow" />
  22.  
  23.     <android.support.constraint.ConstraintLayout
  24.        android:layout_width="match_parent"
  25.        android:layout_height="wrap_content"
  26.        android:background="@color/white"
  27.        app:layout_constraintTop_toBottomOf="@id/shadow">
  28.  
  29.         <android.support.v7.widget.AppCompatTextView
  30.            android:id="@+id/placeName"
  31.            android:layout_width="match_parent"
  32.            android:layout_height="wrap_content"
  33.            android:paddingBottom="@dimen/vt_space_medium"
  34.            android:paddingTop="@dimen/vt_space_medium"
  35.            tools:text="Brainstation23" />
  36.  
  37.         <android.support.v7.widget.AppCompatTextView
  38.            android:id="@+id/placeAddress"
  39.            android:layout_width="match_parent"
  40.            android:layout_height="wrap_content"
  41.            android:textColor="@color/secondaryText"
  42.            app:layout_constraintTop_toBottomOf="@id/placeName"
  43.            tools:text="Address" />
  44.  
  45.         <android.support.v7.widget.AppCompatTextView
  46.            android:id="@+id/phoneNumber"
  47.            android:layout_width="match_parent"
  48.            android:layout_height="wrap_content"
  49.            android:textColor="@color/secondaryText"
  50.            app:layout_constraintTop_toBottomOf="@id/placeAddress" />
  51.  
  52.  
  53.         <android.support.v7.widget.AppCompatTextView
  54.            android:id="@+id/website"
  55.            android:layout_width="match_parent"
  56.            android:layout_height="wrap_content"
  57.            android:textColor="@color/secondaryText"
  58.            app:layout_constraintTop_toBottomOf="@id/phoneNumber" />
  59.  
  60.         <android.support.v7.widget.AppCompatButton
  61.            android:id="@+id/close"
  62.            android:layout_width="match_parent"
  63.            android:layout_height="wrap_content"
  64.            android:layout_margin="@dimen/vt_space"
  65.            android:background="@android:drawable/btn_default"
  66.            android:text="Close"
  67.            android:textColor="@color/white"
  68.            app:backgroundTint="@color/colorPrimary"
  69.            app:layout_constraintTop_toBottomOf="@id/website" />
  70.  
  71.     </android.support.constraint.ConstraintLayout>
  72.  
  73. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement