OsmAnd/OsmAnd/res/layout/plugins_list_item.xml
2020-10-12 21:32:10 +03:00

71 lines
No EOL
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:osmand="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/expandable_list_item_background"
android:descendantFocusability="blocksDescendants"
android:orientation="horizontal" >
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/plugin_logo"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="center"
android:layout_margin="8dp"
android:adjustViewBounds="true"
android:background="@drawable/bg_plugin_logo_enabled_light"
android:padding="12dp"
android:scaleType="fitCenter"
tools:src="@drawable/ic_extension_dark" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginRight="4dp"
android:layout_marginLeft="4dp"
android:layout_marginTop="8dp"
android:layout_weight="1"
android:orientation="vertical"
android:layout_marginStart="4dp"
android:layout_marginEnd="4dp">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/plugin_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:ellipsize="end"
android:lines="1"
android:maxLines="1"
android:text="@string/lorem_ipsum"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size_large"
osmand:typeface="@string/font_roboto_medium" />
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/plugin_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:lines="2"
android:maxLines="2"
android:scrollbars="none"
android:text="@string/lorem_ipsum"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_desc_text_size"
osmand:typeface="@string/font_roboto_regular" />
</LinearLayout>
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/plugin_options"
android:contentDescription="@string/shared_string_more"
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
android:layout_gravity="center"
android:background="?attr/dashboard_button"
osmand:srcCompat="@drawable/ic_overflow_menu_white"/>
</LinearLayout>