コード例 #1
0
ファイル: QwertyKeyListener.cs プロジェクト: hakeemsm/XobotOS
		/// <summary>Gets an instance of the listener suitable for use with full keyboards.</summary>
		/// <remarks>
		/// Gets an instance of the listener suitable for use with full keyboards.
		/// Disables auto-capitalization, auto-text and long-press initiated on-screen
		/// character pickers.
		/// </remarks>
		public static android.text.method.QwertyKeyListener getInstanceForFullKeyboard()
		{
			if (sFullKeyboardInstance == null)
			{
				sFullKeyboardInstance = new android.text.method.QwertyKeyListener(android.text.method.TextKeyListener
					.Capitalize.NONE, false, true);
			}
			return sFullKeyboardInstance;
		}
コード例 #2
0
 /// <summary>Gets an instance of the listener suitable for use with full keyboards.</summary>
 /// <remarks>
 /// Gets an instance of the listener suitable for use with full keyboards.
 /// Disables auto-capitalization, auto-text and long-press initiated on-screen
 /// character pickers.
 /// </remarks>
 public static android.text.method.QwertyKeyListener getInstanceForFullKeyboard()
 {
     if (sFullKeyboardInstance == null)
     {
         sFullKeyboardInstance = new android.text.method.QwertyKeyListener(android.text.method.TextKeyListener
                                                                           .Capitalize.NONE, false, true);
     }
     return(sFullKeyboardInstance);
 }
コード例 #3
0
ファイル: QwertyKeyListener.cs プロジェクト: hakeemsm/XobotOS
		/// <summary>
		/// Returns a new or existing instance with the specified capitalization
		/// and correction properties.
		/// </summary>
		/// <remarks>
		/// Returns a new or existing instance with the specified capitalization
		/// and correction properties.
		/// </remarks>
		public static android.text.method.QwertyKeyListener getInstance(bool autoText, android.text.method.TextKeyListener
			.Capitalize cap)
		{
			int off = (int)(cap) * 2 + (autoText ? 1 : 0);
			if (sInstance[off] == null)
			{
				sInstance[off] = new android.text.method.QwertyKeyListener(cap, autoText);
			}
			return sInstance[off];
		}
コード例 #4
0
        /// <summary>
        /// Returns a new or existing instance with the specified capitalization
        /// and correction properties.
        /// </summary>
        /// <remarks>
        /// Returns a new or existing instance with the specified capitalization
        /// and correction properties.
        /// </remarks>
        public static android.text.method.QwertyKeyListener getInstance(bool autoText, android.text.method.TextKeyListener
                                                                        .Capitalize cap)
        {
            int off = (int)(cap) * 2 + (autoText ? 1 : 0);

            if (sInstance[off] == null)
            {
                sInstance[off] = new android.text.method.QwertyKeyListener(cap, autoText);
            }
            return(sInstance[off]);
        }