Re: [android-developers] Re: Reposition views att runtime

2010-02-15 Thread sridhar marampudi
The above activity was created using the xml tag: android:theme=*@android:style/Theme.Dialog *This gives the Activity a floating window/Dialog look. On Mon, Feb 15, 2010 at 12:56 PM, sridhar marampudi marampudisrid...@googlemail.com wrote: Hi , If the position of the Activity has to be

Re: [android-developers] Re: Reposition views att runtime

2010-02-15 Thread sridhar marampudi
Hi , If the position of the Activity has to be changed at runtime then we need to get the Window Object from the Activity and then set the x, and y coordinates of the Layoutparams. Below is the snippet from the code which worked out for me. WindowManager.LayoutParams lp =

[android-developers] Re: Reposition views att runtime

2010-01-27 Thread ls02
The problem is that in onCreate where all views are set all views sizes are 0. I have to dynamically create image depending on sizes of some views that are also dynamic depending on their content set at runtime. I didn''t dind any overridable in activity that is called AFTER all views are set and

[android-developers] Re: Reposition views att runtime

2010-01-27 Thread ls02
In activity onCreate where all views are set all views sizes are still 0. I need to create an image that depends on sizes on some views. These views sizes depend on content set at runtime. I didn't find any overridable in activity that is called AFTER all views have been set and inflated and their