forked from organicmaps/organicmaps
[android] Added item layout for bookmark collections.
This commit is contained in:
parent
6a41604b3b
commit
61cc724bb6
2 changed files with 44 additions and 0 deletions
42
android/res/layout/item_bookmark_collection.xml
Normal file
42
android/res/layout/item_bookmark_collection.xml
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?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="@dimen/height_item_edit_bookmark"
|
||||
android:background="?clickableBackground"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<CheckBox
|
||||
android:id="@+id/checkbox"
|
||||
android:layout_width="@dimen/bookmark_checkbox_size"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="@dimen/margin_half_plus"
|
||||
android:layout_marginEnd="@dimen/margin_base_plus" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/margin_base"
|
||||
android:layout_marginEnd="@dimen/bookmark_collection_item_end_margin"
|
||||
android:ellipsize="middle"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?fontBody1"
|
||||
tools:text="Bookmark name looooooooooooooooooongasdasdasd" />
|
||||
<TextView
|
||||
android:id="@+id/size"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginEnd="@dimen/bookmark_collection_item_end_margin"
|
||||
android:layout_marginBottom="@dimen/margin_half_plus"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3"
|
||||
tools:text="42000000" />
|
||||
<include layout="@layout/divider_horizontal" />
|
||||
</LinearLayout></LinearLayout>
|
|
@ -273,6 +273,8 @@
|
|||
<dimen name="guide_description_block_height">108dp</dimen>
|
||||
<dimen name="guide_description_content_by_height">60dp</dimen>
|
||||
<dimen name="content_by_logo_width">68dp</dimen>
|
||||
<dimen name="bookmark_checkbox_size">32dp</dimen>
|
||||
<dimen name="bookmark_collection_item_end_margin">56dp</dimen>
|
||||
|
||||
<!-- Purchases-->
|
||||
<dimen name="ads_removal_dialog_min_height">508dp</dimen>
|
||||
|
|
Loading…
Add table
Reference in a new issue