if I have a LinearLayout in my main.xml that looks like this:
Using java Syntax Highlighting
Parsed in 0.011 seconds, using GeSHi
And in my .java-file, I'd like to add an image to this
LinearLayout with the ID "linearlayout1" - how do I refer to exactly that
I tried R.id.linearlayout1.addView(view);
But that doesn't work because R.id.linearlayout1 is an int, and I need a LinearLayout to refer to.
How can that be made? Any ideas?
EDIT: mLinearLayout = (LinearLayout)findViewById(R.id.linearlayout1); doesn't seem to work, either...