Android FrameLayout example


With FrameLayout, we can ensure that the android components overlap. For example, if you have a pic, we want you to write a name on it or write a score, then it would be the most logical solution if we use FrameLayout.

Layout ,XML

  • Set the image in xml according to yourself and drop it into drawable

  • screen output

Dynamic creation

  • We can dynamically adjust the objects we create and place with xml as follows




Demo

  • Our screen output will still look like this

 

if you have question do not forget to write from the chat button next to it or from the comment

You may also like...

Leave a Reply

Your email address will not be published.