AndroidAbout touch device TOOL_TYPE_STYLUS

Here you can view the motionEvent of the stylus through the log. @Override public boolean onTouchEvent(MotionEvent event) { Log.i(tag, “event=” + event); return true; } @Override public boolean onGenericMotionEvent(MotionEvent event) { Log.i(tag, “G event=” + event); return true; } When approaching the screen, call onGenericMotionEvent When the screen is touched, onTouchEvent is called, toolType[0]=TOOL_TYPE_STYLUS Complete […]

Create a personal technical blog based on Hexo and Butterfly, (15) develop a personal hexo theme-stylus dynamic style syntax

Stylus can be simply understood as a dynamic css style sheet, which adds programming capabilities on the basis of the original W3C regulations, and will be compiled into a common css file through a plug-in before use. Goal of this chapter: Master stylus style syntax, starting from this chapter we will write our own blog […]