本文整理汇总了Java中android.text.method.MetaKeyKeyListener.handleKeyUp方法的典型用法代码示例。如果您正苦于以下问题:Java MetaKeyKeyListener.handleKeyUp方法的具体用法?Java MetaKeyKeyListener.handleKeyUp怎么用?Java MetaKeyKeyListener.handleKeyUp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.text.method.MetaKeyKeyListener
的用法示例。
在下文中一共展示了MetaKeyKeyListener.handleKeyUp方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onKeyUp
import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
/**
* Use this to monitor key events being delivered to the application.
* We get first crack at them, and can either resume them or let them
* continue to the app.
*/
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
// Log.v("SpartacusRex","SOFT : onKeyUp "+keyCode +" "+event.getMetaState());
// If we want to do transformations on text being entered with a hard
// keyboard, we need to process the up events to update the meta key
// state we are tracking.
if (PROCESS_HARD_KEYS) {
if (mPredictionOn) {
mMetaState = MetaKeyKeyListener.handleKeyUp(mMetaState,
keyCode, event);
}
}
return super.onKeyUp(keyCode, event);
}
示例2: onKeyUp
import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
/**
* Use this to monitor key events being delivered to the application.
* We get first crack at them, and can either resume them or let them
* continue to the app.
*/
@Override public boolean onKeyUp(int keyCode, KeyEvent event) {
// Log.v("SpartacusRex","SOFT : onKeyUp "+keyCode +" "+event.getMetaState());
// If we want to do transformations on text being entered with a hard
// keyboard, we need to process the up events to update the meta key
// state we are tracking.
if (PROCESS_HARD_KEYS) {
if (mPredictionOn) {
mMetaState = MetaKeyKeyListener.handleKeyUp(mMetaState,
keyCode, event);
}
}
return super.onKeyUp(keyCode, event);
}
示例3: onKeyUp
import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
/**
* Use this to monitor key events being delivered to the application.
* We get first crack at them, and can either resume them or let them
* continue to the app.
*/
@Override public boolean onKeyUp(int keyCode, KeyEvent event) {
// If we want to do transformations on text being entered with a hard
// keyboard, we need to process the up events to update the meta key
// state we are tracking.
if (PROCESS_HARD_KEYS) {
if (mPredictionOn) {
mMetaState = MetaKeyKeyListener.handleKeyUp(mMetaState,
keyCode, event);
}
}
return super.onKeyUp(keyCode, event);
}
示例4: onKeyUp
import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
/**
* Use this to monitor key events being delivered to the application.
* We get first crack at them, and can either resume them or let them
* continue to the app.
*/
@Override public boolean onKeyUp(int keyCode, KeyEvent event) {
// If we want to do transformations on text being entered with a hard
// keyboard, we need to process the up events to update the meta key
// state we are tracking.
if (PROCESS_HARD_KEYS) {
if (mPredictionOn) {
mMetaState = MetaKeyKeyListener.handleKeyUp(mMetaState,
keyCode, event);
}
}
return super.onKeyUp(keyCode, event);
}
示例5: onKeyUp
import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
@Override
public boolean onKeyUp(int keyCode, KeyEvent event)
{
if (!m_started)
return false;
m_metaState = MetaKeyKeyListener.handleKeyUp(m_metaState, keyCode, event);
QtApplication.keyUp(keyCode, event.getUnicodeChar(), event.getMetaState());
return true;
}
示例6: onKeyUp
import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
/**
* Use this to monitor key events being delivered to the application.
* We get first crack at them, and can either resume them or let them
* continue to the app.
*/
@Override public boolean onKeyUp(int keyCode, KeyEvent event) {
// If we want to do transformations on text being entered with a hard
// keyboard, we need to process the up events to update the meta key
// state we are tracking.
if (PROCESS_HARD_KEYS) {
if (mPredictionOn) {
mMetaState = MetaKeyKeyListener.handleKeyUp(mMetaState,
keyCode, event);
}
}
return super.onKeyUp(keyCode, event);
}
示例7: onKeyUp
import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
if (PROCESS_HARD_KEYS) {
if (PredictionOn) {
MetaState = MetaKeyKeyListener.handleKeyUp(MetaState, keyCode, event);
}
}
return super.onKeyUp(keyCode, event);
}
示例8: onKeyUp
import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
// Log.d(TAG, String.format("onKeyUp (%x)", keyCode));
mMetaState = MetaKeyKeyListener.handleKeyUp(mMetaState, keyCode, event);
return super.onKeyUp(keyCode, event);
}
示例9: onKeyUp
import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
Log.i(TAG, "onKeyUp (keyCode='" + keyCode + "', event.keyCode='" + event.getKeyCode() + "', metaState='" + event.getMetaState() + "')");
metaState = MetaKeyKeyListener.handleKeyUp(metaState, keyCode, event);
return super.onKeyUp(keyCode, event);
}