OsmAnd/OsmAnd/res/layout/layers_list_activity_item.xml

54 lines
2 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:minHeight="@dimen/list_item_height"
android:descendantFocusability="blocksDescendants"
android:orientation="horizontal"
android:paddingLeft="@dimen/list_content_padding"
android:paddingRight="@dimen/list_content_padding" >
2015-04-21 01:22:30 +02:00
<ImageView
android:id="@+id/icon"
2015-04-21 01:33:37 +02:00
android:layout_width="wrap_content"
2015-04-21 01:22:30 +02:00
android:layout_height="@dimen/list_item_height"
android:scaleType="center"
2015-04-21 01:33:37 +02:00
android:visibility="gone"
android:layout_marginRight="@dimen/list_content_padding"
android:gravity="center_vertical"
android:layout_gravity="center_vertical"
2015-04-21 01:22:30 +02:00
android:src="@drawable/ic_action_settings" />
<TextView
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
2015-04-19 16:34:51 +02:00
android:layout_weight="1"
android:layout_gravity="center_vertical"
2015-04-21 01:22:30 +02:00
android:gravity="center_vertical"
android:paddingTop="6dp"
android:paddingBottom="6dp"
android:text="@string/layer_poi"
2015-04-19 16:34:51 +02:00
android:textSize="@dimen/default_list_text_size" />
<TextView
android:id="@+id/description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:paddingTop="6dp"
android:paddingBottom="6dp"
android:paddingLeft="16dp"
android:textSize="@dimen/default_list_text_size"
android:visibility="gone"/>
2015-04-19 16:34:51 +02:00
<CheckBox
2016-03-21 15:55:09 +01:00
android:id="@+id/toggle_item"
android:layout_width="wrap_content"
2015-04-19 23:14:25 +02:00
android:layout_height="@dimen/list_item_height"
2015-04-19 16:34:51 +02:00
android:layout_gravity="center_vertical"
android:focusable="false"
android:gravity="center_vertical" />
</LinearLayout>