語言

Keyboard.CreateKeyFromXml 方法

定義

從基礎實作中的 XML 屬性建立一個金鑰。

[Android.Runtime.Register("createKeyFromXml", "(Landroid/content/res/Resources;Landroid/inputmethodservice/Keyboard$Row;IILandroid/content/res/XmlResourceParser;)Landroid/inputmethodservice/Keyboard$Key;", "GetCreateKeyFromXml_Landroid_content_res_Resources_Landroid_inputmethodservice_Keyboard_Row_IILandroid_content_res_XmlResourceParser_Handler")]
protected virtual Android.InputMethodServices.Keyboard.Key? CreateKeyFromXml(Android.Content.Res.Resources? res, Android.InputMethodServices.Keyboard.Row? parent, int x, int y, System.Xml.XmlReader? parser);
[<Android.Runtime.Register("createKeyFromXml", "(Landroid/content/res/Resources;Landroid/inputmethodservice/Keyboard$Row;IILandroid/content/res/XmlResourceParser;)Landroid/inputmethodservice/Keyboard$Key;", "GetCreateKeyFromXml_Landroid_content_res_Resources_Landroid_inputmethodservice_Keyboard_Row_IILandroid_content_res_XmlResourceParser_Handler")>]
abstract member CreateKeyFromXml : Android.Content.Res.Resources * Android.InputMethodServices.Keyboard.Row * int * int * System.Xml.XmlReader -> Android.InputMethodServices.Keyboard.Key
override this.CreateKeyFromXml : Android.Content.Res.Resources * Android.InputMethodServices.Keyboard.Row * int * int * System.Xml.XmlReader -> Android.InputMethodServices.Keyboard.Key

參數

res
Resources

資源由基礎實作傳遞給關鍵建構子。

parent
Keyboard.Row

提供按鍵鍵盤及基礎實作預設尺寸的列。

x
Int32

基底實作中會新增鍵距前的水平位置。

y
Int32

鍵在基礎實作中的垂直位置。

parser
XmlReader

解析器用於讀取基礎實作中金鑰的 XML 屬性。

傳回

由基地工廠創造的鑰匙。

屬性

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於