OsmAnd/OsmAnd/res/layout/list_item_header.xml

50 lines
1.8 KiB
XML
Raw Normal View History

2017-11-17 14:03:36 +01: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"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2017-11-21 13:48:47 +01:00
<include
android:id="@+id/top_divider"
layout="@layout/list_item_divider"/>
2017-11-17 14:03:36 +01:00
<FrameLayout
2017-11-21 13:48:47 +01:00
android:id="@+id/background_view"
2017-11-17 14:03:36 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/bg_color">
<LinearLayout
android:id="@+id/header_row"
android:layout_width="match_parent"
android:layout_height="@dimen/bottom_sheet_list_item_height"
android:background="?attr/selectableItemBackground"
android:paddingLeft="@dimen/content_padding"
android:paddingRight="@dimen/content_padding">
<CheckBox
android:id="@+id/check_box"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginEnd="@dimen/content_padding"
android:layout_marginRight="@dimen/content_padding"
android:visibility="gone"
tools:visibility="visible"/>
<android.support.v7.widget.AppCompatTextView
android:id="@+id/title_text_view"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:ellipsize="end"
android:gravity="center_vertical"
android:maxLines="1"
tools:text="Header"/>
</LinearLayout>
</FrameLayout>
</LinearLayout>