標簽用于指定屏幕內的焦點View。
例如我們點擊tab鍵或enter鍵焦點自動進入下一個輸入框
用法: 將標簽置于Views標簽內部
<EditText id="@+id/text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:paddingBottom="4">
<requestFocus />
</EditText>
android:ems = "10" 設置TextView或者Edittext的寬度為10個字符的寬度。當設置該屬性后,控件顯示的長度就為10個字符的長度,超出的部分將不顯示。
轉載:http://blog.sina.com.cn/s/blog_90cdca4c01011kdc.html
posted on 2014-11-27 00:11
Terry Zou 閱讀(246)
評論(0) 編輯 收藏 所屬分類:
Android