/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
android/res/layout/routing_plan.xml
199 строк
8 KB
Александр Зацепин
[android] Migrated code to Android X
22 окт 2019, 15:11
22 окт 2019, 15:11
f2dd324
Код
Авторство
О чём код?
<?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:app="http://schemas.android.com/apk/res-auto" android:id="@+id/routing_plan_frame" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:clipToPadding="false"> <FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <androidx.appcompat.widget.Toolbar android:id="@+id/toolbar" style="@style/MwmWidget.ToolbarStyle" android:theme="@style/MwmWidget.ToolbarTheme" android:layout_width="match_parent" app:contentInsetLeft="0dp" app:contentInsetStart="0dp" android:layout_height="?attr/actionBarSize" android:elevation="0dp"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <ImageView android:id="@+id/back" android:layout_width="?attr/actionBarSize" android:layout_height="?attr/actionBarSize" android:layout_alignParentStart="true" android:layout_alignParentLeft="true" android:background="?attr/selectableItemBackgroundBorderless" android:src="?homeAsUpIndicator" android:scaleType="center" tools:src="@drawable/ic_down" /> <RadioGroup android:id="@+id/route_type" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_centerInParent="true" android:orientation="horizontal"> <com.mapswithme.maps.widget.RoutingToolbarButton android:id="@+id/vehicle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/routing_selector_wheel_margin" android:layout_marginStart="@dimen/routing_selector_wheel_margin" tools:button="@drawable/ic_car" tools:buttonTint="?colorAccent" /> <com.mapswithme.maps.widget.RoutingToolbarButton android:id="@+id/pedestrian" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="12dp" android:layout_marginStart="12dp" android:layout_marginRight="12dp" android:layout_marginEnd="12dp" tools:button="@drawable/ic_pedestrian" tools:buttonTint="?iconTintLight" /> <com.mapswithme.maps.widget.RoutingToolbarButton android:id="@+id/transit" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/margin_half_plus" android:layout_marginEnd="@dimen/margin_half_plus" tools:button="@drawable/ic_transit" tools:buttonTint="?iconTintLight" /> <com.mapswithme.maps.widget.RoutingToolbarButton android:id="@+id/bicycle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="12dp" android:layout_marginEnd="12dp" tools:button="@drawable/ic_bike" tools:buttonTint="?iconTintLight" /> <com.mapswithme.maps.widget.RoutingToolbarButton android:id="@+id/taxi" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/routing_selector_wheel_margin" android:layout_marginEnd="@dimen/routing_selector_wheel_margin" tools:button="@drawable/ic_taxi" tools:buttonTint="?iconTintLight" /> </RadioGroup> <LinearLayout android:id="@+id/progress_frame" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@id/route_type" android:layout_alignStart="@id/route_type" android:layout_centerInParent="true" android:orientation="horizontal" tools:background="#80FF0000"> <com.mapswithme.maps.widget.WheelProgressView android:id="@+id/progress_vehicle" style="@style/MwmWidget.ProgressWheel.RoutingPlan" android:layout_marginLeft="@dimen/routing_selector_wheel_margin" android:layout_marginStart="@dimen/routing_selector_wheel_margin" android:layout_marginTop="@dimen/routing_selector_wheel_margin" android:layout_marginBottom="@dimen/routing_selector_wheel_margin" tools:visibility="visible"/> <com.mapswithme.maps.widget.WheelProgressView android:id="@+id/progress_pedestrian" style="@style/MwmWidget.ProgressWheel.RoutingPlan" android:layout_marginTop="@dimen/routing_selector_wheel_margin" android:layout_marginBottom="@dimen/routing_selector_wheel_margin" android:layout_marginLeft="12dp" android:layout_marginStart="12dp" android:layout_marginRight="12dp" android:layout_marginEnd="12dp"/> <com.mapswithme.maps.widget.WheelProgressView android:id="@+id/progress_transit" style="@style/MwmWidget.ProgressWheel.RoutingPlan" android:layout_marginTop="@dimen/routing_selector_wheel_margin" android:layout_marginBottom="@dimen/routing_selector_wheel_margin" android:layout_marginRight="12dp" android:layout_marginEnd="12dp"/> <com.mapswithme.maps.widget.WheelProgressView android:id="@+id/progress_bicycle" style="@style/MwmWidget.ProgressWheel.RoutingPlan" android:layout_marginTop="@dimen/routing_selector_wheel_margin" android:layout_marginBottom="@dimen/routing_selector_wheel_margin" android:layout_marginRight="12dp" android:layout_marginEnd="12dp"/> <com.mapswithme.maps.widget.WheelProgressView android:id="@+id/progress_taxi" style="@style/MwmWidget.ProgressWheel.RoutingPlan" android:layout_marginTop="@dimen/routing_selector_wheel_margin" android:layout_marginBottom="@dimen/routing_selector_wheel_margin" android:layout_marginRight="@dimen/routing_selector_wheel_margin" android:layout_marginEnd="@dimen/routing_selector_wheel_margin"/> </LinearLayout> </RelativeLayout> </androidx.appcompat.widget.Toolbar> </FrameLayout> <FrameLayout android:background="?attr/drivingOptionsViewBg" android:id="@+id/driving_options_btn_container" android:visibility="gone" android:foreground="@drawable/shadow_top" android:layout_width="match_parent" android:layout_height="wrap_content"> <RelativeLayout android:id="@+id/driving_options_btn" android:background="?attr/selectableItemBackgroundBorderless" android:layout_width="match_parent" android:gravity="center" android:minHeight="@dimen/height_block_base" android:layout_height="wrap_content"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content"> <ImageView android:id="@+id/driving_options_btn_img" android:src="@drawable/ic_error_white" android:layout_marginRight="@dimen/margin_half_plus_eight" android:layout_marginEnd="@dimen/margin_half_plus_eight" android:layout_gravity="center" android:layout_width="@dimen/margin_base_plus" android:layout_height="@dimen/margin_base_plus"/> <TextView android:id="@+id/driving_options_btn_title" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/tips_and_triks_primary_text" android:textAllCaps="true" android:layout_gravity="center" android:gravity="center" android:fontFamily="@string/robotoMedium" android:layout_width="wrap_content" android:layout_height="wrap_content" tools:ignore="UnusedAttribute"/> </LinearLayout> </RelativeLayout> </FrameLayout> <FrameLayout style="@style/MwmWidget.FrameLayout.Elevation" android:layout_width="match_parent" android:layout_height="wrap_content"/> </LinearLayout>