¡@

Home 

2014/10/16 ¤W¤È 08:11:16

android Programming Glossary: color_menu_id

Draw in Canvas by finger android

http://stackoverflow.com/questions/16650419/draw-in-canvas-by-finger-android

x y invalidate break case MotionEvent.ACTION_UP touch_up invalidate break return true private static final int COLOR_MENU_ID Menu.FIRST private static final int EMBOSS_MENU_ID Menu.FIRST 1 private static final int BLUR_MENU_ID Menu.FIRST 2 private.. int Save Menu.FIRST 5 @Override public boolean onCreateOptionsMenu Menu menu super.onCreateOptionsMenu menu menu.add 0 COLOR_MENU_ID 0 Color .setShortcut '3' 'c' menu.add 0 EMBOSS_MENU_ID 0 Emboss .setShortcut '4' 's' menu.add 0 BLUR_MENU_ID 0 Blur .setShortcut.. boolean onOptionsItemSelected MenuItem item mPaint.setXfermode null mPaint.setAlpha 0xFF switch item.getItemId case COLOR_MENU_ID new ColorPickerDialog this this mPaint.getColor .show return true case EMBOSS_MENU_ID if mPaint.getMaskFilter mEmboss mPaint.setMaskFilter..

Android Null Exception on Calling function

http://stackoverflow.com/questions/17781069/android-null-exception-on-calling-function

x y invalidate break case MotionEvent.ACTION_UP touch_up invalidate break return true private static final int COLOR_MENU_ID Menu.FIRST private static final int EMBOSS_MENU_ID Menu.FIRST 1 private static final int BLUR_MENU_ID Menu.FIRST 2 private.. Menu.FIRST 4 @Override public boolean onCreateOptionsMenu Menu menu super.onCreateOptionsMenu menu menu.add 0 COLOR_MENU_ID 0 Color .setShortcut '3' 'c' menu.add 0 EMBOSS_MENU_ID 0 Emboss .setShortcut '4' 's' menu.add 0 BLUR_MENU_ID 0 Blur .setShortcut.. boolean onOptionsItemSelected MenuItem item mPaint.setXfermode null mPaint.setAlpha 0xFF switch item.getItemId case COLOR_MENU_ID new ColorPickerDialog this this mPaint.getColor .show return true case EMBOSS_MENU_ID if mPaint.getMaskFilter mEmboss..