[android] Added news indicator to map layer button

This commit is contained in:
Александр Зацепин 2020-04-21 19:21:57 +03:00 committed by yoksnod
parent 7bfee3bd64
commit 30c8edf998

View file

@ -1,18 +1,33 @@
<?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:orientation="vertical"
android:layout_width="wrap_content"
android:gravity="center"
android:layout_height="match_parent">
<ImageButton
android:id="@+id/btn"
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="@dimen/margin_double_plus"
android:minWidth="@dimen/margin_double_plus"
android:background="?attr/toggleMapLayerBtnBg"
android:layout_gravity="center"/>
android:layout_height="wrap_content">
<ImageButton
android:id="@+id/btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="@dimen/margin_quarter"
android:background="?attr/toggleMapLayerBtnBg"
android:minWidth="@dimen/margin_double_plus"
android:minHeight="@dimen/margin_double_plus" />
<View
android:id="@+id/marker"
android:layout_width="@dimen/margin_half_plus_eight"
android:layout_height="@dimen/margin_half_plus_eight"
android:layout_gravity="end"
android:layout_marginEnd="@dimen/margin_half_plus"
android:background="@drawable/counter"
android:visibility="gone"
tools:visibility="visible" />
</FrameLayout>
<TextView
android:id="@+id/name"
android:layout_marginTop="@dimen/margin_quarter"