level 6
var ctx=com.mojang.minecraftpe.MainActivity.currentMainActivity.get();
ctx.runOnUiThread(new java.lang.Runnable({run:function(){try{
var $1=new android.widget.LinearLayout(ctx);
$1.setOrientation(0);
$1.setPadding(-4,-5,0,0);
var $2=new android.widget.Button(ctx);
$2.setText("喷 漆");
$2.setGravity(81);
$2.setOnClickListener(new android.view.View.OnClickListener({onClick:function(){
print("llllll")
}}));
var $2_params=new android.widget.LinearLayout.LayoutParams(200,-4);
$2.setLayoutParams($2_params);
$1.addView($2);
var $=new android.widget.PopupWindow(ctx);
$.setFocusable(true);
$.setContentView($1);
$.setWidth(185);
$.setHeight(85);
$.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(2130706440));
$.showAtLocation(ctx.getWindow().getDecorView(),0,260,800);
}catch(e){print(e)}}}));
2016年03月20日 02点03分
3