Skip to content

Commit

Permalink
Initial big widget commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Su committed Aug 26, 2010
1 parent 972361d commit 597c2ea
Show file tree
Hide file tree
Showing 38 changed files with 1,522 additions and 1 deletion.
Binary file added art/scroll_arrows.xcf
Binary file not shown.
Binary file added art/speech_bubble.xcf
Binary file not shown.
Binary file added art/widget-4x4.xcf
Binary file not shown.
16 changes: 16 additions & 0 deletions astrid/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<!-- Activity to configure Power Pack widget -->
<activity android:name="com.todoroo.astrid.widget.ConfigurePowerWidgetActivity">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>

<!-- ======================================================= Receivers = -->

Expand All @@ -136,6 +142,15 @@
<meta-data android:name="android.appwidget.provider"
android:resource="@xml/widget_provider_info" />
</receiver>
<receiver android:name="com.todoroo.astrid.widget.PowerWidget"
android:label="@string/PPW_widget_44_label"
android:icon="@drawable/icon_pp" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data android:name="android.appwidget.provider"
android:resource="@xml/power_widget_44_provider_info" />
</receiver>

<receiver android:name="com.todoroo.astrid.service.GlobalEventReceiver">
<intent-filter>
Expand All @@ -146,6 +161,7 @@
<!-- ======================================================== Services = -->

<service android:name="com.todoroo.astrid.widget.TasksWidget$UpdateService" />
<service android:name="com.todoroo.astrid.widget.PowerWidget$UpdateService" />

<!-- ======================================================= Providers = -->

Expand Down
1 change: 0 additions & 1 deletion astrid/astrid.launch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<stringAttribute key="ch.zork.quicklaunch.mode" value="run"/>
<intAttribute key="com.android.ide.eclipse.adt.action" value="0"/>
<stringAttribute key="com.android.ide.eclipse.adt.activity" value="com.todoroo.astrid.core.CustomFilterActivity"/>
<stringAttribute key="com.android.ide.eclipse.adt.avd" value="android-22"/>
<stringAttribute key="com.android.ide.eclipse.adt.commandline" value="-scale 0.7"/>
<intAttribute key="com.android.ide.eclipse.adt.delay" value="0"/>
<booleanAttribute key="com.android.ide.eclipse.adt.nobootanim" value="true"/>
Expand Down
Binary file added astrid/res/drawable-hdpi/checkbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/checkbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/importance_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/importance_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/importance_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/importance_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/importance_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/importance_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/scroll_down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/scroll_down_disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/scroll_up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/scroll_up_disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/speech_bubble.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/widget_bg_44_black.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/widget_bg_44_blue.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/widget_bg_44_red.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/widget_bg_44_white.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable-mdpi/widget_task_bg_black.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added astrid/res/drawable/icon_plus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
183 changes: 183 additions & 0 deletions astrid/res/layout-land/widget_power_42.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
<?xml version="1.0" encoding="utf-8"?>

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<LinearLayout
android:id="@+id/widget_bg_black"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/widget_bg_44_black"
android:visibility="gone"
/>
<LinearLayout
android:id="@+id/widget_bg_blue"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/widget_bg_44_blue"
android:visibility="gone"
/>
<LinearLayout
android:id="@+id/widget_bg_red"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/widget_bg_44_red"
android:visibility="gone"
/>
<LinearLayout
android:id="@+id/widget_bg_white"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/widget_bg_44_white"
android:visibility="gone"
/>
<RelativeLayout
android:id="@+id/widget"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dp">

<!-- header section -->
<LinearLayout
android:id="@+id/header"
android:layout_width="fill_parent"
android:layout_height="36dp"
android:paddingTop="0dp"
android:paddingBottom="0dp"
android:paddingLeft="7dp"
android:paddingRight="0dp"
android:orientation="horizontal"
android:layout_alignParentTop="true">
<TextView
android:id="@+id/widget_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="left"
android:textColor="#ffffff"
android:textSize="20sp"
android:textStyle="bold"
android:gravity="center"
android:paddingTop="3dp"
android:paddingBottom="2dp"
android:ellipsize="start" />
<LinearLayout
android:visibility="gone"
android:layout_width="wrap_content"
android:layout_height="36dp"
android:paddingTop="10dp"
android:paddingBottom="9dp"
android:paddingLeft="10dp"
android:paddingRight="9dp" >
<ImageView
android:src="@drawable/button_plus"
android:layout_width="17dp"
android:layout_height="17dp"
/>
</LinearLayout>
</LinearLayout>


<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/header"
android:layout_alignParentBottom="true"
android:paddingBottom="5dp">

<LinearLayout
android:id="@+id/task_list"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="fill_vertical"
android:layout_alignParentTop="true"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@+id/footer">
</LinearLayout>

<RelativeLayout
android:id="@+id/footer"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:paddingLeft="7dp"
android:paddingRight="7dp"
android:layout_alignParentTop="true"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true">
<ImageView
android:id="@+id/scroll_up"
android:src="@drawable/scroll_up"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_alignParentTop="true"
/>
<LinearLayout
android:id="@+id/button_plus"
android:layout_width="wrap_content"
android:layout_height="36dp"
android:paddingTop="10dp"
android:paddingBottom="9dp"
android:paddingLeft="10dp"
android:paddingRight="9dp"
android:layout_below="@+id/scroll_up"
android:layout_above="@+id/scroll_down"
android:gravity="center_vertical">
<ImageView
android:src="@drawable/button_plus"
android:layout_width="17dp"
android:layout_height="17dp"
/>
</LinearLayout>
<ImageView
android:id="@+id/scroll_down"
android:src="@drawable/scroll_down"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_alignParentBottom="true"
/>
</RelativeLayout>

</RelativeLayout>

</RelativeLayout>

<RelativeLayout
android:id="@+id/encouragement"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visibility="gone">
<LinearLayout
android:id="@+id/speech_bubble"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:paddingRight="20dp"
android:paddingLeft="12dp"
android:background="@drawable/speech_bubble"
android:gravity="fill_horizontal" >
<TextView
android:id="@+id/encouragement_text"
android:layout_width="wrap_content"
android:gravity="top"
android:textColor="#ffffff"
android:textSize="14sp"
android:layout_height="38dp"/>
</LinearLayout>
<ImageView
android:id="@+id/icon"
android:src="@drawable/icon_blank"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_alignParentRight="true"
android:layout_alignBottom="@+id/speech_bubble"
android:layout_marginBottom="4dp"/>
</RelativeLayout>

</FrameLayout>
Loading

0 comments on commit 597c2ea

Please sign in to comment.