Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is "context click" in Android SDK 23

Tags:

android

There are some new APIs about "context click" in android SDK 23. And I failed to find a full explanation for them.

Some search results (like this for SketchUp) make me think the term "context click" is similar to right-click of mouse. If this is the case here, can "context click" be triggered with touch screen as well?

like image 997
Jokester Avatar asked Feb 11 '16 03:02

Jokester


1 Answers

Looking at the code changes, a context-click can be implemented with either a stylus or a mouse.

Developer comment

Based on API review feedback we should use onContextClick instead of onStylusButtonPress.

Method description

Additionally listens for mouse right clicks and calls the onContextClick method for these as well.

like image 165
OneCricketeer Avatar answered Oct 13 '22 15:10

OneCricketeer