I think the effect shown by the subject is not accomplished through layout. It may be manually drawn by a custom View, and considering the mask, the tree in front will cover the rear view. If it is used as a custom View, it will still be It's quite complicated. Even if it's not a custom View, it can only be drawn through other drawing engines, such as opengl, but it can never be done through layout.
You have to go through the layout, which is a bit troublesome, unless you use each square as a View, but I always feel that the execution efficiency...
Is this a game? If so, it is best to do it through CoCo2d-x or the unity framework, which can achieve this effect very easily. It is basically impossible and inappropriate to use View to achieve this effect.
I think the effect shown by the subject is not accomplished through layout. It may be manually drawn by a custom View, and considering the mask, the tree in front will cover the rear view. If it is used as a custom View, it will still be It's quite complicated. Even if it's not a custom View, it can only be drawn through other drawing engines, such as opengl, but it can never be done through layout.
You'd better draw this thing manually, otherwise you have to consider the screen size and dynamic calculation.
You have to go through the layout, which is a bit troublesome, unless you use each square as a View, but I always feel that the execution efficiency...
Is this a game? If so, it is best to do it through CoCo2d-x or the unity framework, which can achieve this effect very easily.
It is basically impossible and inappropriate to use View to achieve this effect.
One is to implement it by customizing a ViewGroup, in which each