screenshot - Android screen shot -


i wanted take screen shots android screen floating button. made floating button , takes screen shots , works there 2 questions 1. how can app take screenshot in way floating button gets hidden appears after screen shot has been taken in order not bother user 2. when press volume down , power key take screenshot, has great animation. how can add animation?

get button's view, , before taking screenshot, hide , unhide after done taking screenshot in floating button's onclick method.

findviewbyid(r.id.floating_button).setvisibility(view.invisible); // take screenshot here findviewbyid(r.id.floating_button).setvisibility(view.visible); 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -