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"
More Related Contents:
- Android fade in and fade out with ImageView
- Resizing layouts programmatically (as animation)
- How do you setLayoutParams() for an ImageView?
- Android ImageView size not scaling with source image
- How to expand a layout height with animation?
- Android layout with one side round [closed]
- Adding gif image in an ImageView in android
- Custom ImageView with drop shadow
- How can I dynamically set the position of view in Android?
- Show GIF file with Glide (image loading and caching library)
- How to set margin of ImageView using code, not xml
- Why this line xmlns:android=”http://schemas.android.com/apk/res/android” must be the first in the layout xml file?
- Trying to get the display size of an image in an ImageView
- Android: can height of SlidingDrawer be set with wrap_content?
- Android, move bitmap along a path?
- Android: Last line of textview cut off
- Animation in Notification bar Custom View
- android:select image from gallery then crop that and show in an imageview
- Display Activity From Bottom to Top
- Make new activity appear behind old one during transition
- How to set an imageView’s image from a string?
- How do you make layouts for several Android screen sizes?
- Remove line break in TabLayout
- Set visibility of progress bar gone on completion of image loading using Glide library
- How to create a view that is bigger than the screen?
- How to show imageView full screen on imageView click?
- Best way to create a bottom toolbar in android.
- Horizontal “tab”ish scroll between views
- How to support all the different resolutions of android products
- GridLayoutManager – how to auto fit columns?