Android — How to position View off-screen?

Instead we can simple give negative values to layout_margin(Top/left/right/bottom)
eg: If you want your view to be off from top of the screen you can specify

android:layout_marginTop="-40dp"

Leave a Comment