This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun test() { | |
mAdapter.setItems( | |
ItemList.create() | |
.addAll(listOf<String>(), ForString()) | |
.addAll(listOf<Int>(), ForInt()) | |
) | |
} | |
class ForString : BindableItemController<String, ForString.Holder>() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//хэдеры | |
public static final Map<String, String> OPTIONS_HEADERS = new HashMap<String, String> () {{ | |
put("Access-Control-Request-Headers","authorization, content-type, accept, origin"); | |
put("Origin", "http://demos.algorithmia.com"); | |
put("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7"); | |
put("Referer", "http://demos.algorithmia.com/colorize-photos/"); | |
put("Access-Control-Request-Method", "POST"); | |
}}; | |
public static final Map<String, String> MAIN_HEADERS = new HashMap<String, String> () {{ |