Skip to content Skip to sidebar Skip to footer

Android Listpreference And Widget Background

I created a widget (HelloWidget.java), an activity for it (MainActivity.java) and a listpreference (EditPreferences.java). XML files: Main.xml: this has the widget Config.xml: thi

Solution 1:

Your problem is right here:

LinearLayoutll= (LinearLayout) findViewById(R.id.widgetlayout);
ll.setBackgroundDrawable(getResources().getDrawable(R.drawable.blackbg));

Your setting the whole layout (or at least whatever is inside LinearLayout). You should be using the widget instead.

Post a Comment for "Android Listpreference And Widget Background"