mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
125 lines
No EOL
5.1 KiB
XML
125 lines
No EOL
5.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
app:behavior_peekHeight="@dimen/bottom_peak_height">
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:id="@+id/emptyLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:weightSum="1" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:background="@android:color/white">
|
|
<LinearLayout
|
|
android:id="@+id/dialogInfoLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:animateLayoutChanges="true"
|
|
android:minHeight="@dimen/bottom_peak_height"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/link_preview_toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:orientation="horizontal"
|
|
android:minHeight="64dp">
|
|
|
|
<TextView
|
|
android:id="@+id/link_preview_title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginLeft="12dp"
|
|
android:layout_marginRight="12dp"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:fontFamily="serif"
|
|
android:lineSpacingMultiplier="0.9"
|
|
android:maxLines="3"
|
|
android:paddingBottom="4dp"
|
|
android:textColor="@android:color/black"
|
|
android:textSize="20sp"
|
|
tools:text="Lorem ipsum" />
|
|
|
|
<ImageView
|
|
android:id="@+id/link_preview_overflow_button"
|
|
android:layout_width="@dimen/overflow_button_dimen"
|
|
android:layout_height="@dimen/overflow_button_dimen"
|
|
android:layout_gravity="center_vertical"
|
|
android:padding="12dp"
|
|
android:background="@android:color/white"
|
|
android:contentDescription="@string/abc_action_menu_overflow_description"
|
|
app:srcCompat="@drawable/ic_more_vert_white_24dp" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0.5dp"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:background="@android:color/black" />
|
|
|
|
<TextView
|
|
android:id="@+id/link_preview_extract"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:lineSpacingMultiplier="1.3"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingTop="8dp"
|
|
android:textIsSelectable="true"
|
|
android:textSize="16sp"
|
|
android:textColor="@android:color/black"
|
|
tools:text="Lorem ipsum" />
|
|
|
|
<View
|
|
android:id="@+id/link_preview_bottom_padding"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="70dp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/dialogButtonsLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/dialogInfoLayout"
|
|
android:layout_gravity="bottom">
|
|
|
|
<TextView
|
|
android:id="@+id/link_preview_directions_button"
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:paddingBottom="16dp"
|
|
android:paddingTop="16dp"
|
|
android:text="GET DIRECTIONS"
|
|
android:textColor="@android:color/black" />
|
|
|
|
<TextView
|
|
android:id="@+id/link_preview_go_button"
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:paddingBottom="16dp"
|
|
android:paddingTop="16dp"
|
|
android:text="READ ARTICLE"
|
|
android:textColor="@android:color/black" />
|
|
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
</RelativeLayout> |