forked from upstream-mirrors/OpenTracks
Removed mytracks prefix from files and variables.
Moved colors to colors.xml. Code clean-up and more documentation.
This commit is contained in:
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
@@ -26,17 +26,17 @@ limitations under the License.
|
||||
<LinearLayout
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="fill_parent"
|
||||
android:background="@drawable/widget_background">
|
||||
android:background="@drawable/appwidget_background">
|
||||
<ImageButton
|
||||
android:id="@+id/mytracks_appwidget_button"
|
||||
android:id="@+id/appwidget_button"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:background="@android:color/transparent"
|
||||
android:paddingLeft="10px"
|
||||
android:paddingRight="10px"
|
||||
android:src="@drawable/widget_button_disabled" />
|
||||
android:src="@drawable/appwidget_button_disabled" />
|
||||
<LinearLayout
|
||||
android:id="@+id/statistics"
|
||||
android:id="@+id/appwidget_track_statistics"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_weight="1"
|
||||
@@ -48,62 +48,62 @@ limitations under the License.
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/mytracks_appwidget_distance_text"
|
||||
android:id="@+id/appwidget_distance_text"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:textColor="#EDEDED"
|
||||
android:textColor="@color/appwidget_text"
|
||||
android:textSize="14sp"
|
||||
android:width="110px" />
|
||||
<TextView
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/total_distance_label"
|
||||
android:textColor="#EDEDED"
|
||||
android:textColor="@color/appwidget_text"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
<ImageView
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="1px"
|
||||
android:background="#99999999" />
|
||||
android:background="@color/appwidget_hr" />
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="2px">
|
||||
<TextView
|
||||
android:id="@+id/mytracks_appwidget_time_text"
|
||||
android:id="@+id/appwidget_time_text"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:textColor="#EDEDED"
|
||||
android:textColor="@color/appwidget_text"
|
||||
android:textSize="14sp"
|
||||
android:width="110px" />
|
||||
<TextView
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/moving_time_label"
|
||||
android:textColor="#EDEDED"
|
||||
android:textColor="@color/appwidget_text"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
<ImageView
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="1px"
|
||||
android:background="#99999999" />
|
||||
android:background="@color/appwidget_hr" />
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/mytracks_appwidget_speed_text"
|
||||
android:id="@+id/appwidget_speed_text"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:textColor="#EDEDED"
|
||||
android:textColor="@color/appwidget_text"
|
||||
android:textSize="14sp"
|
||||
android:width="110px" />
|
||||
<TextView
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/average_moving_speed_label"
|
||||
android:textColor="#EDEDED"
|
||||
android:textColor="@color/appwidget_text"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
@@ -47,4 +47,8 @@ limitations under the License.
|
||||
<!-- Purple and a transparent purple -->
|
||||
<color name="power_border">#FF401465</color>
|
||||
<color name="power_fill">#40401465</color>
|
||||
|
||||
<!-- AppWidget colors -->
|
||||
<color name="appwidget_text">#EDEDED</color>
|
||||
<color name="appwidget_hr">#99999999</color>
|
||||
</resources>
|
||||
|
||||
@@ -16,7 +16,7 @@ limitations under the License.
|
||||
-->
|
||||
<appwidget-provider
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:initialLayout="@layout/mytracks_appwidget"
|
||||
android:initialLayout="@layout/appwidget"
|
||||
android:minHeight="72dp"
|
||||
android:minWidth="294dp"
|
||||
android:updatePeriodMillis="0" />
|
||||
Reference in New Issue
Block a user