I have a FrameLayout in which I put the Button and FrameLayout in order to overlap with the image (future animation, therefore FrameLayout ) button. The preview displays everything correctly:
However, at startup, the button overlaps the "FrameLayout":
Here is the markup:
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="0.25"> <Button android:id="@+id/button_auth" android:layout_width="match_parent" android:layout_height="match_parent" /> <FrameLayout android:layout_width="36dp" android:layout_height="36dp" android:layout_gravity="center" android:background="@drawable/ic_refresh_36dp_1" /> </FrameLayout> Why Button overlaps FrameLayout (although with a similar ... construction, in the same markup, this was not. And how to place FrameLayout on top of Button ?

