OsmAnd/OsmAnd/res/layout/main_menu_drawer_btn_switch_profile.xml
Nazar 346578ef3e Drawer - App profile select
Replace BottomSheet on drawer inside list
2019-09-24 11:43:06 +03:00

91 lines
No EOL
2.9 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"
xmlns:osmand="http://schemas.android.com/apk/res-auto"
android:id="@+id/profile_settings"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants"
android:gravity="center"
android:orientation="horizontal">
<FrameLayout
android:id="@+id/bg_circle"
android:layout_width="@dimen/context_menu_big_icon_size"
android:layout_height="@dimen/context_menu_big_icon_size"
android:layout_marginLeft="@dimen/content_padding_half"
android:layout_marginRight="@dimen/favorites_icon_right_margin"
android:background="?attr/bg_circle">
<ImageView
android:id="@+id/icon"
android:layout_width="@dimen/standard_icon_size"
android:layout_height="@dimen/standard_icon_size"
android:layout_gravity="center"
tools:src="@drawable/ic_action_bicycle_dark" />
</FrameLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/setting_profile_item_height"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="2"
osmand:typeface="@string/font_roboto_medium"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"
tools:text="Bicycle" />
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
osmand:typeface="@string/font_roboto_regular"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_desc_text_size"
tools:text="Type: Bicycle" />
</LinearLayout>
<android.support.v7.widget.AppCompatImageView
android:id="@+id/ic_expand_list"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="@dimen/content_padding_half"
android:layout_marginRight="@dimen/favorites_icon_right_margin"
android:src="@drawable/ic_action_arrow_drop_down"
android:tint="?attr/default_icon_color" />
</LinearLayout>
<View
android:id="@+id/divider_bottom"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/divider_color" />
</LinearLayout>
</LinearLayout>