Layout editor: how to show layout in framelayout container?

I have a layout defined in XML as root ConstraintLayout that contains 4 empty frames for dynamically inflating fragments. To have a better design in the layout editor (Android Studio), is there a way to show / simulate planned layouts in each of these staffing schedules?

This question is not about loading the fragment into the container dynamically (in the code), I am looking for a solution that will allow me to load the layout in the container / Framelayout in the layout editor!

+5
source share
1 answer

According to my knowledge and the answer to this SO question, this is not possible. However, in the answer to this question you can find a workaround.

0
source

Source: https://habr.com/ru/post/1265662/


All Articles