forked from upstream-mirrors/OpenTracks
update app widget layout
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user