編輯:關於Android編程
// the SAVE_FLAG constants must match their native equivalents
/** restore the current matrix when restore() is called */
public static final int MATRIX_SAVE_FLAG = 0x01;
/** restore the current clip when restore() is called */
public static final int CLIP_SAVE_FLAG = 0x02;
/** the layer needs to per-pixel alpha */
public static final int HAS_ALPHA_LAYER_SAVE_FLAG = 0x04;
/** the layer needs to 8-bits per color component */
public static final int FULL_COLOR_LAYER_SAVE_FLAG = 0x08;
/** clip against the layer's bounds */
public static final int CLIP_TO_LAYER_SAVE_FLAG = 0x10;
/** restore everything when restore() is called */
public static final int ALL_SAVE_FLAG = 0x1F; saveLayer(RectF bounds, Paint paint, int saveFlags);Canvas利用此方法進行圖層管理,可以根據區域保存當前圖層,繪制完成之後利用restoreToCount將圖層綁定;
Android NDk開發系列(Hello JNI)
前言本篇博客主要記錄NDK開發之入門小demo,雖說NDK開發包裡面有hellojni的項目,但是博主還是記錄一下學習的過程吧.AS2.2現在對NDK支持的已經很好了,但
Android照片牆完整版,完美結合LruCache和DiskLruCache
在上一篇文章當中,我們學習了DiskLruCache的概念和基本用法,但僅僅是掌握理論知識顯然是不夠的,那麼本篇文章我們就來繼續進階一下,看一看在實戰當中應
Android使用Retrofit2.0技術仿微信發說說
最近項目做完了,有閒暇時間,一直想做一個類似微信中微信發說說,既能實現拍照,選圖庫,多圖案上傳的案例,目前好多App都有類似微信朋友圈的功能,能過發表說說等附帶圖片上傳。
Android for work總結(下)
Afw流程演示Device OwnerL平台恢復出廠設置連接翻牆Wifi直到出現如下界面點擊”Set up work device”,輸入賬號和激