New widgets, high-res as well as normal-res.

pull/14/head
Tim Su 15 years ago
parent cf9aecddbe
commit b896cef06f

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

@ -11,11 +11,11 @@
android:id="@+id/widget_button"
android:src="@drawable/button_plus"
android:layout_gravity="right"
android:layout_width="100dp"
android:layout_height="50dp"
android:layout_width="100dip"
android:layout_height="50dip"
android:background="#00000000"
android:paddingLeft="38dp"
android:paddingTop="4dp"/>
android:paddingLeft="38dip"
android:paddingTop="4dip"/>
<LinearLayout android:id="@+id/taskbody"
android:layout_width="fill_parent"
@ -31,7 +31,7 @@
android:singleLine="true"
android:maxWidth="170dip"
style="@style/Text.Loading"
android:layout_marginLeft="23dp"/>
android:layout_marginLeft="23dip"/>
<ImageView
android:id="@+id/separator_1"
@ -42,7 +42,6 @@
android:layout_height="wrap_content"
android:layout_marginTop="4dip"/>
<TextView
android:id="@+id/task_2"
android:layout_width="wrap_content"
@ -52,7 +51,7 @@
android:maxWidth="170dip"
android:text="@string/task_name2"
style="@style/Text.Loading"
android:layout_marginLeft="23dp"
android:layout_marginLeft="23dip"
android:layout_marginTop="4dip"/>
<ImageView
@ -74,7 +73,7 @@
android:maxWidth="170dip"
android:text="@string/task_name2"
style="@style/Text.Loading"
android:layout_marginLeft="23dp"
android:layout_marginLeft="23dip"
android:layout_marginTop="4dip"/>
<ImageView
@ -84,7 +83,7 @@
android:src="@drawable/separator"
android:layout_gravity="center_horizontal"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"/>
android:layout_marginTop="50dip"/>
<!-- note that this separator has a huge margin so that no more tasks are displayed -->
@ -97,7 +96,7 @@
android:maxWidth="170dip"
android:text="@string/task_name2"
style="@style/Text.Loading"
android:layout_marginLeft="23dp"
android:layout_marginLeft="23dip"
android:layout_marginTop="4dip"/>
<ImageView
@ -119,7 +118,7 @@
android:maxWidth="170dip"
android:text="@string/task_name2"
style="@style/Text.Loading"
android:layout_marginLeft="23dp"
android:layout_marginLeft="23dip"
android:layout_marginTop="4dip"/>
</LinearLayout>
</LinearLayout>

@ -50,11 +50,11 @@
</style>
<style name="WidgetBackground">
<item name="android:background">@drawable/widget_frame_complete</item>
<item name="android:background">@drawable/widget_frame</item>
</style>
<style name="WidgetBackgroundLand">
<item name="android:background">@drawable/widget_frame_land</item>
<item name="android:background">@drawable/widget_frame</item>
</style>
<style name="Text">

@ -85,7 +85,7 @@ public class AstridAppWidgetProvider extends AppWidgetProvider {
TaskModelForWidget taskModel = (i < taskList.size()) ?
taskList.get(i) : null;
String textContent = "";
int textColor = Color.BLACK;
int textColor = Color.WHITE;
if (taskModel != null) {
textContent = taskModel.getName();

Loading…
Cancel
Save