101 lines
3.7 KiB
XML
101 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
Copyright 2015 Google Inc. All rights reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<android.support.design.widget.CoordinatorLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:weightSum="100">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="50"
|
|
android:scaleType="centerCrop"
|
|
android:transitionName="image" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/textLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?colorPrimary"
|
|
android:orientation="vertical"
|
|
android:paddingStart="@dimen/keyline2"
|
|
android:paddingEnd="@dimen/keyline3"
|
|
android:paddingTop="@dimen/standard_margin"
|
|
android:paddingBottom="@dimen/standard_margin"
|
|
android:elevation="2dp">
|
|
|
|
<TextView
|
|
android:id="@+id/nameTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="2"
|
|
android:ellipsize="end"
|
|
android:textIsSelectable="true"
|
|
style="@style/TextAppearance.AppCompat.Title.Inverse" />
|
|
|
|
<TextView
|
|
android:id="@+id/distanceTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
style="@style/TextAppearance.AppCompat.Subhead.Inverse" />
|
|
|
|
</LinearLayout>
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="50"
|
|
android:paddingTop="@dimen/standard_margin"
|
|
android:paddingBottom="@dimen/standard_margin"
|
|
android:scrollbarStyle="outsideOverlay"
|
|
android:clipToPadding="false">
|
|
|
|
<TextView
|
|
android:id="@+id/descriptionTextView"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="match_parent"
|
|
android:textIsSelectable="true"
|
|
style="@style/TextAppearance.AppCompat.Body1"
|
|
android:paddingStart="@dimen/keyline2"
|
|
android:paddingEnd="@dimen/keyline3" />
|
|
|
|
</ScrollView>
|
|
|
|
</LinearLayout>
|
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
android:id="@+id/mapFab"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:src="@drawable/ic_action_map"
|
|
app:layout_anchor="@id/textLayout"
|
|
app:layout_anchorGravity="bottom|start"
|
|
app:rippleColor="@color/colorFabRipple"
|
|
android:layout_marginStart="@dimen/fab_margin"
|
|
android:clickable="true" />
|
|
|
|
</android.support.design.widget.CoordinatorLayout> |