How can I align an element to the right in the FrameLayout?

后端 未结 6 1413
挽巷
挽巷 2021-01-03 21:48

I have a FrameLayout which contains 2 views , the second is something like a Close Button (X) and i want to position it on the right.

I\'ve tried layout

6条回答
  •  醉梦人生
    2021-01-03 22:42

    Do you want to use FrameLayout or RelativeLayout?

    My understanding says that FrameLayout is used if you want to replace your current view with another view. Your requirement can be fulfilled by RelativeLayout.

提交回复
热议问题