赞
踩
var on = 0.toLong() var bag = true imageView.setOnTouchListener { v, event -> when (event.action) { MotionEvent.ACTION_DOWN -> { if (System.currentTimeMillis() - on < 500) { if (bag) { imageView3.scaleX = 2f imageView3.scaleY = 2f bag = !bag }else{ imageView3.scaleX = 1f imageView3.scaleY = 1f bag = !bag } } on = System.currentTimeMillis() } } true }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。