android Programming Glossary: srcatop_menu_id
Draw in Canvas by finger android http://stackoverflow.com/questions/16650419/draw-in-canvas-by-finger-android final int BLUR_MENU_ID Menu.FIRST 2 private static final int ERASE_MENU_ID Menu.FIRST 3 private static final int SRCATOP_MENU_ID Menu.FIRST 4 private static final int Save Menu.FIRST 5 @Override public boolean onCreateOptionsMenu Menu menu super.onCreateOptionsMenu.. menu.add 0 BLUR_MENU_ID 0 Blur .setShortcut '5' 'z' menu.add 0 ERASE_MENU_ID 0 Erase .setShortcut '5' 'z' menu.add 0 SRCATOP_MENU_ID 0 SrcATop .setShortcut '5' 'z' menu.add 0 Save 0 Save .setShortcut '5' 'z' return true @Override public boolean onPrepareOptionsMenu.. ERASE_MENU_ID mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.CLEAR mPaint.setAlpha 0x80 return true case SRCATOP_MENU_ID mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.SRC_ATOP mPaint.setAlpha 0x80 return true case Save AlertDialog.Builder..
Android Null Exception on Calling function http://stackoverflow.com/questions/17781069/android-null-exception-on-calling-function final int BLUR_MENU_ID Menu.FIRST 2 private static final int ERASE_MENU_ID Menu.FIRST 3 private static final int SRCATOP_MENU_ID Menu.FIRST 4 @Override public boolean onCreateOptionsMenu Menu menu super.onCreateOptionsMenu menu menu.add 0 COLOR_MENU_ID.. menu.add 0 BLUR_MENU_ID 0 Blur .setShortcut '5' 'z' menu.add 0 ERASE_MENU_ID 0 Erase .setShortcut '5' 'z' menu.add 0 SRCATOP_MENU_ID 0 SrcATop .setShortcut '5' 'z' Is this the mechanism to extend with filter effects Intent intent new Intent null getIntent.. return true case ERASE_MENU_ID mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.CLEAR return true case SRCATOP_MENU_ID mPaint.setXfermode new PorterDuffXfermode PorterDuff.Mode.SRC_ATOP mPaint.setAlpha 0x80 return true return super.onOptionsItemSelected..
|