Hi every one,
I am Ather Shehzad, I need to ask that I have to use
negative(-) ,morgin in my android application .Is it recommended
approach.I have to do like that to achieve left align behavior of
Gallery tag. My code is the following
DisplayMetrics metrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(metrics);
MarginLayoutParams mlp = (MarginLayoutParams)
g.getLayoutParams();
mlp.setMargins(-(metrics.widthPixels/2 + 60 ),
mlp.topMargin,
mlp.rightMargin,
mlp.bottomMargin
);
Please reply urgently
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en