Have you done setContentView(R.layout.yourLayout) before calling
this. Looks ok to me, it certainly works for me.
if you are doing this on a certain click , then make sure its
clickable...
button1.setClickable(true);
-Chander
On Jan 31, 10:37 am, Bob bshumsk...@yahoo.com wrote:
Hi,
How do I
sometimes you need to invalidate()
greetings,
darolla
2009/1/31 Chander Pechetty cspeche...@gmail.com:
Have you done setContentView(R.layout.yourLayout) before calling
this. Looks ok to me, it certainly works for me.
if you are doing this on a certain click , then make sure its
Have you set the button id correctly in the XML layout?
2009/1/31 Marco Schmitz netzprofi.ma...@googlemail.com
sometimes you need to invalidate()
greetings,
darolla
2009/1/31 Chander Pechetty cspeche...@gmail.com:
Have you done setContentView(R.layout.yourLayout) before calling
Figured it out, real silly mistake. I was calling setContentView
(R.layout.myLayout) twice, once before and once after my code. Thanks
for all your help!
On Jan 31, 9:02 am, Phill Midwinter ph...@grantmidwinter.com wrote:
Have you set the button id correctly in the XML layout?
2009/1/31
4 matches
Mail list logo