Styling bottom buttons

This commit is contained in:
PavelRatushny 2017-11-28 17:04:19 +02:00
parent 2fe0a745e1
commit ce132996eb
3 changed files with 20 additions and 14 deletions

View file

@ -411,40 +411,40 @@
android:background="?attr/dashboard_divider"/>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/context_menu_bottom_buttons"
android:layout_width="match_parent"
android:layout_height="@dimen/context_menu_action_buttons_h">
android:layout_height="@dimen/context_menu_buttons_bottom"
android:paddingLeft="@dimen/context_menu_padding_medium"
android:paddingRight="@dimen/context_menu_padding_medium"
android:paddingTop="@dimen/context_menu_padding_small"
android:paddingBottom="@dimen/context_menu_padding_small">
<net.osmand.plus.widgets.TextViewEx
<Button
android:background="?attr/selectableItemBackground"
android:id="@+id/context_menu_details_button"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:layout_height="wrap_content"
android:paddingLeft="@dimen/context_menu_button_padding_x"
android:paddingRight="@dimen/context_menu_button_padding_x"
android:gravity="start|center_vertical"
android:textColor="?attr/contextMenuButtonColor"
android:textSize="@dimen/default_desc_text_size"
osmand:textAllCapsCompat="true"
osmand:typeface="@string/font_roboto_medium"
android:text="@string/description"/>
<net.osmand.plus.widgets.TextViewEx
<Button
android:background="?attr/selectableItemBackground"
android:id="@+id/context_menu_directions_button"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:layout_height="wrap_content"
android:paddingLeft="@dimen/context_menu_button_padding_x"
android:paddingRight="@dimen/context_menu_button_padding_x"
android:gravity="end|center_vertical"
tools:drawableEnd="@drawable/map_directions"
android:drawablePadding="8dp"
android:textColor="?attr/contextMenuButtonColor"
android:textSize="@dimen/default_desc_text_size"
osmand:textAllCapsCompat="true"
osmand:typeface="@string/font_roboto_medium"
android:text="@string/get_directions"/>
</LinearLayout>

View file

@ -58,6 +58,9 @@
<dimen name="context_menu_progress_min_height">80dp</dimen>
<dimen name="context_menu_progress_cancel_button_size">66dp</dimen>
<dimen name="context_menu_action_buttons_h">80dp</dimen>
<dimen name="context_menu_buttons_bottom">63dp</dimen>
<dimen name="context_menu_padding_medium">12dp</dimen>
<dimen name="context_menu_padding_small">9dp</dimen>
<dimen name="fab_size_with_shadow">90dp</dimen>
<dimen name="fab_margin_right">18dp</dimen>

View file

@ -129,6 +129,9 @@
<dimen name="context_menu_progress_min_height">54dp</dimen>
<dimen name="context_menu_progress_cancel_button_size">44dp</dimen>
<dimen name="context_menu_action_buttons_h">54dp</dimen>
<dimen name="context_menu_buttons_bottom">48dp</dimen>
<dimen name="context_menu_padding_medium">8dp</dimen>
<dimen name="context_menu_padding_small">6dp</dimen>
<dimen name="fab_size_with_shadow">62dp</dimen>
<dimen name="fab_margin_right">12dp</dimen>