With regard to changing the icon image i am using the code

RemoteViews remoteView = new 
RemoteViews(getApplicationContext().getPackageName(), 
R.layout.widget_layout);
            remoteView.setImageViewResource(R.id.widgetButton, 
android.R.drawable.ic_menu_close_clear_cancel);

but it doesnt seem to change the image.where widget_layout.xml is below. Any 
advice? thanks again for the help.

<?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">
 <ImageButton android:layout_width="fill_parent" 
android:layout_height="fill_parent" android:id="@+id/widgetButton" 
android:layout_weight="2">
</ImageButton>
</LinearLayout>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to