OsmAnd/OsmAnd/res/layout/context_menu_card_image.xml

74 lines
2.7 KiB
XML
Raw Normal View History

2017-05-02 11:09:11 +02:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
2017-05-04 22:48:07 +02:00
android:layout_width="@dimen/context_img_card_width"
android:layout_height="@dimen/context_img_card_height"
2017-05-02 11:09:11 +02:00
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"/>
2017-05-05 17:58:10 +02:00
<TextView
android:id="@+id/url"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:padding="16dp"
2017-05-06 18:24:07 +02:00
android:background="?attr/bg_color"
2017-05-05 17:58:10 +02:00
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"/>
2017-05-02 11:09:11 +02:00
<ImageView
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
2017-05-04 22:48:07 +02:00
android:visibility="gone"
tools:src="@drawable/ic_action_photo_dark"
tools:visibility="visible"/>
2017-05-02 11:09:11 +02:00
<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"
2017-05-04 22:48:07 +02:00
android:background="@color/map_widget_dark"
2017-05-02 11:09:11 +02:00
android:textColor="@color/color_white"
android:textSize="@dimen/default_sub_text_size"
2017-05-04 22:48:07 +02:00
android:visibility="gone"
tools:text="\@user123"
tools:visibility="visible"/>
2017-05-02 11:09:11 +02:00
<ProgressBar
android:id="@+id/progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:visibility="gone"/>
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/context_menu_card"/>
</FrameLayout>
</LinearLayout>