Can't Change Position Of Elements In Webview
I developed a simple webview app which is working fine. Now I have to add a back button. I added it as a child of 'FrameLayout'. I can change the size, but I can't change the posi
Solution 1:
I recommend to use XML.
Add this to your XML:
<Button
android:layout_height="wrap_content"
android:id="@+id/button"
android:text="Button"
android:layout_width="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
>
Or replace <RelativeLayout>
with <android.support.constraint.ConstraintLayout>
.
Read here why it works.
Post a Comment for "Can't Change Position Of Elements In Webview"