Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
got basics of the widget framework up and working.
Yeah, it's a static string, but hey, it works!
- Loading branch information
Showing
35 changed files
with
300 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:state_window_focused="false" android:drawable="@drawable/widget_bg_normal" /> | ||
<item android:state_pressed="true" android:drawable="@drawable/widget_bg_pressed" /> | ||
<item android:state_focused="true" android:drawable="@drawable/widget_bg_selected" /> | ||
<item android:drawable="@drawable/widget_bg_normal" /> | ||
</selector> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/widget" | ||
android:layout_height="wrap_content" | ||
android:layout_width="wrap_content" | ||
android:focusable="true" | ||
style="@style/WidgetBackground"> | ||
|
||
<TextView | ||
android:id="@+id/loading" | ||
android:layout_height="wrap_content" | ||
android:layout_width="wrap_content" | ||
android:includeFontPadding="false" | ||
android:gravity="center_horizontal" | ||
android:text="@string/widget_loading" | ||
android:padding="4dip" | ||
style="@style/Text.Loading" /> | ||
|
||
</LinearLayout> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="black">#f000</color> | ||
<color name="white">#ffff</color> | ||
<color name="semi_white">#f888</color> | ||
<color name="semi_black">#f666</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<resources> | ||
|
||
<style name="WidgetBackground"> | ||
<item name="android:background">@drawable/widget_bg</item> | ||
</style> | ||
|
||
<style name="Text"> | ||
</style> | ||
|
||
<style name="Text.Loading"> | ||
<item name="android:textSize">10sp</item> | ||
<item name="android:textColor">@color/semi_white</item> | ||
</style> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:minWidth="72dip" | ||
android:minHeight="72dip" | ||
android:updatePeriodMillis="0" | ||
android:initialLayout="@layout/widget_loading" | ||
android:configure="com.kroah.clock.Configure" /> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.