Hy,

I have an annoying problem. At first when my fragment starts up, i set the 
layout parameters to the view that i return from the onCreateView method 
(called tempLayout - it's a FrameLayout).
This is how i do it (where x,y,width, height are given to me by the 
constructor method of the custom fragment class):
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(width, 
height);
params.leftMargin = x;
params.topMargin = y;
tempLayout.setLayoutParams(params); params = null;

After some time i want to move the view, and the only way i can think about 
doing that is by changing it's leftMargin and topMargin (which i presume 
are x,y for backwards compatibility; from API 11 we have setX and setY 
methods).
So i use the same code as above and the view doesn't change it's position, 
nor it's size.

Can you tell me what seems to be the issue here?

Thanks,
Mike


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to