[error] Android ime actionGo doesn’t work

  • android:clipchildren Defines whether a child is limited to draw inside of its bounds or not.
  • android:clipToPadding Defines whether the ViewGroup will clip its drawing surface so as to exclude the padding area.
  • android:weightsum Defines the maximum weight sum.

EditText element needs to be configured as a single-line input. Otherwise, the ‘Enter’ key event will behave as a new-line. This is configured in the xml above with the android:singleLine=”true” attribute.

Different manufacturers make a customized keyboard for their phone which may not completely behave as the android standard keyboard. This issue has been raised before. Most people overcome this issue by either overiding the onKey event or using a TextWatcher class.

android:capitalize is deprecated: Use inputType instead

Be careful if you add both android:capitalize="sentences" and android:inputType=text, as the latter seems to have priority over the first and the input won’t be capitalized.

There’s an specific inputType for automatically capitalizing the first letter

android:autoText=textCapSentences

 

textUri(URI格式) VS text

  • none、
  • text、
  • textCapCharacters字母大小、
  • textCapWords单词首字母大小、
  • textCapSentences仅第一个字母大小
  • textAutoCorrect、textAutoComplete自动完成、
  • textMultiLine多行输入、
  • textImeMultiLine输入法多行(如果支持)、
  • textNoSuggestions不提示、
  • textEmailAddress电子邮件地址、
  • textEmailSubject邮件主题、
  • textShortMessage短信息(会多一个表情按钮出来)
  • textLongMessage长讯息
  • textPersonName人名
  • textPostalAddress地址
  • textPassword密码
  • textVisiblePassword可见密码
  • textWebEditText作为网页表单的文本
  • textFilte文本筛选过滤
  • textPhonetic拼音输入
  • numberSigned有符号数字格式
  • numberDecimal可带小数点的浮点格式
  • phone电话号码
  • datetime时间日期
  • date日期
  • time时间。

android 只能输入数字和字母并且弹出数字键盘

android:digits=”0123456789xyzXYZ”
android:inputType=”number”

EditText中同时加这两条

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

生活在西班牙

自己动手丰衣足食

BlueAsteroid

Just another WordPress.com site

Jing's Blog

Just another WordPress.com site

Start from here......

我的心情魔方

天才遠私廚

希望能做一個分享各種資訊的好地方

语义噪声

西瓜大丸子汤的博客

笑对人生,傲立寰宇

Just another WordPress.com site

Where On Earth Is Waldo?

A Project By Melanie Coles

the Serious Computer Vision Blog

A blog about computer vision and serious stuff

Cauthy's Blog

paper review...

Cornell Computer Vision Seminar Blog

Blog for CS 7670 - Special Topics in Computer Vision

datarazzi

Life through nerd-colored glasses

Luciana Haill

Brainwaves Augmenting Consciousness

槑烎

1,2,∞

Dr Paul Tennent

and the university of nottingham

turn off the lights, please

A bunch of random, thinned and stateless thoughts around the Web

%d bloggers like this: