最新回答 / 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