OsmAnd/OsmAnd/res/layout/fragment_map_markers_dialog.xml

98 lines
3.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2017-10-06 15:39:36 +02:00
xmlns:osmand="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-09-25 18:20:47 +02:00
android:orientation="vertical">
2017-08-29 15:02:12 +02:00
2017-11-14 12:56:56 +01:00
<FrameLayout
2017-08-29 15:02:12 +02:00
android:layout_width="match_parent"
2017-11-14 12:56:56 +01:00
android:layout_height="0dp"
android:layout_weight="1">
2017-09-06 17:54:53 +02:00
2017-11-14 12:56:56 +01:00
<LinearLayout
2017-08-29 15:02:12 +02:00
android:layout_width="match_parent"
2017-09-06 17:54:53 +02:00
android:layout_height="match_parent"
2017-11-14 12:56:56 +01:00
android:orientation="vertical">
2017-11-14 12:56:56 +01:00
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dashboard_map_toolbar"
android:background="?attr/actionModeBackground">
2017-09-06 17:54:53 +02:00
2017-11-14 12:56:56 +01:00
<android.support.v7.widget.Toolbar
android:id="@+id/map_markers_toolbar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minHeight="@dimen/dashboard_map_toolbar"
app:contentInsetLeft="54dp"
app:contentInsetStart="54dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<net.osmand.plus.widgets.TextViewEx
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:ellipsize="end"
android:gravity="center_vertical"
android:maxLines="1"
android:text="@string/map_markers"
android:textColor="@color/color_white"
android:textSize="@dimen/dialog_header_text_size"
osmand:typeface="@string/font_roboto_medium"/>
<ProgressBar
android:id="@+id/progress_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:indeterminate="true"
android:visibility="gone"/>
</LinearLayout>
2017-11-14 12:56:56 +01:00
</android.support.v7.widget.Toolbar>
2017-11-14 12:56:56 +01:00
</android.support.design.widget.AppBarLayout>
2017-11-14 12:56:56 +01:00
<!-- Coordinator layout is needed in order to display the snackbar above the bottom navigation -->
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
2017-11-14 12:56:56 +01:00
android:layout_height="wrap_content"
android:background="?attr/ctx_menu_info_view_bg">
<net.osmand.plus.LockableViewPager
android:id="@+id/map_markers_view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</android.support.design.widget.CoordinatorLayout>
</LinearLayout>
2017-11-13 18:06:44 +01:00
<FrameLayout
android:id="@+id/menu_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-11-13 18:06:44 +01:00
android:layout_gravity="bottom|center_horizontal"/>
</FrameLayout>
<android.support.design.widget.BottomNavigationView
android:id="@+id/map_markers_bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-08-29 15:02:12 +02:00
android:background="?attr/bg_color"
app:itemBackground="?attr/bg_color"
2017-09-20 11:36:39 +02:00
app:itemIconTint="@color/bottom_navigation_color_selector_light"
app:itemTextColor="@color/bottom_navigation_color_selector_light"
app:menu="@menu/map_markers_bottom_navigation"/>
2017-11-14 12:56:56 +01:00
</LinearLayout>