Kvarz

Android xml place details google place details request

Aug 26th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.98 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:app="http://schemas.android.com/apk/res-auto"
  5.    xmlns:tools="http://schemas.android.com/tools"
  6.    android:id="@+id/scrollView"
  7.    android:layout_width="match_parent"
  8.    android:layout_height="wrap_content"
  9.    android:fillViewport="true"
  10.  
  11.    app:layout_behavior="@string/appbar_scrolling_view_behavior">
  12.  
  13.     <LinearLayout
  14.        android:layout_width="match_parent"
  15.        android:layout_height="match_parent"
  16.        android:orientation="vertical">
  17.  
  18.         <RelativeLayout
  19.            android:layout_width="match_parent"
  20.            android:layout_height="match_parent"
  21.            android:background="@color/greyPanel"
  22.            android:paddingLeft="@dimen/activity_horizontal_margin"
  23.            android:paddingRight="@dimen/activity_horizontal_margin"
  24.            android:paddingTop="@dimen/activity_vertical_margin">
  25.  
  26.  
  27.             <TextView
  28.                android:id="@+id/title"
  29.                android:layout_width="match_parent"
  30.                android:layout_height="wrap_content"
  31.                android:layout_alignParentTop="true"
  32.                android:ellipsize="end"
  33.                android:gravity="center"
  34.                android:lines="1"
  35.                android:textAppearance="?android:textAppearanceLarge"
  36.                tools:text="Super long text Super long text Super long text end of text"/>
  37.  
  38.  
  39.             <ImageView
  40.                android:id="@+id/addressImage"
  41.                android:layout_width="48dp"
  42.                android:layout_height="48dp"
  43.                android:layout_below="@+id/title"
  44.                android:padding="8dp"
  45.                android:src="@drawable/location_icon"
  46.                android:tint="@color/tintColor"/>
  47.  
  48.             <TextView
  49.                android:id="@+id/address"
  50.                android:layout_width="match_parent"
  51.                android:layout_height="wrap_content"
  52.                android:layout_alignBottom="@+id/addressImage"
  53.                android:layout_toEndOf="@+id/addressImage"
  54.                android:ellipsize="end"
  55.                android:gravity="center_vertical"
  56.                android:lines="2"
  57.                android:textAppearance="?android:textAppearanceMedium"
  58.                tools:text="Some otrhersadfjsadf"/>
  59.  
  60.             <ImageView
  61.                android:id="@+id/timeImage"
  62.                android:layout_width="48dp"
  63.                android:layout_height="48dp"
  64.                android:layout_below="@+id/addressImage"
  65.                android:layout_marginTop="8dp"
  66.                android:padding="8dp"
  67.                android:src="@drawable/ic_alarm_black_24dp"
  68.                android:tint="@color/tintColor"/>
  69.  
  70.             <TextView
  71.                android:id="@+id/workHours"
  72.                android:layout_width="match_parent"
  73.                android:layout_height="wrap_content"
  74.                android:layout_below="@+id/address"
  75.                android:layout_toEndOf="@+id/timeImage"
  76.                android:ellipsize="end"
  77.                android:gravity="center_vertical"
  78.                android:lines="3"
  79.                android:textAppearance="?android:textAppearanceMedium"
  80.                tools:text="Some otrhersadfjsadf"/>
  81.  
  82.  
  83.         </RelativeLayout>
  84.  
  85.  
  86.         <FrameLayout
  87.            android:id="@+id/layoutBar"
  88.            android:layout_width="match_parent"
  89.            android:layout_height="wrap_content"
  90.            android:layout_below="@+id/workHours"
  91.            android:layout_marginTop="6dp"
  92.            android:background="@android:color/white"
  93.            android:orientation="horizontal"
  94.            android:padding="16dp">
  95.  
  96.             <LinearLayout
  97.                android:layout_width="wrap_content"
  98.                android:layout_height="match_parent"
  99.                android:orientation="vertical"
  100.                android:layout_marginLeft="16dp">
  101.  
  102.                 <ImageView
  103.                    android:id="@+id/star"
  104.                    android:layout_width="34dp"
  105.                    android:layout_height="34dp"
  106.                    android:gravity="center_vertical"
  107.                    android:src="@drawable/ic_star_big_24dp"
  108.                    android:tint="@color/tintColor"/>
  109.  
  110.                 <TextView
  111.                    android:id="@+id/rating"
  112.                    android:layout_width="wrap_content"
  113.                    android:layout_height="match_parent"
  114.                    android:gravity="center_vertical"
  115.                    android:textAppearance="?android:textAppearanceLarge"
  116.                    tools:text="3.4"/>
  117.  
  118.             </LinearLayout>
  119.  
  120.             <LinearLayout
  121.                android:layout_width="wrap_content"
  122.                android:layout_height="match_parent"
  123.                android:layout_gravity="right"
  124.                android:gravity="center"
  125.                android:layout_marginRight="16dp"
  126.                android:orientation="vertical">
  127.  
  128.                 <ImageView
  129.                    android:id="@+id/globe"
  130.                    android:layout_width="34dp"
  131.                    android:layout_height="34dp"
  132.                    android:src="@drawable/locality"
  133.                    android:tint="@color/tintColor"/>
  134.  
  135.                 <TextView
  136.                    android:id="@+id/mapText"
  137.                    android:layout_width="wrap_content"
  138.                    android:layout_height="wrap_content"
  139.                    android:gravity="center_vertical"
  140.                    android:singleLine="true"
  141.                    android:text="Location"
  142.                    android:textAppearance="?android:textAppearanceLarge"/>
  143.  
  144.             </LinearLayout>
  145.  
  146.  
  147.         </FrameLayout>
  148.  
  149.         <LinearLayout
  150.            android:layout_width="match_parent"
  151.            android:layout_height="wrap_content"
  152.            android:background="@android:color/white"
  153.            android:orientation="vertical">
  154.  
  155.             <View
  156.                android:id="@+id/separator"
  157.                android:layout_width="match_parent"
  158.                android:layout_height="1dp"
  159.                android:layout_below="@+id/layoutBar"
  160.                android:layout_marginBottom="8dp"
  161.                android:layout_marginTop="8dp"
  162.                android:background="@android:color/darker_gray"/>
  163.  
  164.  
  165.             <com.dataart.kvarivoda.myapplication.utils.ExpandableHeightGridView
  166.                android:id="@+id/photoGridView"
  167.                android:layout_width="wrap_content"
  168.                android:layout_height="wrap_content"
  169.                android:background="@android:color/white"
  170.                android:paddingTop="16dp"
  171.                android:gravity="center"
  172.                android:horizontalSpacing="0dp"
  173.                android:isScrollContainer="false"
  174.                android:numColumns="2"
  175.                android:stretchMode="columnWidth"
  176.                android:verticalSpacing="16dp"/>
  177.  
  178.         </LinearLayout>
  179.  
  180.  
  181.     </LinearLayout>
  182.  
  183.  
  184. </ScrollView>
Add Comment
Please, Sign In to add comment