¡@

Home 

2014/10/16 ¤W¤È 08:27:21

android Programming Glossary: view.getdrawingcache

android:take screenshot and share it

http://stackoverflow.com/questions/10296711/androidtake-screenshot-and-share-it

activity View view activity.getWindow .getDecorView view.setDrawingCacheEnabled true view.buildDrawingCache Bitmap b1 view.getDrawingCache Rect frame new Rect activity.getWindow .getDecorView .getWindowVisibleDisplayFrame frame int statusBarHeight frame.top int.. activity View view activity.getWindow .getDecorView view.setDrawingCacheEnabled true view.buildDrawingCache Bitmap b1 view.getDrawingCache Rect frame new Rect activity.getWindow .getDecorView .getWindowVisibleDisplayFrame frame int statusBarHeight frame.top int..

Contact Bubble EditText

http://stackoverflow.com/questions/10812316/contact-bubble-edittext

new Canvas b c.translate view.getScrollX view.getScrollY view.draw c view.setDrawingCacheEnabled true Bitmap cacheBmp view.getDrawingCache Bitmap viewBmp cacheBmp.copy Bitmap.Config.ARGB_8888 true view.destroyDrawingCache return new BitmapDrawable viewBmp share..

Android 2.1 View's getDrawingCache() method always returns null

http://stackoverflow.com/questions/2817166/android-2-1-views-getdrawingcache-method-always-returns-null

final View view findViewById R.id.ImageView01 view.setDrawingCacheEnabled true view.buildDrawingCache final Bitmap bmp view.getDrawingCache System.out.println bmp I've already tried different ways to configure the View object for generating the drawing cache e.g...

Android save view to jpg or png

http://stackoverflow.com/questions/3107527/android-save-view-to-jpg-or-png

improve this question You can take advantage of a View's drawing cache. view.setDrawingCacheEnabled true Bitmap b view.getDrawingCache b.compress CompressFormat.JPEG 95 new FileOutputStream some location image.jpg Where view is your View. The 95 is the quality..

how to convert view's to bitmap?

http://stackoverflow.com/questions/7200535/how-to-convert-views-to-bitmap