Change transport items height
This commit is contained in:
parent
14dc6f90cf
commit
e22aa66e9b
5 changed files with 25 additions and 11 deletions
|
@ -3,6 +3,7 @@
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
xmlns:osmand="http://schemas.android.com/apk/res-auto"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingBottom="12dp"
|
android:paddingBottom="12dp"
|
||||||
|
@ -10,14 +11,15 @@
|
||||||
android:paddingRight="16dp"
|
android:paddingRight="16dp"
|
||||||
android:paddingTop="16dp">
|
android:paddingTop="16dp">
|
||||||
|
|
||||||
<TextView
|
<net.osmand.plus.widgets.TextViewEx
|
||||||
|
osmand:typeface="@string/font_roboto_medium"
|
||||||
android:id="@+id/route_ref"
|
android:id="@+id/route_ref"
|
||||||
android:layout_width="32dp"
|
android:layout_width="32dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="18dp"
|
||||||
android:background="@drawable/transport_stop_route_bg"
|
android:background="@drawable/transport_stop_route_bg"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:textColor="@color/color_white"
|
android:textColor="@color/color_white"
|
||||||
android:textSize="@dimen/default_desc_text_size"
|
android:textSize="@dimen/default_sub_text_size_small"
|
||||||
tools:text="3"/>
|
tools:text="3"/>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
|
|
@ -74,14 +74,16 @@
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<GridView
|
<GridView
|
||||||
android:paddingLeft="@dimen/context_menu_padding_margin_default"
|
|
||||||
android:paddingRight="@dimen/context_menu_padding_margin_default"
|
|
||||||
android:visibility="gone"
|
|
||||||
android:horizontalSpacing="@dimen/context_menu_padding_margin_medium"
|
|
||||||
android:id="@+id/transport_stop_routes_grid"
|
android:id="@+id/transport_stop_routes_grid"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:numColumns="10" />
|
android:columnWidth="@dimen/context_menu_transport_grid_item_width"
|
||||||
|
android:horizontalSpacing="@dimen/context_menu_transport_grid_spacing"
|
||||||
|
android:numColumns="auto_fit"
|
||||||
|
android:paddingLeft="@dimen/context_menu_padding_margin_default"
|
||||||
|
android:paddingRight="@dimen/context_menu_padding_margin_default"
|
||||||
|
android:verticalSpacing="@dimen/context_menu_transport_grid_spacing"
|
||||||
|
android:visibility="gone"/>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:paddingLeft="@dimen/context_menu_padding_margin_default"
|
android:paddingLeft="@dimen/context_menu_padding_margin_default"
|
||||||
|
|
|
@ -1,18 +1,20 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
xmlns:osmand="http://schemas.android.com/apk/res-auto"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<TextView
|
<net.osmand.plus.widgets.TextViewEx
|
||||||
|
osmand:typeface="@string/font_roboto_medium"
|
||||||
android:textColor="@color/color_white"
|
android:textColor="@color/color_white"
|
||||||
android:textSize="@dimen/default_desc_text_size"
|
android:textSize="@dimen/default_sub_text_size_small"
|
||||||
tools:text="3"
|
tools:text="3"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:id="@+id/transport_stop_route_text"
|
android:id="@+id/transport_stop_route_text"
|
||||||
android:background="@drawable/transport_stop_route_bg"
|
android:background="@drawable/transport_stop_route_bg"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"/>
|
android:layout_height="@dimen/context_menu_transport_grid_item_height"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
|
@ -75,6 +75,9 @@
|
||||||
<dimen name="context_menu_transport_stop_item_height">24dp</dimen>
|
<dimen name="context_menu_transport_stop_item_height">24dp</dimen>
|
||||||
<dimen name="context_menu_main_actions_padding_top">9dp</dimen>
|
<dimen name="context_menu_main_actions_padding_top">9dp</dimen>
|
||||||
<dimen name="context_menu_main_actions_icon_margin">5dp</dimen>
|
<dimen name="context_menu_main_actions_icon_margin">5dp</dimen>
|
||||||
|
<dimen name="context_menu_transport_grid_spacing">6dp</dimen>
|
||||||
|
<dimen name="context_menu_transport_grid_item_width">48dp</dimen>
|
||||||
|
<dimen name="context_menu_transport_grid_item_height">27dp</dimen>
|
||||||
|
|
||||||
<dimen name="fab_size_with_shadow">90dp</dimen>
|
<dimen name="fab_size_with_shadow">90dp</dimen>
|
||||||
<dimen name="fab_margin_right">18dp</dimen>
|
<dimen name="fab_margin_right">18dp</dimen>
|
||||||
|
@ -90,6 +93,7 @@
|
||||||
<dimen name="default_list_text_size">18sp</dimen>
|
<dimen name="default_list_text_size">18sp</dimen>
|
||||||
<dimen name="default_desc_text_size">16sp</dimen>
|
<dimen name="default_desc_text_size">16sp</dimen>
|
||||||
<dimen name="default_sub_text_size">14sp</dimen>
|
<dimen name="default_sub_text_size">14sp</dimen>
|
||||||
|
<dimen name="default_sub_text_size_small">12sp</dimen>
|
||||||
<dimen name="welcome_header_text_size">27sp</dimen>
|
<dimen name="welcome_header_text_size">27sp</dimen>
|
||||||
|
|
||||||
<dimen name="dialog_header_text_size">24sp</dimen>
|
<dimen name="dialog_header_text_size">24sp</dimen>
|
||||||
|
|
|
@ -146,6 +146,9 @@
|
||||||
<dimen name="context_menu_transport_stop_item_height">16dp</dimen>
|
<dimen name="context_menu_transport_stop_item_height">16dp</dimen>
|
||||||
<dimen name="context_menu_main_actions_padding_top">6dp</dimen>
|
<dimen name="context_menu_main_actions_padding_top">6dp</dimen>
|
||||||
<dimen name="context_menu_main_actions_icon_margin">3dp</dimen>
|
<dimen name="context_menu_main_actions_icon_margin">3dp</dimen>
|
||||||
|
<dimen name="context_menu_transport_grid_spacing">4dp</dimen>
|
||||||
|
<dimen name="context_menu_transport_grid_item_width">32dp</dimen>
|
||||||
|
<dimen name="context_menu_transport_grid_item_height">18dp</dimen>
|
||||||
|
|
||||||
<dimen name="fab_size_with_shadow">62dp</dimen>
|
<dimen name="fab_size_with_shadow">62dp</dimen>
|
||||||
<dimen name="fab_margin_right">12dp</dimen>
|
<dimen name="fab_margin_right">12dp</dimen>
|
||||||
|
@ -155,6 +158,7 @@
|
||||||
<dimen name="default_list_text_size">16sp</dimen>
|
<dimen name="default_list_text_size">16sp</dimen>
|
||||||
<dimen name="default_desc_text_size">14sp</dimen>
|
<dimen name="default_desc_text_size">14sp</dimen>
|
||||||
<dimen name="default_sub_text_size">12sp</dimen>
|
<dimen name="default_sub_text_size">12sp</dimen>
|
||||||
|
<dimen name="default_sub_text_size_small">10sp</dimen>
|
||||||
<dimen name="welcome_header_text_size">23sp</dimen>
|
<dimen name="welcome_header_text_size">23sp</dimen>
|
||||||
|
|
||||||
<dimen name="default_split_segments_overview">13sp</dimen>
|
<dimen name="default_split_segments_overview">13sp</dimen>
|
||||||
|
|
Loading…
Reference in a new issue