mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 17:43:06 +02:00
84 lines
2.9 KiB
XML
84 lines
2.9 KiB
XML
<?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.
|
|
-->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:background="@drawable/app_widget_background"
|
|
android:layout_height="fill_parent"
|
|
android:layout_width="fill_parent"
|
|
android:paddingBottom="5dp"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:paddingTop="5dp" >
|
|
<ImageButton
|
|
android:background="@android:color/transparent"
|
|
android:contentDescription="@string/my_tracks_app_name"
|
|
android:id="@+id/appwidget_button"
|
|
android:layout_height="fill_parent"
|
|
android:layout_width="wrap_content"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:src="@drawable/app_widget_button_disabled" />
|
|
<LinearLayout
|
|
android:clickable="true"
|
|
android:id="@+id/appwidget_track_statistics"
|
|
android:layout_height="fill_parent"
|
|
android:layout_weight="1"
|
|
android:layout_width="0dp"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="16dp" >
|
|
<LinearLayout
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="fill_parent"
|
|
android:orientation="horizontal" >
|
|
<TextView
|
|
android:id="@+id/appwidget_distance_text"
|
|
style="@style/TrackWidgetValue" />
|
|
<TextView
|
|
android:text="@string/stats_total_distance"
|
|
style="@style/TextSmall" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:background="@color/appwidget_hr"
|
|
android:layout_height="1dp"
|
|
android:layout_width="fill_parent" />
|
|
<LinearLayout
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="fill_parent"
|
|
android:orientation="horizontal" >
|
|
<TextView
|
|
android:id="@+id/appwidget_time_text"
|
|
style="@style/TrackWidgetValue" />
|
|
<TextView
|
|
android:text="@string/stats_moving_time"
|
|
style="@style/TextSmall" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:background="@color/appwidget_hr"
|
|
android:layout_height="1dp"
|
|
android:layout_width="fill_parent" />
|
|
<LinearLayout
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="fill_parent"
|
|
android:orientation="horizontal" >
|
|
<TextView
|
|
android:id="@+id/appwidget_speed_text"
|
|
style="@style/TrackWidgetValue" />
|
|
<TextView
|
|
android:text="@string/stats_speed"
|
|
style="@style/TextSmall" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout> |