This repository has been archived on 2026-10-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
vanilla/res/layout/one_cell_widget.xml
T
Christopher Eby cc953001b8 Set a foreground image instead of background image in the widget
This has proper scaling and can be set in RemoteViews. Curiously, it requires
that the transparent placeholder be the same size as the icon---the image size
doesn't seem to be updated when the drawable state changes
2010-03-20 15:24:16 -05:00

29 lines
915 B
XML

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent">
<ImageView
android:id="@+id/cover_view"
android:layout_height="fill_parent"
android:layout_width="fill_parent" />
<LinearLayout
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:orientation="vertical" >
<ImageButton
android:id="@+id/play_pause"
android:src="@drawable/hidden_play"
android:background="#0000"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_weight="1" />
<ImageButton
android:id="@+id/next"
android:src="@drawable/hidden_next"
android:background="#0000"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_weight="1" />
</LinearLayout>
</RelativeLayout>