[android-developers] Re: Move buttons within Layout

2010-02-19 Thread Kritzli
Did you mean HelloLinearLayout or the API Demos ? Well, I had a look at both. But as I mentioned before, in my opinion I can't create a layout in XML. It need to be dynamically. Maybe I'm thinking in the wrong direction... -- You received this message because you are subscribed to the Google

[android-developers] Re: Move buttons within Layout

2010-02-19 Thread skink
On Feb 19, 2:16 pm, Kritzli pfister.ta...@googlemail.com wrote: Did you mean HelloLinearLayout or the API Demos ? Well, I had a look at both. But as I mentioned before, in my opinion I can't create a layout in XML. It need to be dynamically. Maybe I'm thinking in the wrong direction...

[android-developers] Re: Move buttons within Layout

2010-02-17 Thread Kritzli
I'm still stuck on this problem. I tried to solve it by making the whole activity dynamic. But still the button is positioned at top left. I can't see why ok.layout(k.getLeft(), k.getTop(), k.getRight(),k.getBottom()); isn't repositioning the button, even if it shows the right Values on LogCat.

Re: [android-developers] Re: Move buttons within Layout

2010-02-17 Thread Mark Murphy
Kritzli wrote: I'm still stuck on this problem. I tried to solve it by making the whole activity dynamic. But still the button is positioned at top left. I can't see why ok.layout(k.getLeft(), k.getTop(), k.getRight(),k.getBottom()); isn't repositioning the button, even if it shows the

[android-developers] Re: Move buttons within Layout

2010-02-17 Thread skink
Kritzli wrote: I'm still stuck on this problem. I tried to solve it by making the whole activity dynamic. But still the button is positioned at top left. I can't see why ok.layout(k.getLeft(), k.getTop(), k.getRight(),k.getBottom()); isn't repositioning the button, even if it shows the

[android-developers] Re: Move buttons within Layout

2010-02-17 Thread Kritzli
Thank you for your replies. But I still don't get it... Could you please explain how I should use the LayoutParams ? I thouht I only can use them with FILL_PARENT, WRAP_CONTENT and addRule() but not to define a position with specific values. @pskink How would you do that ? On 17 Feb., 15:23,

Re: [android-developers] Re: Move buttons within Layout

2010-02-17 Thread Mark Murphy
Kritzli wrote: Thank you for your replies. But I still don't get it... Could you please explain how I should use the LayoutParams ? I thouht I only can use them with FILL_PARENT, WRAP_CONTENT and addRule() but not to define a position with specific values. That's because you can't define a

[android-developers] Re: Move buttons within Layout

2010-02-17 Thread skink
On Feb 17, 4:58 pm, Mark Murphy mmur...@commonsware.com wrote: You cannot just arbitrarily position widgets wherever you want -- their position is dictated by their layouts. unless he writes own custom layout extending ViewGroup - RelativeLayout in his case is pretty useless pskink --

Re: [android-developers] Re: Move buttons within Layout

2010-02-17 Thread Mark Murphy
skink wrote: On Feb 17, 4:58 pm, Mark Murphy mmur...@commonsware.com wrote: You cannot just arbitrarily position widgets wherever you want -- their position is dictated by their layouts. unless he writes own custom layout extending ViewGroup - Agreed. Got any well-documented examples? --

[android-developers] Re: Move buttons within Layout

2010-02-17 Thread skink
On Feb 17, 5:08 pm, Mark Murphy mmur...@commonsware.com wrote: skink wrote: On Feb 17, 4:58 pm, Mark Murphy mmur...@commonsware.com wrote: You cannot just arbitrarily position widgets wherever you want -- their position is dictated by their layouts. unless he writes own custom layout

[android-developers] Re: Move buttons within Layout

2010-02-17 Thread Kritzli
That's because you can't define a position with specific values. Um, why not ? It worked well in onGesturePerformed-Method. That's why I'm thinking it also should be working. And I can't create a layout in XML, cause I don't know how many and where the widgets would be moved. err, well,

[android-developers] Re: Move buttons within Layout

2010-02-10 Thread Kritzli
Ok. Here's some more information about my App. I'm going to create a keyboard app. Or rather an App where you can define your own keyboard. Therefore I have two Activities A and B. Activity A: Here I want to create a single key. This is currently realized by configuring a button. The buttons size

[android-developers] Re: Move buttons within Layout

2010-02-08 Thread Kritzli
You cannot pass a Button via an Intent. You're right. I only pass the height, width and text of the button I customized in Activity A. Activity B cannot modify the UI of Activity A. Activity B cannot safely reuse the widgets of Activity A. I don't want to modify the UI of Activity A.