Update track widget icons.
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 36 KiB |
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2012 Google Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle" >
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<padding
|
||||
android:bottom="8dp"
|
||||
android:left="8dp"
|
||||
android:right="8dp"
|
||||
android:top="8dp" />
|
||||
<corners android:radius="8dp" />
|
||||
<stroke
|
||||
android:color="@android:color/white"
|
||||
android:width="2dp" />
|
||||
</shape>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2012 Google Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle" >
|
||||
<solid android:color="@color/track_widget_red" />
|
||||
<padding
|
||||
android:bottom="8dp"
|
||||
android:left="8dp"
|
||||
android:right="8dp"
|
||||
android:top="8dp" />
|
||||
<corners android:radius="8dp" />
|
||||
</shape>
|
||||
@@ -19,18 +19,18 @@ limitations under the License.
|
||||
android:layout_width="fill_parent"
|
||||
android:padding="@dimen/widget_margin" >
|
||||
<LinearLayout
|
||||
android:background="@drawable/app_widget_background"
|
||||
android:background="@drawable/track_widget_background"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="horizontal" >
|
||||
<ImageButton
|
||||
android:background="@android:color/transparent"
|
||||
android:contentDescription="@string/my_tracks_app_name"
|
||||
android:id="@+id/track_widget_button"
|
||||
android:id="@+id/track_widget_icon"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:padding="8dp"
|
||||
android:src="@drawable/app_widget_button_disabled" />
|
||||
android:src="@drawable/my_tracks_icon" />
|
||||
<LinearLayout
|
||||
android:clickable="true"
|
||||
android:id="@+id/track_widget_statistics"
|
||||
@@ -80,6 +80,18 @@ limitations under the License.
|
||||
android:id="@+id/track_widget_speed_label"
|
||||
style="@style/TrackWidgetLabel" />
|
||||
</LinearLayout>
|
||||
<ImageButton
|
||||
android:background="@drawable/track_widget_record_button_background"
|
||||
android:contentDescription="@string/menu_record_track"
|
||||
android:id="@+id/track_widget_record_button"
|
||||
android:src="@drawable/track_widget_record_button"
|
||||
style="@style/TrackWidgetButton" />
|
||||
<ImageButton
|
||||
android:background="@drawable/track_widget_stop_button_background"
|
||||
android:contentDescription="@string/menu_stop_recording"
|
||||
android:id="@+id/track_widget_stop_button"
|
||||
android:src="@drawable/track_widget_stop_button"
|
||||
style="@style/TrackWidgetButton" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
@@ -51,6 +51,9 @@ limitations under the License.
|
||||
<!-- track widget line -->
|
||||
<color name="track_widget_line">#99999999</color>
|
||||
|
||||
<!-- track widget red -->
|
||||
<color name="track_widget_red">#FFCA1F25</color>
|
||||
|
||||
<!-- dynamic track slow path, green -->
|
||||
<color name="slow_path">#F774DF00</color>
|
||||
|
||||
|
||||
@@ -184,6 +184,14 @@ limitations under the License.
|
||||
<style name="TrackWidgetLabel" parent="@style/TextSmall">
|
||||
<item name="android:width">100dp</item>
|
||||
</style>
|
||||
<!-- The style for the track widget button -->
|
||||
<style name="TrackWidgetButton">
|
||||
<item name="android:layout_gravity">center_horizontal</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:layout_marginTop">8dp</item>
|
||||
<item name="android:layout_width">fill_parent</item>
|
||||
<item name="android:padding">8dp</item>
|
||||
</style>
|
||||
<!-- The style for the track widget value -->
|
||||
<style name="TrackWidgetValue" parent="@style/TextSmall">
|
||||
<item name="android:layout_weight">1</item>
|
||||
|
||||