OsmAnd/OsmAnd/res/layout/quick_action_widget_item.xml

74 lines
2.7 KiB
XML
Raw Normal View History

2016-12-22 18:39:30 +01:00
<?xml version="1.0" encoding="utf-8"?>
2016-12-23 14:35:37 +01:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2016-12-23 18:45:08 +01:00
xmlns:grid="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="0dp"
android:layout_height="100dp"
android:animateLayoutChanges="true"
2017-02-08 16:05:32 +01:00
android:background="?attr/selectableItemBackground"
2016-12-23 18:45:08 +01:00
grid:layout_columnWeight="1">
2016-12-23 14:35:37 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:gravity="center_horizontal"
android:orientation="vertical">
2017-01-05 14:39:16 +01:00
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp">
2020-05-15 09:58:37 +02:00
<androidx.appcompat.widget.AppCompatImageView
2017-01-05 14:39:16 +01:00
android:id="@+id/imageView"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="center_horizontal"
2019-07-04 18:58:10 +02:00
android:tint="?attr/default_icon_color"
2017-01-05 14:39:16 +01:00
android:scaleType="centerInside"/>
2020-05-15 09:58:37 +02:00
<androidx.appcompat.widget.AppCompatImageView
2017-01-05 14:39:16 +01:00
android:id="@+id/imageSlash"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="center_horizontal"
android:scaleType="centerInside"/>
</FrameLayout>
<TextView
android:id="@+id/title"
2016-12-27 16:27:21 +01:00
android:textAlignment="center"
android:gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="12dp"
android:maxLines="2"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_sub_text_size"
2020-02-24 15:17:23 +01:00
tools:text="Add marker"
android:layout_marginEnd="16dp"
android:layout_marginStart="16dp" />
</LinearLayout>
<View
android:id="@+id/dividerRight"
android:layout_width="1dp"
android:layout_height="match_parent"
2020-02-24 15:17:23 +01:00
android:layout_gravity="end"
2017-01-04 11:21:19 +01:00
android:background="?attr/dashboard_divider"
android:visibility="gone"/>
<View
android:id="@+id/dividerBot"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="bottom"
2017-01-04 11:21:19 +01:00
android:background="?attr/dashboard_divider"
android:visibility="gone"/>
</FrameLayout>