There is a background in my app, and it should be changed after some event. So, how should i do that?
main.xml:
<AbsoluteLayout
android:id="@+id/widget0"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@drawable/bg">
and there background should be changed:
if(a<b) *change background to bg2.jpg goes here*
help please and sorry for my english
I see that you use Absolute Layout. So just instantiate new AbsoluteLayout object.
By the way, you can also do
with resourceID should navigate to a drawable ID and set to 0 if you want to remove the background.