一:Button

<Button      android:id="@+id/button_order"      android:text="确认下单"      android:layout_width="fill_parent"      android:layout_height="wrap_content"    android:orientation="vertical"  />  

二:ImageButton


    <ImageButton        android:id="@+id/l6"        android:layout_width="match_parent"        android:layout_height="match_parent"        android:src="@drawable/l6" />

三:ToggleButton

    <ToggleButton         android:id="@+id/button_toggle1"        android:layout_height="wrap_content"        android:layout_width="wrap_content"        android:checked="true"        android:textOn="打开"        android:textOff="关闭" />

四:TextView

   <TextView android:id="@+id/myText"android:layout_height="36dip"android:layout_width="fill_parent"android:background="drawable/r1"android:textSize="25dip"android:text="OOO"android:layout_gravity="center"android:ellipsize="marquee"android:singleLine="true"android:focusable="true"android:marqueeRepeatLimit="marquee_forever"android:focusableInTouchMode="true"android:scrollHorizontally="ture" />

android:drawableLeft在文本左边添加图片,同理有Bottom、Top、Right、Padding等
android:ellipsize="marquee"设置使用跑马灯
android:singleLine="true" 是否单行显示
android:marqueeRepeatLimit="marquee_forever" 跑马灯显示次数

更多相关文章

  1. Logcat语法高亮显示:语法高亮显示为Android(安卓)Logcat文件
  2. Android(安卓)Adapter详解
  3. Android(安卓)TextView在XML中的属性
  4. ImageView的属性android:scaleType,即ImageView.setScaleType(Ima
  5. Android实现图片帮助跳转以及选择重拍Sqlite本地保存
  6. ImageView的scaletype属性
  7. PopupWindow 动画显示与消失(逐惭缩放、逐惭透明)
  8. Android下Dialog及Activity屏蔽Home键详解
  9. gallery 显示文字

随机推荐

  1. 调试 Android* x86 应用程序的方法以及要
  2. android 面试总结十条
  3. Android高手进阶教程(三)之----Android(
  4. 在Android中调用颜色的方法
  5. adbshell命令详解ZZ
  6. SPDY协议的Android实现 OKHTTP代码分析
  7. 如何在你的收费应用上使用 Google 的许可
  8. Android(安卓)Things 专题4 SDK框架
  9. Android(安卓)滑动效果基础篇(三)—— Gall
  10. 用eclipse开发android 环境地的安装