At the moment I am working on a file browser. Everything works fine with one exception: If the user clicks on an image (jpg, png, bmp, ..), I want the image to be displayed
Use FrameLayout as it's parent rather than RelativeLayout and set to wrap_content and 0 margins.
Try:
The result should be a background the same size as the ImageView.
If this does work. Try modifying this in a custom theme: