-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Widget style with solid background
- Loading branch information
Andy Dunn
committed
Aug 5, 2018
1 parent
6b05621
commit 933acaf
Showing
9 changed files
with
61 additions
and
74 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Loading
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item> | ||
<bitmap android:src="@android:drawable/stat_notify_sync_noanim" android:gravity="left"/> | ||
</item> | ||
</layer-list> |
This file was deleted.
Oops, something went wrong.
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,51 +1,49 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/postcodewidget" | ||
android:orientation="horizontal" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:padding="@dimen/widget_padding" | ||
android:background="@drawable/widget_background"> | ||
android:id="@+id/postcodewidget" | ||
android:orientation="horizontal" | ||
android:layout_width="wrap_content" | ||
android:layout_height="match_parent" | ||
android:padding="@dimen/widget_padding" | ||
style="@style/widget_background"> | ||
|
||
<LinearLayout | ||
android:orientation="vertical" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content"> | ||
android:orientation="vertical" | ||
android:layout_width="wrap_content" | ||
android:layout_height="match_parent" | ||
android:padding="8dp"> | ||
|
||
<TextView | ||
android:id="@+id/postcode" | ||
android:paddingTop="5dp" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_vertical" | ||
android:layout_weight="10" | ||
android:paddingLeft="10dp" | ||
android:textColor="@android:color/white" | ||
android:text="@string/nopostcode" | ||
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Large"/> | ||
android:text="@string/app_name" | ||
android:textColor="#FF0" | ||
android:paddingLeft="8dp" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" /> | ||
|
||
<TextView | ||
android:id="@+id/time" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_vertical" | ||
android:layout_weight="10" | ||
android:paddingLeft="10dp" | ||
android:textColor="@android:color/white" | ||
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small.Inverse"/> | ||
android:id="@+id/postcode" | ||
android:layout_width="110sp" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_vertical" | ||
android:paddingLeft="8dp" | ||
android:textColor="@android:color/white" | ||
android:text="@string/locating" | ||
style="@style/widget_postcode" /> | ||
|
||
<TextView | ||
android:id="@+id/time" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_vertical" | ||
android:paddingLeft="8dp" | ||
android:textColor="@android:color/white"/> | ||
</LinearLayout> | ||
|
||
<Button | ||
android:id="@+id/refresh" | ||
android:layout_width="@dimen/button_width" | ||
android:layout_height="@dimen/button_height" | ||
android:layout_weight="2" | ||
android:layout_margin="8dp" | ||
android:background="@drawable/accuracy_background" | ||
android:textColor="@android:color/white"/> | ||
|
||
|
||
android:id="@+id/refresh" | ||
android:layout_width="@dimen/button_width" | ||
android:layout_height="match_parent" | ||
android:background="@drawable/refresh_button_background" | ||
android:textColor="@android:color/white"/> | ||
</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,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<style name="widget_postcode"> | ||
<item name="android:textAppearance">@android:style/TextAppearance.DeviceDefault.Large</item> | ||
</style> | ||
|
||
<style name="widget_background"> | ||
<item name="android:background">@android:drawable/dialog_holo_dark_frame</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
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"?> | ||
<resources> | ||
<style name="widget_postcode"> | ||
<item name="android:textSize">20sp</item> | ||
</style> | ||
|
||
<style name="widget_background"> | ||
<item name="android:background">@android:color/darker_gray</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