I'm starting Java and Android, I'm learning about sample softkeyboards in Android studio. I want to know how to set the preferences screen for long press on a key of the sample keyboard (like the globe) rather than setting the menu of my phone. Sorry for my bad english
The way you can open the preferences screen with a button
< Click on Code> Public Zero (see V) {Switch (v.getId ()) {Case RID BTNPFRF: intention intended = new intent (priority .tov, prefacesivity class); StartActivity; break;
The long click is something like
btn.setOnLongClickListener (new on the CallClickListener) {@ Override Public Boolean on Longclick (see V) {// TODO Auto-Generated Method Stub Returns True;}});
No comments:
Post a Comment