[android-developers] Re: button text change

2009-01-31 Thread Chander Pechetty
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

[android-developers] Re: button text change

2009-01-31 Thread Marco Schmitz
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

[android-developers] Re: button text change

2009-01-31 Thread Phill Midwinter
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

[android-developers] Re: button text change

2009-01-31 Thread Bob
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