[android-developers] layout_gravity programmatically

2010-10-07 Thread Sables
I'm unable to change the layout_gravity of a Button programmatically, does anybody know how to do this? The gravity attribute is easily changed using Button.gravity(), Ie it changes the gravity of the text inside the button I cannot change the gravity of the button itself. I also cannot seem to

[android-developers] Layout_gravity for a button

2010-10-06 Thread Sables
Hi, I can't seem to find anywhere a way to programmatically change the the alignment of the button. In the XML it is simply layout_gravity=Center or something. How do we do this in the code? LayoutParams do not seem to cater for this. -- You received this message because you are subscribed

[android-developers] Re: Crossword Puzzle in Android

2009-10-06 Thread Sables
Does this happen to be an assignment based question. On Oct 1, 4:33 pm, Seth Mould sethmo...@yahoo.com wrote: Carl, that's brilliant. The XML can be adapted to use bars and blocks as I described earlier, then overlayed with text boxes and hey presto! On Sep 28, 4:39 pm, Carl Whalley

[android-developers] Re: out of memory error getWallpaper

2009-08-28 Thread Sables
Are we not able to reassign Bitmaps? I get OOM just by doing something like Bitmap a; a = network.downloadimage(); a = network.downloadimage(); a = network.downloadimage();// -- crash Do I have to : a.recycle() ; a= null; everytime? On Aug 25, 2:25 pm, freeanderson freeander...@gmail.com