當前位置: 首頁>>代碼示例>>Java>>正文


Java Configuration.KEYBOARD_QWERTY屬性代碼示例

本文整理匯總了Java中android.content.res.Configuration.KEYBOARD_QWERTY屬性的典型用法代碼示例。如果您正苦於以下問題:Java Configuration.KEYBOARD_QWERTY屬性的具體用法?Java Configuration.KEYBOARD_QWERTY怎麽用?Java Configuration.KEYBOARD_QWERTY使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在android.content.res.Configuration的用法示例。


在下文中一共展示了Configuration.KEYBOARD_QWERTY屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: TerminalKeyListener

public TerminalKeyListener(TerminalManager manager,
		TerminalBridge bridge,
		VDUBuffer buffer,
		String encoding) {
	this.manager = manager;
	this.bridge = bridge;
	this.buffer = buffer;
	this.encoding = encoding;

	selectionArea = new SelectionArea();

	prefs = PreferenceManager.getDefaultSharedPreferences(manager);
	prefs.registerOnSharedPreferenceChangeListener(this);

	deviceHasHardKeyboard = (manager.res.getConfiguration().keyboard
			== Configuration.KEYBOARD_QWERTY);

	updatePrefs();
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:19,代碼來源:TerminalKeyListener.java

示例2: onConfigurationChanged

@Override
protected void onConfigurationChanged(Configuration newConfig) {
    super.onConfigurationChanged(newConfig);

    if (mUrlHasFocus && mUrlFocusedWithoutAnimations
            && newConfig.keyboard != Configuration.KEYBOARD_QWERTY) {
        // If we lose the hardware keyboard and the focus animations were not run, then the
        // user has not typed any text, so we will just clear the focus instead.
        setUrlBarFocus(false);
    }
}
 
開發者ID:rkshuai,項目名稱:chromium-for-android-56-debug-video,代碼行數:11,代碼來源:LocationBarLayout.java

示例3: shouldShowCusrsorInLocationBar

private boolean shouldShowCusrsorInLocationBar() {
    Tab tab = mToolbarModel.getTab();
    if (tab == null) return false;
    NativePage nativePage = tab.getNativePage();
    if (!(nativePage instanceof NewTabPage) && !(nativePage instanceof IncognitoNewTabPage)) {
        return false;
    }

    Context context = mToolbar.getContext();
    return DeviceFormFactor.isTablet(context)
            && context.getResources().getConfiguration().keyboard
            == Configuration.KEYBOARD_QWERTY;
}
 
開發者ID:rkshuai,項目名稱:chromium-for-android-56-debug-video,代碼行數:13,代碼來源:ToolbarManager.java


注:本文中的android.content.res.Configuration.KEYBOARD_QWERTY屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。