Button,ToggleButton

1.xml示例:

<Button  
android:layout_width="wrap_content"  
android:layout_height="wrap_content"  
android:text="@string/text1"  
android:id="@+id/button1"  
android:background="@color/red"  
android:layout_margin="4px"/>

 

<Button id="@+id/big"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_centerInParent="true"
        android:text="Biiiiiiig text!"
        android:textSize="30sp"
        android:background="@drawable/my_button_background"/>

 


android:background="@color/red" 可以指定为color或drawable。

颜色定义在res/values/colors.xml文件中。

直接指定背景颜色得到的是一个矩形填充的背景,不是圆角背景,但可以使用自定义组件绘制背景,可以灵活实现不同的效果。

 

在OPhone中Button的默认背景图片为 btn_default_small_normal.9.png,OPhone的系统资源图片在<OPhone SDK>\tools\lib\res\default\drawable中。

 

 

 

1.OMS:Open Mobile System,开放移动系统。

   为了突破TD终端瓶颈,以及促进手机终端与中国移动的网络应用服务无终对接,中国移动在Android操作系统基础上自主开发了OMS系统,内置了中国移动的服务菜单。

   任何用Android Api开发的应用程序都可以在OMS终端上正确的运行,反之则不可以。

 

2.OPhone是指采用了OMS智能操作系统的手机,

   版本对应:ophone 1.0对应于android 1.1

                  ophone 1.5对应于android 1.5

                  ophone 1.6对应于android 1.6至android 2.0

                  ophone 2.0对应于android 2.1

                  android 2.2没有ophone的对应版本

 

3.在HTC G7上可以取到content://telephony/carriers/preferapn,在三星i9008上则取不到。可能要使用oms的sdk来获取。

4.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值