Improve power control widget GUI.

Shrink power widget to 3 cells wide.  Reorder buttons to group wireless
and other.  Add color bar to indicate on/off.
This commit is contained in:
Ken Shirriff
2009-06-11 17:03:35 -07:00
parent 0422a3bf61
commit b315980367
13 changed files with 14 additions and 17 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 873 B

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 701 B

After

Width:  |  Height:  |  Size: 847 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 930 B

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 696 B

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 749 B

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 871 B

After

Width:  |  Height:  |  Size: 885 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -36,25 +36,13 @@
/> />
<ImageButton <ImageButton
android:id="@+id/btn_brightness" android:id="@+id/btn_bluetooth"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:layout_marginLeft="3dip" android:layout_marginLeft="3dip"
android:layout_marginRight="3dip" android:layout_marginRight="3dip"
android:background="@drawable/widget_btn" android:background="@drawable/widget_btn"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
/>
<ImageButton
android:id="@+id/btn_sync"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_marginLeft="3dip"
android:layout_marginRight="3dip"
android:background="@drawable/widget_btn"
android:layout_gravity="center_horizontal"
/> />
<ImageButton <ImageButton
@@ -65,17 +53,26 @@
android:layout_marginRight="3dip" android:layout_marginRight="3dip"
android:background="@drawable/widget_btn" android:background="@drawable/widget_btn"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
/> />
<ImageButton <ImageButton
android:id="@+id/btn_bluetooth" android:id="@+id/btn_sync"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:layout_marginLeft="3dip" android:layout_marginLeft="3dip"
android:layout_marginRight="3dip" android:layout_marginRight="3dip"
android:background="@drawable/widget_btn" android:background="@drawable/widget_btn"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
/> />
<ImageButton
android:id="@+id/btn_brightness"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_marginLeft="3dip"
android:layout_marginRight="3dip"
android:background="@drawable/widget_btn"
android:layout_gravity="center_horizontal"
/>
</LinearLayout> </LinearLayout>