本文整理匯總了Java中keepass2android.kbbridge.StringForTyping類的典型用法代碼示例。如果您正苦於以下問題:Java StringForTyping類的具體用法?Java StringForTyping怎麽用?Java StringForTyping使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
StringForTyping類屬於keepass2android.kbbridge包,在下文中一共展示了StringForTyping類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: commitTextForKey
import keepass2android.kbbridge.StringForTyping; //導入依賴的package包/類
private boolean commitTextForKey(final EditorInfo attribute, String key) {
List<StringForTyping> availableFields = keepass2android.kbbridge.KeyboardData.availableFields;
for (StringForTyping str: availableFields)
{
if (str.key.equals(key))
{
Log.d("KP2AK", "Typing!");
commitKp2aString(str.value, attribute);
return true;
}
}
return false;
}
示例2: findStringForTyping
import keepass2android.kbbridge.StringForTyping; //導入依賴的package包/類
private StringForTyping findStringForTyping(String key) {
for (StringForTyping s: keepass2android.kbbridge.KeyboardData.availableFields)
{
if (key.equals(s.key))
{
return s;
}
}
//found nothing: return empty struct:
return new StringForTyping();
}
示例3: commitStringForTyping
import keepass2android.kbbridge.StringForTyping; //導入依賴的package包/類
private void commitStringForTyping(StringForTyping theItem) {
if ((mKp2aRememberAutoFill) && (!TextUtils.isEmpty(getCurrentInputEditorInfo().hintText)))
{
EditorInfo editorInfo = getCurrentInputEditorInfo();
String key = editorInfo.packageName+"/"+keepass2android.kbbridge.KeyboardData.entryId+"/"+editorInfo.hintText;
SharedPreferences prefs = getApplicationContext().getSharedPreferences(KP2A_SAVED_FIELD_HINTS, MODE_PRIVATE);
Editor edit = prefs.edit();
edit.putString(key, theItem.key);
edit.commit();
}
Log.d("KP2AK", "committing text for " + theItem.key);
commitKp2aString(theItem.value, getCurrentInputEditorInfo());
}