Set Images Position In Absolute Layout
I have an image setup inside an absolute panel.I am trying to set it's position via code.But I do not see any applicable method/property to set its position. Here is my layout. <
Solution 1:
- Don't use
AbsoluteLayout
. It's deprecated. UseFrameLayout
. - With a FrameLayout, you can create a
FrameLayout.LayoutParams
object for your view, and specify the margin on the left and top. - If you want to animate your view, you can use a
TranslateAnimation
.
If you need to add multiple elements, encapsulate them into a layout and put those underneath your FrameLayout.
Post a Comment for "Set Images Position In Absolute Layout"