android获取输入框的字符串,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.

通过设备的键盘输入字符的输入框。没有设备时使用 Fake Keyboard 模拟键盘。使用图层的 Touch 按钮可获取有关文本和编辑状态的信息。

9d3c5efa5aab

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 锚点

The anchor point to position the layer relative to. See Coordinates for more information.

位于屏幕中的锚点,详细信息阅读Coordinates 坐标。

Font Name 字体

The font name of the text.

字符字体名称。

Font Size 字号

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.

一个交互连接到此接口,选中输入框并显示键盘。

End Editing 结束编辑

A pulse that unfocuses the text field and hides the keyboard if on an iPhone or iPad.

一个交互连接到此接口,输入框失焦并隐藏键盘。

Color 颜色

The color of the text.

字符的颜色。

Accent Color 输入框颜色

The color of the cursor and underline when editing.

编辑时光标和下划线的颜色。

Text 字符

A text string to change the text field to. Use Set Text to change the text.

默认显示的文字。使用 Set Text 属性接口更改字符。

Hint Text 提示文字

The placeholder text when no text is entered in the field.

没有字符输入时的占位文本。

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 发布

A boolean that is true when the text field is focused.

输入框选中时布尔值为真。

Text 文字

The current text string in the text field.

文本字段中的当前文本字符串。

Enter Pressed 按下输入

A pulse that represents when the return key is pressed.

表示按下返回键时的脉冲。

全部图层,查看 图层目录

Related Patches 相关模块

Text Input Info

Related Layers 相关图层

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值