Just use the app icon rather than a text message for the disconnected widget

This commit is contained in:
Christopher Eby 2010-03-06 23:52:34 -06:00
parent a222d6fa62
commit 6b035ef230
3 changed files with 13 additions and 4 deletions

BIN
res/drawable/icon_selected.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_pressed="true"
android:drawable="@drawable/icon_selected" />
<item
android:state_focused="true"
android:drawable="@drawable/icon_selected" />
<item android:drawable="@drawable/icon" />
</selector>

View File

@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView
<ImageButton
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/stopped_text"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_gravity="center"
android:background="#000"
android:textColor="#fff"
android:text="@string/widget_start_service" />
android:background="@null"
android:src="@drawable/icon_variable" />