在Android的xml中,各种用法:
字段 用法
@ @+id/xxx标示为在R.java中自动生成一个响应的id@string/xxx为在string.xml中相应的定义xxx引用例如:
<Button android:id="@+id/button1" android:text="@string/button1" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
android:layout_width 设置控件的宽度
android:layout_width="wrap_content"
wrap_content为控件大小根据按钮大小改变
android:layout_height 设置控件的高度例如:
android:layout_height="wrap_content"
Android:capitalize 设置首字母是否大写,如果设置为none,则不大写,如果设置为word,则大写例如:
android:capitalize ="none"
Andorid:password 设置该输入框是否为密码,如果设置为true,则为密码例如:
android:password ="true"
Android:textAppearance 设置字体例如
android:textAppearance ="?Android:attr/textAppearanceMedium"

更多相关文章

  1. Android图片的固定大小显示
  2. android ICS4.0.3 改变默认字体大小
  3. Android:为控件绑定监听器
  4. Android:控件布局(相对布局)RelativeLayout
  5. 使用ViewFlipper来组织控件
  6. Android手机开发 控件 TextView文字居中
  7. Android 很酷的天气动画控件
  8. Android 常用控件(四)
  9. 我使用过的 控件的一些特性(layout_weight,paddingleft)

随机推荐

  1. Android中RelativeLayout的使用---------
  2. android:使用SQLite的Blob储存.mp3档案
  3. Android使用newInstance()实例化fragment
  4. 深入了解android平台的jni---编译ffmpeg
  5. Android(安卓)Wake lock
  6. Android中关于Volley的使用(九)认识HurlSta
  7. 关于Android(安卓)TabHost切换Tab字体的
  8. Android百度地图定位收索取周边在列表中
  9. App安全(一) Android防止升级过程被劫持和
  10. Android(安卓)TTS文本转语音TextToSpeech