90 lines
No EOL
3.3 KiB
XML
90 lines
No EOL
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="@dimen/context_img_card_width"
|
|
android:layout_height="@dimen/context_img_card_height"
|
|
android:orientation="vertical">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/image_card"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/selectableItemBackground">
|
|
|
|
<ImageView
|
|
android:id="@+id/image"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"/>
|
|
|
|
<TextView
|
|
android:id="@+id/url"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:padding="16dp"
|
|
android:background="?attr/bg_color"
|
|
android:textColor="?attr/color_dialog_buttons"
|
|
android:textSize="@dimen/default_list_text_size"
|
|
android:visibility="gone"
|
|
tools:text="http://osmand.net/images/123456789012.jpg"
|
|
tools:visibility="visible"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginLeft="10dp"
|
|
android:visibility="gone"
|
|
tools:src="@drawable/ic_action_photo_dark"
|
|
tools:visibility="visible"/>
|
|
|
|
<TextView
|
|
android:id="@+id/watermark"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|right"
|
|
android:paddingLeft="4dp"
|
|
android:paddingTop="4dp"
|
|
android:paddingRight="8dp"
|
|
android:paddingBottom="8dp"
|
|
android:background="@color/map_widget_dark"
|
|
android:textColor="@color/color_white"
|
|
android:textSize="@dimen/default_sub_text_size"
|
|
android:visibility="gone"
|
|
tools:text="\@user123"
|
|
tools:visibility="visible"/>
|
|
|
|
<android.support.v7.widget.AppCompatButton
|
|
android:id="@+id/button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="40dp"
|
|
android:background="@drawable/blue_button_drawable"
|
|
android:layout_gravity="bottom|center_horizontal"
|
|
android:drawablePadding="8dp"
|
|
android:paddingLeft="14dp"
|
|
android:paddingRight="14dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:textColor="@color/color_white"
|
|
android:visibility="gone"
|
|
tools:visibility="visible"
|
|
tools:text="Button"/>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:visibility="gone"/>
|
|
|
|
<View
|
|
android:id="@+id/card_background"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/context_menu_card"/>
|
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout> |