i have a view in my activity and i want to set above of other view programmatically with animation in runtime.
Im trying to get location on screen but it gives me wrong values..
Anyone knows other way?
Try it With RelativeLayout.LayoutParams and add add a Rule: LayoutParams.Above where the anchor is the view which should be below..
and add this Params to your view. I didn't tried it because I'm on the phone. But maybe it gives you a direction till i'm at home. Then if you want I can provide code to support you in a better way. Hope it fits your needs.
Try this:
Animate change width of android RelativeLayout
Or this :
Android - Change left margin using animation
With LayoutParams above instead of width or height. Didn't try it hope it helps...