File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,26 @@ new Dynamico("http://ecloga.org/projects/dynamico",
93
93
* layout = Container layout that will contain the loaded views from the json
94
94
95
95
``` java
96
- new Dynamico (" http://ecloga.org/projects/dynamico" ,
96
+
97
+ StringBuilder sb = new StringBuilder (" {\n " +
98
+ " \" views\" :[\n " +
99
+ " { \n " +
100
+ " \" class\" :\" android.widget.TextView\" ,\n " +
101
+ " \" attributes\" :{ \n " +
102
+ " \" text\" :\" Sample text\" ,\n " +
103
+ " \" textColor\" :\" #FF69B4\"\n " +
104
+ " }\n " +
105
+ " },\n " +
106
+ " { \n " +
107
+ " \" class\" :\" android.widget.ImageView\" ,\n " +
108
+ " \" attributes\" :{\n " +
109
+ " \" src\" : \" https://cdn69.picsart.com/186273671000202.jpg?r1024x1024\"\n " +
110
+ " }\n " +
111
+ " }\n " +
112
+ " ]\n " +
113
+ " }" );
114
+
115
+ new Dynamico (sb,
97
116
" activity_main" ,
98
117
findViewById(R . id. mainLayout))
99
118
.initialize();
You can’t perform that action at this time.
0 commit comments