2.7 Material 安卓控件 - Text Field 文本輸入框


An Material text field that uses an Android phone or tablet's native keyboard when running on device.When no device is connected, use the Fake Keyboard.Use the Touch button on the component to get information about the text and editing status.

通過設(shè)備的鍵盤輸入字符的輸入框。沒有設(shè)備時(shí)使用 Fake Keyboard 模擬鍵盤。使用圖層的 Touch 按鈕可獲取有關(guān)文本和編輯狀態(tài)的信息。

Enable 啟用
A boolean that is true when the text field is displayed.
勾選后啟用。

Position 位置
The position to display the text field.
輸入框位置。

Width 寬度
The width of the text field.
輸入框的寬度。

Anchor 錨點(diǎn)
The anchor point to position the layer relative to. See Coordinates for more information.
位于屏幕中的錨點(diǎn),詳細(xì)信息閱讀Coordinates 坐標(biāo)

Font Name 字體
The font name of the text.
字符字體名稱。

Font Size 字號(hào)
The font size of the text.
字符尺寸。

Begin Editing 開始編輯
A pulse that focuses the text field and shows the keyboard if on an iPhone or iPad.
一個(gè)交互連接到此接口,選中輸入框并顯示鍵盤。

End Editing 結(jié)束編輯
A pulse that unfocuses the text field and hides the keyboard if on an iPhone or iPad.
一個(gè)交互連接到此接口,輸入框失焦并隱藏鍵盤。

Color 顏色
The color of the text.
字符的顏色。

Accent Color 輸入框顏色
The color of the cursor and underline when editing.
編輯時(shí)光標(biāo)和下劃線的顏色。

Text 字符
A text string to change the text field to. Use Set Text to change the text.
默認(rèn)顯示的文字。使用 Set Text 屬性接口更改字符。

Hint Text 提示文字
The placeholder text when no text is entered in the field.
沒有字符輸入時(shí)的占位文本。

Underline 下劃線
A boolean that is true when an underline is displayed.
勾選后顯示下劃線,不勾選就不顯示。

Keyboard Type 鍵盤類型
The type of keyboard to use on an Android phone or tablet.
鍵盤類型。

Touch
這里不咋明白
Editing 發(fā)布
A boolean that is true when the text field is focused.
輸入框選中時(shí)布爾值為真。

Text 文字
The current text string in the text field.
文本字段中的當(dāng)前文本字符串。

Enter Pressed 按下輸入
A pulse that represents when the return key is pressed.
表示按下返回鍵時(shí)的脈沖。

全部圖層,查看 圖層目錄


Related Patches 相關(guān)模塊

Text Input Info


Related Layers 相關(guān)圖層

Checkbox 復(fù)選框,Circular Progress 環(huán)形加載,Fake Keyboard 模擬鍵盤,Page Control 翻頁(yè)小點(diǎn)Status Bar 狀態(tài)欄,Switch 開關(guān),


最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容