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