Place view inside FrameLayout in Android

前端 未结 5 1296
再見小時候
再見小時候 2020-12-31 17:41

I want to add a view inside a FrameLayout programmatically and to place it in a specific point within the layout with a specific width and height. Does FrameLayout support t

5条回答
  •  旧巷少年郎
    2020-12-31 18:17

    It's true that with FrameLayout all children are pegged to the top left of the screen, but you still have some control with setting their padding. If you set different padding values to different children, they will show up at different places in the FrameLayout.

提交回复
热议问题