I learned that to make a bitmap image clickable, I need to assign it to ImageView. However, I am failing to set the position correctly so that it is dynamic with every screensize. It really is not possible to let ImageView locate the bitmap image on the screen and act upon that? I tried so many things but the best I have now is that ImageView creates another image of my button and when I manually change its position, it does not scale properly with other screen sizes.
For example my AdView (visible in xml) scales correctly with other screens but I could not apply the same principles with my button.
I would prefer if ImageView would just take the location of drawn bitmap button on screen but if this is not possible, could you guys please provide me with some example codes of how to correctly set the button generated by ImageView? So that I can move it to desired location and have it the same across different screen sizes.
I HAVE TRIED:
Changing position manually in SurfaceView - doesnt scale properly
Implement app:layout_widthPercent="50%" etc. - doesnt work for me
Implement app:layout_constraintBottom etc. - doesnt work for me
Thank you very much in advance, this would save my day!