Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <ScrollView
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/scrollView"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fillViewport="true"
- app:layout_behavior="@string/appbar_scrolling_view_behavior">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/greyPanel"
- android:paddingLeft="@dimen/activity_horizontal_margin"
- android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin">
- <TextView
- android:id="@+id/title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:ellipsize="end"
- android:gravity="center"
- android:lines="1"
- android:textAppearance="?android:textAppearanceLarge"
- tools:text="Super long text Super long text Super long text end of text"/>
- <ImageView
- android:id="@+id/addressImage"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:layout_below="@+id/title"
- android:padding="8dp"
- android:src="@drawable/location_icon"
- android:tint="@color/tintColor"/>
- <TextView
- android:id="@+id/address"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignBottom="@+id/addressImage"
- android:layout_toEndOf="@+id/addressImage"
- android:ellipsize="end"
- android:gravity="center_vertical"
- android:lines="2"
- android:textAppearance="?android:textAppearanceMedium"
- tools:text="Some otrhersadfjsadf"/>
- <ImageView
- android:id="@+id/timeImage"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:layout_below="@+id/addressImage"
- android:layout_marginTop="8dp"
- android:padding="8dp"
- android:src="@drawable/ic_alarm_black_24dp"
- android:tint="@color/tintColor"/>
- <TextView
- android:id="@+id/workHours"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/address"
- android:layout_toEndOf="@+id/timeImage"
- android:ellipsize="end"
- android:gravity="center_vertical"
- android:lines="3"
- android:textAppearance="?android:textAppearanceMedium"
- tools:text="Some otrhersadfjsadf"/>
- </RelativeLayout>
- <FrameLayout
- android:id="@+id/layoutBar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/workHours"
- android:layout_marginTop="6dp"
- android:background="@android:color/white"
- android:orientation="horizontal"
- android:padding="16dp">
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:layout_marginLeft="16dp">
- <ImageView
- android:id="@+id/star"
- android:layout_width="34dp"
- android:layout_height="34dp"
- android:gravity="center_vertical"
- android:src="@drawable/ic_star_big_24dp"
- android:tint="@color/tintColor"/>
- <TextView
- android:id="@+id/rating"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:gravity="center_vertical"
- android:textAppearance="?android:textAppearanceLarge"
- tools:text="3.4"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_gravity="right"
- android:gravity="center"
- android:layout_marginRight="16dp"
- android:orientation="vertical">
- <ImageView
- android:id="@+id/globe"
- android:layout_width="34dp"
- android:layout_height="34dp"
- android:src="@drawable/locality"
- android:tint="@color/tintColor"/>
- <TextView
- android:id="@+id/mapText"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:singleLine="true"
- android:text="Location"
- android:textAppearance="?android:textAppearanceLarge"/>
- </LinearLayout>
- </FrameLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@android:color/white"
- android:orientation="vertical">
- <View
- android:id="@+id/separator"
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:layout_below="@+id/layoutBar"
- android:layout_marginBottom="8dp"
- android:layout_marginTop="8dp"
- android:background="@android:color/darker_gray"/>
- <com.dataart.kvarivoda.myapplication.utils.ExpandableHeightGridView
- android:id="@+id/photoGridView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@android:color/white"
- android:paddingTop="16dp"
- android:gravity="center"
- android:horizontalSpacing="0dp"
- android:isScrollContainer="false"
- android:numColumns="2"
- android:stretchMode="columnWidth"
- android:verticalSpacing="16dp"/>
- </LinearLayout>
- </LinearLayout>
- </ScrollView>
Add Comment
Please, Sign In to add comment