最新回答 / Keldian2016
private int[] mm = { R.drawable.m1, R.drawable.m2, R.drawable.m3, R.drawable.m4, R.drawable.mm };把多个图片资源放入drawable中,声明一个数组存储。private void initBitmap() {// if (mBitmap == null) { mBitmap = BitmapFactory.decodeResource(getResources(), mm[(int) (Mat...
2015-02-25
已采纳回答 / hyman
你好,Bitmap.createBitmap(bitmap, x, y, pieceWidth, pieceWidth)你传入的参数y + pieceWidth已经超过你的bitmap的高度了,检查下代码。
2015-02-03
最赞回答 / noprom
@ Andy____表面上来看你确实是省下了不少的时间,但你真的以为看一看代码,自己就能写吗?学习还是要靠自己,以后到了工作中去,谁会给你看已经写好的代码?勤动手,多练练,这才是学习的本质呀,加油~ ~↖(^ω^)↗
2015-01-29