Hi everyone.
I have a relative layout that I want to change the background
according to a set of features. For some reason when I try to change
the background image I get a null pointer exception. Currently in the
onStart method I call a function the handles valedating then determins
what
Post your logcat output and the part of your layout xml file where you
declare the RelativeLayout.
I would guess that you either didn't assign an android:id to the
relative layout, or using the wrong id with findViewById. Because of
this, the value of background is null.
-- Kostya
, November 30, 2010 1:34 PM
To: android-developers@googlegroups.com
Subject: Re: [android-developers] Change Relative layout background dynamically
Issues
Post your logcat output and the part of your layout xml file where you declare
the RelativeLayout.
I would guess that you either didn't assign
3 matches
Mail list logo