OsmAnd/OsmAnd/res/layout/download_index_list_item.xml
2020-05-15 14:20:01 +03:00

73 lines
2.4 KiB
XML

<?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="fill_parent"
android:layout_height="wrap_content"
android:background="?attr/expandable_list_item_background"
android:minHeight="@dimen/list_item_height"
android:paddingLeft="@dimen/list_content_padding"
android:paddingRight="@dimen/list_content_padding"
android:paddingStart="@dimen/list_content_padding"
android:paddingEnd="@dimen/list_content_padding">
<androidx.appcompat.widget.AppCompatCheckBox
android:id="@+id/check_download_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginRight="@dimen/favorites_icon_right_margin"
android:focusable="false"
android:layout_marginEnd="@dimen/favorites_icon_right_margin" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id="@+id/name"
android:textSize="@dimen/default_list_text_size"
android:layout_width="wrap_content"
android:textColor="?android:textColorPrimary"
android:layout_height="wrap_content"
tools:text="@string/lorem_ipsum"/>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/download_descr"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:maxLines="1"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_sub_text_size"
tools:text="@string/app_version"/>
<TextView
android:id="@+id/update_descr"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/color_distance"
android:textSize="@dimen/default_sub_text_size"
tools:text="@string/lorem_ipsum"
android:maxLines="1"/>
<TextView
android:id="@+id/uptodate_descr"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/default_sub_text_size"
android:textColor="@color/color_ok"
tools:text="@string/lorem_ipsum"
android:visibility="gone"
android:maxLines="1"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>