forked from upstream-mirrors/OpenTracks
update app widget layout
This commit is contained in:
@@ -1,114 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2011 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.
|
||||
-->
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:background="@drawable/track_widget_background"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="fill_parent"
|
||||
android:padding="@dimen/widget_margin" >
|
||||
<LinearLayout
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingTop="8dp" >
|
||||
<LinearLayout
|
||||
android:clickable="true"
|
||||
android:id="@+id/track_widget_statistics"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="vertical" >
|
||||
<LinearLayout style="@style/TrackWidgetStat" >
|
||||
<TextView
|
||||
android:text="@string/stats_total_distance"
|
||||
style="@style/TrackWidgetLabel" />
|
||||
<TextView style="@style/TrackWidgetSpacer" />
|
||||
<TextView
|
||||
android:id="@+id/track_widget_total_distance_value"
|
||||
style="@style/TrackWidgetLabel" />
|
||||
</LinearLayout>
|
||||
<LinearLayout style="@style/TrackWidgetSeparator" />
|
||||
<LinearLayout style="@style/TrackWidgetStat" >
|
||||
<TextView
|
||||
android:text="@string/stats_total_time"
|
||||
style="@style/TrackWidgetLabel" />
|
||||
<TextView style="@style/TrackWidgetSpacer" />
|
||||
<Chronometer
|
||||
android:id="@+id/track_widget_total_time_value"
|
||||
style="@style/TrackWidgetLabel" />
|
||||
</LinearLayout>
|
||||
<LinearLayout style="@style/TrackWidgetSeparator" />
|
||||
<LinearLayout style="@style/TrackWidgetStat" >
|
||||
<TextView
|
||||
android:id="@+id/track_widget_average_speed_label"
|
||||
style="@style/TrackWidgetLabel" />
|
||||
<TextView style="@style/TrackWidgetSpacer" />
|
||||
<TextView
|
||||
android:id="@+id/track_widget_average_speed_value"
|
||||
style="@style/TrackWidgetLabel" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/track_widget_moving_time_container"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="vertical" >
|
||||
<LinearLayout style="@style/TrackWidgetSeparator" />
|
||||
<LinearLayout style="@style/TrackWidgetStat" >
|
||||
<TextView
|
||||
android:text="@string/stats_moving_time"
|
||||
style="@style/TrackWidgetLabel" />
|
||||
<TextView style="@style/TrackWidgetSpacer" />
|
||||
<TextView
|
||||
android:id="@+id/track_widget_moving_time_value"
|
||||
style="@style/TrackWidgetLabel" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:clipChildren="false"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="4dp"
|
||||
android:paddingRight="4dp"
|
||||
android:paddingTop="4dp" >
|
||||
<ImageButton
|
||||
android:background="@android:color/transparent"
|
||||
android:contentDescription="@string/icon_record_track"
|
||||
android:id="@+id/track_widget_record_button"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:src="@drawable/btn_record" />
|
||||
<TextView
|
||||
android:id="@+id/track_widget_record_status"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_width="0dp"
|
||||
android:singleLine="true"
|
||||
style="@style/TextSmall" />
|
||||
<ImageButton
|
||||
android:background="@android:color/transparent"
|
||||
android:contentDescription="@string/icon_stop_recording"
|
||||
android:id="@+id/track_widget_stop_button"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:src="@drawable/btn_stop_0" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
@@ -0,0 +1,125 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2011 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.
|
||||
-->
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:background="@drawable/track_widget_background"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="fill_parent"
|
||||
android:padding="@dimen/widget_margin" >
|
||||
<LinearLayout
|
||||
android:clickable="true"
|
||||
android:id="@+id/track_widget_statistics"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="4dp" >
|
||||
<LinearLayout style="@style/LinearLayoutHorizontal" >
|
||||
<!-- average moving speed -->
|
||||
<LinearLayout style="@style/TrackWidgetItemContainer" >
|
||||
<TextView
|
||||
android:id="@+id/track_widget_average_moving_speed_label"
|
||||
style="@style/TrackWidgetLabel" />
|
||||
<LinearLayout style="@style/TrackWidgetValueContainer" >
|
||||
<TextView
|
||||
android:id="@+id/track_widget_average_moving_speed_value"
|
||||
style="@style/TrackWidgetValue" />
|
||||
<TextView
|
||||
android:id="@+id/track_widget_average_moving_speed_unit"
|
||||
style="@style/TrackWidgetUnit" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<!-- vertical separator -->
|
||||
<LinearLayout style="@style/LinearLayoutVertifcal" >
|
||||
<LinearLayout style="@style/TrackWidgetVerticalSpacer" />
|
||||
<LinearLayout style="@style/TrackWidgetVerticalSeparator" />
|
||||
</LinearLayout>
|
||||
<!-- moving time -->
|
||||
<LinearLayout style="@style/TrackWidgetItemContainer" >
|
||||
<TextView
|
||||
android:text="@string/stats_moving_time"
|
||||
style="@style/TrackWidgetLabel" />
|
||||
<LinearLayout style="@style/TrackWidgetValueContainer" >
|
||||
<TextView
|
||||
android:id="@+id/track_widget_moving_time_value"
|
||||
style="@style/TrackWidgetValue" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<!-- horizontal separator -->
|
||||
<LinearLayout style="@style/TrackWidgetHorizontalSeparator" />
|
||||
<LinearLayout style="@style/LinearLayoutHorizontal" >
|
||||
<!-- average speed -->
|
||||
<LinearLayout style="@style/TrackWidgetItemContainer" >
|
||||
<TextView
|
||||
android:id="@+id/track_widget_average_speed_label"
|
||||
style="@style/TrackWidgetLabel" />
|
||||
<LinearLayout style="@style/TrackWidgetValueContainer" >
|
||||
<TextView
|
||||
android:id="@+id/track_widget_average_speed_value"
|
||||
style="@style/TrackWidgetValue" />
|
||||
<TextView
|
||||
android:id="@+id/track_widget_average_speed_unit"
|
||||
style="@style/TrackWidgetUnit" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<!-- vertical separator -->
|
||||
<LinearLayout style="@style/LinearLayoutVertifcal" >
|
||||
<LinearLayout style="@style/TrackWidgetVerticalSeparator" />
|
||||
<LinearLayout style="@style/TrackWidgetVerticalSpacer" />
|
||||
</LinearLayout>
|
||||
<!-- total distance -->
|
||||
<LinearLayout style="@style/TrackWidgetItemContainer" >
|
||||
<TextView
|
||||
android:text="@string/stats_total_distance"
|
||||
style="@style/TrackWidgetLabel" />
|
||||
<LinearLayout style="@style/TrackWidgetValueContainer" >
|
||||
<TextView
|
||||
android:id="@+id/track_widget_total_distance_value"
|
||||
style="@style/TrackWidgetValue" />
|
||||
<TextView
|
||||
android:id="@+id/track_widget_total_distance_unit"
|
||||
style="@style/TrackWidgetUnit" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_below="@id/track_widget_statistics"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="4dp"
|
||||
android:paddingTop="4dp" >
|
||||
<LinearLayout style="@style/TrackWidgetVerticalSpacer" />
|
||||
<ImageButton
|
||||
android:id="@+id/track_widget_record_button"
|
||||
style="@style/TrackWidgetRecordButton" />
|
||||
<TextView
|
||||
android:id="@+id/track_widget_record_status"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="4"
|
||||
android:layout_width="0dp"
|
||||
android:singleLine="true"
|
||||
style="@style/TextSmall" />
|
||||
<ImageButton
|
||||
android:id="@+id/track_widget_stop_button"
|
||||
style="@style/TrackWidgetStopButton" />
|
||||
<LinearLayout style="@style/TrackWidgetVerticalSpacer" />
|
||||
</LinearLayout>
|
||||
<ImageView style="@style/TrackWidgetLogo" />
|
||||
</RelativeLayout>
|
||||
@@ -0,0 +1,81 @@
|
||||
<?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.
|
||||
-->
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:background="@drawable/track_widget_background"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="fill_parent"
|
||||
android:padding="@dimen/widget_margin" >
|
||||
<LinearLayout
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_height="100dp"
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="4dp"
|
||||
android:paddingLeft="12dp"
|
||||
android:paddingRight="12dp"
|
||||
android:paddingTop="4dp" >
|
||||
<ImageButton
|
||||
android:id="@+id/track_widget_record_button"
|
||||
style="@style/TrackWidgetRecordButton" />
|
||||
<LinearLayout
|
||||
android:clickable="true"
|
||||
android:id="@+id/track_widget_statistics"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_weight="1"
|
||||
android:layout_width="0dp"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="4dp"
|
||||
android:paddingRight="4dp" >
|
||||
<LinearLayout
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="vertical" >
|
||||
<TextView
|
||||
android:text="@string/stats_moving_time"
|
||||
style="@style/TrackWidgetLabel" />
|
||||
<LinearLayout style="@style/TrackWidgetValueContainer" >
|
||||
<TextView
|
||||
android:id="@+id/track_widget_moving_time_value"
|
||||
style="@style/TrackWidgetValue" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout style="@style/TrackWidgetHorizontalSeparator" />
|
||||
<LinearLayout
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="vertical" >
|
||||
<TextView
|
||||
android:text="@string/stats_total_distance"
|
||||
style="@style/TrackWidgetLabel" />
|
||||
<LinearLayout style="@style/TrackWidgetValueContainer" >
|
||||
<TextView
|
||||
android:id="@+id/track_widget_total_distance_value"
|
||||
style="@style/TrackWidgetValue" />
|
||||
<TextView
|
||||
android:id="@+id/track_widget_total_distance_unit"
|
||||
style="@style/TrackWidgetUnit" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<ImageButton
|
||||
android:id="@+id/track_widget_stop_button"
|
||||
style="@style/TrackWidgetStopButton" />
|
||||
</LinearLayout>
|
||||
<ImageView style="@style/TrackWidgetLogo" />
|
||||
</RelativeLayout>
|
||||
@@ -18,44 +18,34 @@ limitations under the License.
|
||||
<color name="black">#FF000000</color>
|
||||
<color name="blue">#FF0000FF</color>
|
||||
<color name="gray">#FF444444</color>
|
||||
<color name="orange">#FFFAAD2C</color>
|
||||
<color name="red">#FFBE161B</color>
|
||||
|
||||
<!-- holo_orange_dark -->
|
||||
<color name="warning_background">#FFFF8800</color>
|
||||
|
||||
<!-- elevation chart colors, green and transparent green -->
|
||||
<color name="elevation_border">#FF339933</color>
|
||||
<color name="elevation_fill">#40B3CFB3</color>
|
||||
|
||||
<!-- speed chart colors, blue and transparent blue -->
|
||||
<color name="speed_border">#FF0066FF</color>
|
||||
<color name="speed_fill">#40C8E0FF</color>
|
||||
|
||||
<!-- pace chart colors, blue and transparent blue -->
|
||||
<color name="pace_border">#FF0066FF</color>
|
||||
<color name="pace_fill">#40C8E0FF</color>
|
||||
|
||||
<!-- heart rate chart colors, red and transparent red -->
|
||||
<color name="heart_rate_border">#FFCC3300</color>
|
||||
<color name="heart_rate_fill">#40E88A70</color>
|
||||
|
||||
<!-- cadence chart colors, pink and transparent pink -->
|
||||
<color name="cadence_border">#FFF128F3</color>
|
||||
<color name="cadence_fill">#40F128F3</color>
|
||||
|
||||
<!-- power chart colors, purple and transparent purple -->
|
||||
<color name="power_border">#FF401465</color>
|
||||
<color name="power_fill">#40401465</color>
|
||||
|
||||
<!-- track widget line -->
|
||||
<!-- track widget -->
|
||||
<color name="track_widget_line">#99999999</color>
|
||||
|
||||
<!-- dynamic track slow path, green -->
|
||||
<color name="slow_path">#F774DF00</color>
|
||||
|
||||
<!-- dynamic track normal path, blue -->
|
||||
<color name="normal_path">#F75858FA</color>
|
||||
|
||||
<!-- dynamic track fast path, red -->
|
||||
<color name="fast_path">#F7DF0101</color>
|
||||
</resources>
|
||||
@@ -2137,19 +2137,19 @@ limitations under the License.
|
||||
<!-- Stats Page -->
|
||||
<string name="stats_average_moving_pace"
|
||||
translation_description="In the 'Stats' page, the average moving pace.">
|
||||
Average moving pace
|
||||
Avg moving pace
|
||||
</string>
|
||||
<string name="stats_average_moving_speed"
|
||||
translation_description="In the 'Stats' page, the average moving speed.">
|
||||
Average moving speed
|
||||
Avg moving speed
|
||||
</string>
|
||||
<string name="stats_average_pace"
|
||||
translation_description="In the 'Stats' page, the average pace.">
|
||||
Average pace
|
||||
Avg pace
|
||||
</string>
|
||||
<string name="stats_average_speed"
|
||||
translation_description="In the 'Stats' page, the average speed.">
|
||||
Average speed
|
||||
Avg speed
|
||||
</string>
|
||||
<string name="stats_elevation"
|
||||
translation_description="In the 'Stats' page, the elevation.
|
||||
@@ -2211,7 +2211,7 @@ limitations under the License.
|
||||
</string>
|
||||
<string name="stats_total_distance"
|
||||
translation_description="In the 'Stats' page, the total distance.">
|
||||
Total distance
|
||||
Distance
|
||||
</string>
|
||||
<string name="stats_total_time"
|
||||
translation_description="In the 'Stats' page, the total time.">
|
||||
@@ -2318,7 +2318,14 @@ limitations under the License.
|
||||
translation_description="Abbreviation for miles per hour. E.g, '5 mi/h'.">
|
||||
mi/h
|
||||
</string>
|
||||
|
||||
<string name="unit_minute_per_kilometer"
|
||||
translation_description="Abbreviation for minutes per kilometer. E.g, '5 min/km'.">
|
||||
min/km
|
||||
</string>
|
||||
<string name="unit_minute_per_mile"
|
||||
translation_description="Abbreviation for minutes per mile. E.g, '5 min/mi'.">
|
||||
min/mi
|
||||
</string>
|
||||
<!-- Value -->
|
||||
<string name="value_adapt_accuracy"
|
||||
translation_description="In a setting picker, the value to adapt for accuracy.">
|
||||
|
||||
@@ -111,6 +111,18 @@ limitations under the License.
|
||||
<item name="android:singleLine">true</item>
|
||||
<item name="android:textColor">@android:color/secondary_text_dark</item>
|
||||
</style>
|
||||
<!-- The style for a horizontal linear layout -->
|
||||
<style name="LinearLayoutHorizontal">
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:layout_width">fill_parent</item>
|
||||
<item name="android:orientation">horizontal</item>
|
||||
</style>
|
||||
<!-- The style for a vertical linear layout -->
|
||||
<style name="LinearLayoutVertifcal">
|
||||
<item name="android:layout_height">fill_parent</item>
|
||||
<item name="android:layout_width">wrap_content</item>
|
||||
<item name="android:orientation">vertical</item>
|
||||
</style>
|
||||
<!-- The style for the scroll view -->
|
||||
<style name="ScrollView">
|
||||
<item name="android:layout_height">fill_parent</item>
|
||||
@@ -194,27 +206,96 @@ limitations under the License.
|
||||
<item name="android:layout_width">fill_parent</item>
|
||||
<item name="android:orientation">vertical</item>
|
||||
</style>
|
||||
<!-- The style for the track widget label -->
|
||||
<style name="TrackWidgetLabel" parent="@style/TextSmall">
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:layout_weight">1</item>
|
||||
<item name="android:layout_width">0dp</item>
|
||||
<!-- The style for the track widget button -->
|
||||
<style name="TrackWidgetButton">
|
||||
<item name="android:background">@android:color/transparent</item>
|
||||
<item name="android:layout_gravity">center_vertical</item>
|
||||
<item name="android:scaleType">fitXY</item>
|
||||
</style>
|
||||
<!-- The style for the track widget separator -->
|
||||
<style name="TrackWidgetSeparator">
|
||||
<!-- The style for the track widget horizontal separator -->
|
||||
<style name="TrackWidgetHorizontalSeparator">
|
||||
<item name="android:background">@color/track_widget_line</item>
|
||||
<item name="android:layout_height">1dp</item>
|
||||
<item name="android:layout_width">fill_parent</item>
|
||||
</style>
|
||||
<!-- The style for the track widget spacer -->
|
||||
<style name="TrackWidgetSpacer">
|
||||
<item name="android:layout_height">fill_parent</item>
|
||||
<item name="android:layout_width">4dp</item>
|
||||
</style>
|
||||
<!-- The style for the track widget stat -->
|
||||
<style name="TrackWidgetStat">
|
||||
<!-- The style for the track widget item container -->
|
||||
<style name="TrackWidgetItemContainer">
|
||||
<item name="android:layout_gravity">center_horizontal</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:layout_width">fill_parent</item>
|
||||
<item name="android:layout_weight">1</item>
|
||||
<item name="android:layout_width">0dp</item>
|
||||
<item name="android:orientation">vertical</item>
|
||||
<item name="android:paddingBottom">2dp</item>
|
||||
<item name="android:paddingTop">2dp</item>
|
||||
</style>
|
||||
<!-- The style for the track widget label -->
|
||||
<style name="TrackWidgetLabel" parent="@style/TextSmall">
|
||||
<item name="android:layout_gravity">center_horizontal</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:layout_width">wrap_content</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
<item name="android:textAllCaps">true</item>
|
||||
<item name="android:textColor">@color/orange</item>
|
||||
</style>
|
||||
<style name="TrackWidgetLogo">
|
||||
<item name="android:contentDescription">@string/my_tracks_app_name</item>
|
||||
<item name="android:layout_alignParentRight">true</item>
|
||||
<item name="android:layout_alignParentTop">true</item>
|
||||
<item name="android:layout_height">24dp</item>
|
||||
<item name="android:layout_width">20dp</item>
|
||||
<item name="android:padding">4dp</item>
|
||||
<item name="android:scaleType">fitXY</item>
|
||||
<item name="android:src">@drawable/my_tracks_icon</item>
|
||||
</style>
|
||||
<!-- The style for the track widget record button -->
|
||||
<style name="TrackWidgetRecordButton" parent="@style/TrackWidgetButton">
|
||||
<item name="android:contentDescription">@string/icon_record_track</item>
|
||||
<item name="android:layout_height">63dp</item>
|
||||
<item name="android:layout_width">75dp</item>
|
||||
<item name="android:src">@drawable/btn_record</item>
|
||||
</style>
|
||||
<!-- The style for the track widget stop button -->
|
||||
<style name="TrackWidgetStopButton" parent="@style/TrackWidgetButton">
|
||||
<item name="android:contentDescription">@string/icon_stop_recording</item>
|
||||
<item name="android:layout_height">63dp</item>
|
||||
<item name="android:layout_width">63dp</item>
|
||||
<item name="android:src">@drawable/btn_stop_0</item>
|
||||
</style>
|
||||
<!-- The style for the track widget unit -->
|
||||
<style name="TrackWidgetUnit" parent="@style/TextSmall">
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:layout_weight">1</item>
|
||||
<item name="android:layout_width">0dp</item>
|
||||
<item name="android:paddingLeft">4dp</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
</style>
|
||||
<!-- The style for the track widget value -->
|
||||
<style name="TrackWidgetValue" parent="@style/TextSmall">
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:layout_weight">2</item>
|
||||
<item name="android:layout_width">0dp</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
<item name="android:textColor">@android:color/white</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
</style>
|
||||
<!-- The style for the track widget value container -->
|
||||
<style name="TrackWidgetValueContainer">
|
||||
<item name="android:layout_gravity">center_horizontal</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:layout_width">wrap_content</item>
|
||||
<item name="android:orientation">horizontal</item>
|
||||
</style>
|
||||
<!-- The style for the track widget vertical separator -->
|
||||
<style name="TrackWidgetVerticalSeparator">
|
||||
<item name="android:background">@color/track_widget_line</item>
|
||||
<item name="android:layout_height">0dp</item>
|
||||
<item name="android:layout_weight">1</item>
|
||||
<item name="android:layout_width">1dp</item>
|
||||
</style>
|
||||
<!-- The style for the track widget vertical spacer -->
|
||||
<style name="TrackWidgetVerticalSpacer">
|
||||
<item name="android:layout_height">0dp</item>
|
||||
<item name="android:layout_weight">2</item>
|
||||
<item name="android:layout_width">1dp</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -15,7 +15,10 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:initialLayout="@layout/track_widget"
|
||||
android:initialLayout="@layout/track_widget_large"
|
||||
android:minHeight="110dp"
|
||||
android:minResizeHeight="40dp"
|
||||
android:minResizeWidth="250dp"
|
||||
android:minWidth="250dp"
|
||||
android:resizeMode="vertical"
|
||||
android:updatePeriodMillis="0" />
|
||||
|
||||
Reference in New Issue
Block a user