Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
de.vogella.android.widget.example/res/drawable-mdpi/myshape.xml
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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<stroke android:width="2dp" android:color="#FFFFFFFF" /> | ||
<gradient android:startColor="#DD000000" android:endColor="#DD2ECCFA" | ||
android:angle="225"/> | ||
|
||
<corners android:bottomRightRadius="7dp" android:bottomLeftRadius="7dp" | ||
android:topLeftRadius="7dp" android:topRightRadius="7dp"/> | ||
</shape> |
10 changes: 6 additions & 4 deletions
10
de.vogella.android.widget.example/res/layout/widget_layout.xml
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" android:layout_height="fill_parent" | ||
android:background="@color/black"> | ||
<TextView android:text="Static Text" android:id="@+id/TextView01" | ||
android:layout_width="fill_parent" android:layout_height="fill_parent"></TextView> | ||
android:layout_width="match_parent" android:layout_height="match_parent" | ||
android:background="@drawable/myshape" android:layout_margin="8dip"> | ||
<TextView android:layout_margin="4dip" android:text="Static Text" | ||
android:id="@+id/TextView01" android:layout_width="match_parent" | ||
android:layout_height="match_parent" style="@android:style/TextAppearance.Medium" | ||
android:layout_gravity="center"></TextView> | ||
</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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:updatePeriodMillis="30000" android:initialLayout="@layout/widget_layout" | ||
android:minHeight="72dp" android:minWidth="300dp"> | ||
android:updatePeriodMillis="180000" | ||
android:initialLayout="@layout/widget_layout" | ||
android:minHeight="72dp" android:minWidth="146dp"> | ||
</appwidget-provider> |
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