Skip to content

Commit e4da113

Browse files
authored
Update README.md
1 parent 478f8a5 commit e4da113

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,26 @@ new Dynamico("http://ecloga.org/projects/dynamico",
9393
* layout = Container layout that will contain the loaded views from the json
9494

9595
```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,
97116
"activity_main",
98117
findViewById(R.id.mainLayout))
99118
.initialize();

0 commit comments

Comments
 (0)