function toastAt(msg, x, y){
importClass(android.widget.Toast);
importClass(android.view.Gravity);
var toast= Toast.makeText(context, msg, Toast.LENGTH_SHORT);
toast.setGravity(Gravity.TOP | Gravity.LEFT, x, y);
toast.show();
}
toastAt("啦啦啦", 500, 1000);
最后由 编辑