Reputation: 1615
I want to make a simple program with 2 Radiobutton (rd1 and rd2
), what can change background to picture s1, or s2, depend on what was selected. How I can make it? I tried background.setBackground (background is my RadioGroup's name), but it didn't work.
Upvotes: 0
Views: 3275
Reputation: 5999
try this for changing android wallpaper.
and if you want change the background for the current activity means
if your layout is lay means then,
lay.BackgroundDrawable(R.drawable.abc);
in onClick listenerof ur radio button
sure it will help you dude..let me know what happened...
Thank you.
Upvotes: 1