This is a wallpaper you can chat with, isn't it? If you are moving from ordinary views, you might have to implement some custom logic, especially if you are drawing images. The FrameLayout function has functions for highlighting and foreground. You can use XML or Java to add regular views to FrameLayout
You can also create a custom Drawable to do a lot of fun things about custom painting. The Drawable object just sends the view canvas.
If you want to measure representations, you will need to do this after the presentation has passed through its measures and layouts. That means doing it in onCreate () returns 0. Many people are fortunate enough to do this in a callback, for example onWindowFocusedChanged
source share