how to move a button from one position to another?

by srajpal » Sun, 01 Feb 2009 12:34:19 GMT

Sponsored Links
 i cannot seem to figure out how to move a button
something like button.setTop(10);

there are gets for the top and left but no sets?

anybody have any ideas how to dynamically and programmatically move a
button around the screen?

how to move a button from one position to another?

by » Fri, 06 Mar 2009 05:23:43 GMT

 I'm needing to know the same thing.


Sponsored Links

how to move a button from one position to another?

by TAKEphONE » Sun, 08 Mar 2009 17:16:06 GMT


I am calling on my gallery widget, and it does not move it.

The widget is set at y=0 in the layout XML,
and calling the function does not move it...

At what stage do I call it ?



Other Threads

1. How do I get the ScrollView's mTop value (i.e. the height of the status bar)?

I've implemented a square View whose container is a ScrollView (so as
to allow my View to scroll when the IME is shown/hidden).  Because
it's placed in a ScrollView, when my View's onMeasure() is called the
heightMeasureSpec value is 0 (i.e. View.MeasureSpec.UNSPECIFIED + 0).

In portrait, I can set the height of the View based on the full width
of the screen.  In landscape I want the View to be the height of the
screen (i.e. the short length of the screen) minus the status/
notification bar height; how do I get this value (i.e. the
ScrollView's mTop value)?




2. want to get/generate nonce. error in random, getByte

Hello every1,

I am now working on a program which is someting related to IMS.
I want the Server to send back a nonce to the Client.
In order to get nonce, I tried using the code from this site.



--byte[] nonce = new byte[16];
--Random rand;
--rand = SecureRandom.getInstance ("SHA1PRNG");
--rand.getBytes (nonce);

But the problem is I could not use rand.getBytes as the class Random
doesn't provide methot getbytes().

Is there any other way to get or generate nonce? please help.
Thanks a lot.

3. listview fill parent

4. (WTA) Sending "nyangkut terus" di amplop merah

5. Which is the "best"Android Devs Device?

6. Beli android HTC dimana ya?

7. malasiya 4days , only Rs.15000