Backgrounds for toolbar.

This commit is contained in:
Dmitry Yunitsky 2015-01-12 20:50:13 +03:00 committed by Alex Zolotarev
parent 959a79d98b
commit e8fa1508f5
15 changed files with 21 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,003 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 863 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:enterFadeDuration="300"
android:exitFadeDuration="300"
tools:ignore="UnusedAttribute">
<item android:state_pressed="true">
<bitmap android:gravity="center"
android:src="@drawable/ic_toolbar_active"/>
</item>
<item android:drawable="@android:color/transparent"/>
</selector>

View file

@ -122,7 +122,7 @@
android:id="@+id/map_bottom_toolbar"
layout="@layout/map_bottom_toolbar"
android:layout_width="@dimen/bottom_panel_width"
android:layout_height="wrap_content"
android:layout_height="280dp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"/>

View file

@ -4,6 +4,7 @@
android:layout_width="@dimen/bottom_panel_width"
android:layout_height="wrap_content"
android:orientation="vertical"
android:clipChildren="false"
android:background="@drawable/ic_toolbar_tablet_bg">
<ImageButton

View file

@ -3,6 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="@dimen/bottom_panel_height"
android:clipChildren="false"
android:background="@drawable/toolbar_gradient">
<FrameLayout

View file

@ -24,8 +24,8 @@
<dimen name="sp_x_5">35sp</dimen>
<dimen name="bottom_panel_height">70dp</dimen>
<dimen name="bottom_panel_width">58dp</dimen>
<dimen name="bottom_button_width">46dp</dimen>
<dimen name="bottom_panel_width">60dp</dimen>
<dimen name="bottom_button_width">60dp</dimen>
<dimen name="bottom_item_height">56dp</dimen>
<dimen name="routing_pp_height">63dp</dimen>

View file

@ -57,7 +57,7 @@
<dimen name="ppp_button_size_small">42dp</dimen>
<dimen name="bottom_panel_height">46dp</dimen>
<dimen name="bottom_button_width">90dp</dimen>
<dimen name="bottom_button_width">113dp</dimen>
<dimen name="bottom_item_height">46dp</dimen>
<item name="alpha_edit_button" format="float" type="dimen">0.75</item>

View file

@ -62,7 +62,7 @@
</style>
<style name="Widget.MapButtonBottom" parent="android:Widget.ImageButton">
<item name="android:background">@android:color/transparent</item>
<item name="android:background">@drawable/bg_toolbar_button</item>
</style>
<style name="InfoItem" parent="TextAppearance.AppCompat.Large">