Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Layout editor: How to show layout in framelayout container?

I have a layout defined in XML as root ConstraintLayout that contains 4 empty frameLayouts for dynamically inflating fragments. In order to have a better design experience in the layout editor (Android Studio), is there a way to show/mimic the intended layouts in each of these framelayouts?

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

like image 378
Kamy Avatar asked Mar 19 '17 02:03

Kamy


Video Answer


1 Answers

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

like image 106
Jan Slominski Avatar answered Nov 11 '22 06:11

Jan Slominski