API 23 inputmethodservice.KeyboardView——屬性分析
參閱:http://android.xsoftlab.net/reference/android/inputmethodservice/KeyboardView.html
public class
KeyboardView
extends View
implements View.OnClickListener
Added in API level3
java.lang.Object
↳android.inputmethodservice.KeyboardView
【概述】
顯示虛擬鍵盤的檢視。處理呈現的按鍵並檢測按鍵和觸控動作。
【巢狀類】
介面KeyboardView.OnKeyboardActionListener
【XML屬性】
API 3
android:keyBackground
屬性說明:設定鍵的影象。鍵的影象。 此影象需要是一個StateListDrawable,具有以下可能的狀態:normal, pressed, checkable, checkable+pressed, checkable+checked, checkable+checked+pressed。
必須引用另一個資源(格式:@[package:]type:name)或主題屬性(格式:?[package][type:]name)。
對應的全域性屬性資源符號是keyBackground。
API 3
android:keyPreviewLayout
屬性說明:設定按鍵反饋的佈局資源。
必須引用另一個資源(格式:@[package:]type:name)或主題屬性(格式:?[package][type:]name)。
對應的全域性屬性資源符號是keyBackground。
API 3
android:keyPreviewOffset
屬性說明:設定按鍵反饋的垂直偏移量。
必須是帶單位的浮點型尺寸值(float),如:”14.5sp”。有效的單位包括:px(畫素)、dp(密度無關畫素)、sp(通常用於字型尺寸的可伸縮畫素)、in(英寸)、mm(毫米)。
也可以引用一個包含此型別值的資源(格式:@[package:]type:name)或主題屬性(格式:
對應的全域性屬性資源符號是keyPreviewOffset。
API 3
android:keyTextColor
屬性說明:設定鍵的標籤的顏色。
必須是顏色值(color),格式”#rgb”、”#argb”、”#rrggbb”、”#aarrggbb”。
也可以引用一個包含此型別值的資源(格式:@[package:]type:name)或主題屬性(格式:?[package][type:]name)。
對應的全域性資源符號是foreground。
API 3
android:keyTextSize
屬性說明:設定鍵上文字字元的大小。
必須是帶單位的浮點型尺寸值(float),如:”14.5sp”。有效的單位包括:px(畫素)、dp(密度無關畫素)、sp(通常用於字型尺寸的可伸縮畫素)、in(英寸)、mm(毫米)。
也可以引用一個包含此型別值的資源(格式:@[package:]type:name)或主題屬性(格式:?[package][type:]name)。
對應的全域性屬性資源符號是keyTextSize。
API 3
android:labelTextSize
屬性說明:設定帶文字和圖示的鍵上個的文字的小大。
必須是帶單位的浮點型尺寸值(float),如:”14.5sp”。有效的單位包括:px(畫素)、dp(密度無關畫素)、sp(通常用於字型尺寸的可伸縮畫素)、in(英寸)、mm(毫米)。
也可以引用一個包含此型別值的資源(格式:@[package:]type:name)或主題屬性(格式:?[package][type:]name)。
對應的全域性屬性資源符號是labelTextSize。
API 3
android:popupLayout
屬性說明:設定彈出鍵盤的佈局資源。
必須引用另一個資源(格式:@[package:]type:name)或主題屬性(格式:?[package][type:]name)。
對應的全域性屬性資源符號是popupLayout。
API 3
android:verticalCorrection
屬性說明:抵消觸控Y座標,偏移量糾正。
必須是帶單位的浮點型尺寸值(float),如:”14.5sp”。有效的單位包括:px(畫素)、dp(密度無關畫素)、sp(通常用於字型尺寸的可伸縮畫素)、in(英寸)、mm(毫米)。
也可以引用一個包含此型別值的資源(格式:@[package:]type:name)或主題屬性(格式:?[package][type:]name)。
對應的全域性屬性資源符號是verticalDivider。
【繼承自view.View的XML屬性】
...
【公共建構函式】
KeyboardView(Context context, AttributeSet attrs)
KeyboardView(Context context, AttributeSet attrs, int defStyleAttr)
KeyboardView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)