random click and gesture for android 7.0+!!!

This commit is contained in:
hyb1996
2017-05-16 21:40:23 +08:00
parent ec98d75d3b
commit c4ec951a10
42 changed files with 757 additions and 564 deletions

View File

@@ -1,5 +1,5 @@
module.exports = function(__runtime__, scope){
var ui = Object(__runtime__.ui);
var ui = Object.create(__runtime__.ui);
ui.__id_cache__ = {};
ui.layout = function(xml){
@@ -39,7 +39,13 @@ module.exports = function(__runtime__, scope){
if(typeof(color) == 'string'){
color = android.graphics.Color.parseColor(color);
}
activity.getWindow().setStatusBarColor(color);
if(Build.VERSION.SDK_INT >= 21){
activity.getWindow().setStatusBarColor(color);
}
}
ui.finish = function(){
activity.finish();
}
function decorate(view){