【Android开发API】用户界面-文本区域 - Text Fields.pdfVIP

【Android开发API】用户界面-文本区域 - Text Fields.pdf

  1. 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
【Android开发API】用户界面-文本区域 - Text Fields

eoe 移动开发者社区 负责⼈:Monica 主任务原文链接:/guide/topics/ui/controls/text.html A text field allows the user to type text into your app. It can be either single line or multi-line. Touching a text field places the cursor and automatically displays the eyboard. In addition to typing, text fields allow for a variety of other activities, such as text selection (cut, copy, paste) and data loo -up via auto-completion. 文本框允许用户在应用程序中输⼊文本 。它们可以是单 的,也可以是多 的。点击文本框后显示光标,并 自动 显示键盘 。除了输⼊,文本框还包含其它操作,比如文本选择 (剪切,复制,粘贴)以及数据的自动查找功能 。 You can add a text field to you layout with the EditText object. You should usually do so in your XML layout with a element. 你可以使用EditText对象在布局中添加⼀个文本字段, android里的写法通常是在XML布局文件中添加元素 /images/ui/edittext-noextract.png Specifying the Keyboard Type-指指定定键键盘盘类类型型 Text fields can have different input types, such as number, date, password, or email address. The type determines what ind of characters are allowed inside the field, and may prompt the virtual eyboard to optimize its layout for frequently used characters. 文本字段可以有不同的输⼊类型,如数字,日期,密码,或电⼦邮件地址 。类型确定文本框内允许输⼊什么样的 字符,可能会提示虚拟键盘调整其布局来显示最常用的字符 。 You can specify the type of eyboard you want for your EditText object with the android :inputType attribute. For example, if you want the user to input an email address, you should use the textEmailAddress input type: 你可以在EditText对象使用Android :inputType属性指定输⼊类型的键盘,例如:你想输⼊⼀个电⼦邮件地址上的 用户,inputType属性应为textEmailAddress: /images/ui/edittext-text.png 图1:默认的文字输⼊类型 。 There are several different input types available for different situations. You can find them all listed with the documentation for android :inputType 针对不同的情况有⼏种不同的输⼊类型 。你可以找到所有的文件中列出的android :inputType属性 /images/ui/edittext-email.png 1/5

文档评论(0)

yan698698 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档