So I have an xml layout im using and it has two main elements, a framelayout that houses a camera preview, and a imageview. The image view is supposed to be visible over the framelayout and it is until the camerapreview is turned on then it gets pushed behind it. What am i doing wrong?
I’ve done a lot of testing removing elements from the layout and rebuilding and i cant seem to fix the cause of the error, i believe the cause must be somewhere in the code.
I think is supposed to get push behind it because is a
RelativeLayout. I think you should use aLinearLayout. Also the attributeandroid:layout_weight="1"is an invalid parameter inRelativeLayout.You can try and force the image view to align top:
Hope that helps.