当前位置:  编程技术>移动开发
本页文章导读:
    ▪Context的承继关系        Context的继承关系   ContextThemeWrapper包含了与Theme相关的接口 ......
    ▪ 在AppWidget上应用自定义Typeface        在AppWidget上使用自定义Typeface 在AppWidget上使用自定义Typeface     工作中需要在AppWidget上显示一些特殊字符,需要用到自己的 字体配置文件   Appwidget 的 RemoteViews并不提供API方法,无法设.........
    ▪ Appcelerator收购挪动云服务提供商Cocoafish       Appcelerator收购移动云服务提供商Cocoafish Appcelerator, the company behind the popular Titanium app-building platform, is announcing its third acquisition today. The company is buying Cocoafish, a mobile app infrastructure provider that lets.........

[1]Context的承继关系
    来源: 互联网  发布时间: 2014-02-18
Context的继承关系


 

ContextThemeWrapper包含了与Theme相关的接口


    
[2] 在AppWidget上应用自定义Typeface
    来源: 互联网  发布时间: 2014-02-18
在AppWidget上使用自定义Typeface

在AppWidget上使用自定义Typeface

 

 

工作中需要在AppWidget上显示一些特殊字符,需要用到自己的 字体配置文件

 

Appwidget 的 RemoteViews并不提供API方法,无法设置TextView的Typeface属性。

这里用了些歪门邪道。

 

 

Typeface someFont = Typeface.createFromAsset(context.getAssets(), "Dr.eye_phonetic_symbol.ttf");

/**

 * 构建音标图片

 */

Bitmap bitmap=Bitmap.createBitmap(300,30,Bitmap.Config.ARGB_8888);

Canvas canvas=new Canvas(bitmap);

Paint paint=new Paint();

paint.setTypeface(someFont);

paint.setTextSize(14);

paint.setARGB(255, 147, 122, 74);

canvas.drawText(soundmark, 0, 20, paint);

canvas.save();

 

调用底层,直接把这个文字绘成图片

然后调用 setImageViewBitmap方法将其显示在AppWidget上

 

views.setImageViewBitmap(R.id.appwidget_soundmark, bitmap);

 

 


    
[3] Appcelerator收购挪动云服务提供商Cocoafish
    来源: 互联网  发布时间: 2014-02-18
Appcelerator收购移动云服务提供商Cocoafish


Appcelerator, the company behind the popular Titanium app-building platform, is announcing its third acquisition today. The company is buying Cocoafish, a mobile app infrastructure provider that lets developers add various features to apps including messaging capabilities, push notifications, photo uploads, checkins and other social features, storage, discussion forums and more. Although the name implies an iOS affiliation, Cocoafish is actually a cross-platform backend service provider supporting iOS, Android, and even Flash and Ruby.

Starting in Q2 2012, the features Cocoafish previously offered will relaunch as “Appcelerator Cloud Services (ACS)” as a part of the company’s Titanium Platform, and as complete iOS, Android, REST and Javascript SDKs for non-Titanium customers.

The acquisition follows Appcelerator’s previous buyouts of other mobile app infrastructure providers, including the enterprise-focused Aptana and, more recently, Particle Code, which brought additional HTML5 capabilities to Titanium. With Cocoafish, Appcelerator is aiming for the broader mobile market, the company explains – not just Titanium users. Now developers using Objective-C, Java, PhoneGap, Sencha or HTML5 will have access to a scalable server-side backend, similar to what other backend service providers like StackMob, Urban Airship or Parse are offering.

According to Jeff Haynie, Appcelerator CEO, the company chose Cocoafish because it’s the “most complete solution.”

“We took a look at all these companies, and what we liked [about Cocoafish] was that they have 25 well-designed, well-tested services supported,” he explained. “They’re sets of interfaces that work together.”

However, it could be argued that other possible acquisition targets simply weren’t on the market. For example, Urban Airship has been doing a little acquiring of its own in recent months, snapping up SimpleGeo to fill out its own offerings. Asked if Appcelerator considered other companies prior to Cocoafish, Haynie said they “had all sorts of conversations at different levels” with competitors, but were ultimately drawn to Cocoafish for a few key reasons, beyond its feature set. The startup hadn’t raised money, were already profitable, and they were a small, 10-person bootstrapped team based in San Francisco. It just made sense.

The new Appcelerator-branded product will roll out on March 31st, but the company is already planning to continue the work Cocoafish had started. By Q3, the plan is to launch an on-demand, private cloud offering so developers with increased security needs can run the whole stack in their own cloud. There are also plans to support Node.js, expand the common services to offer more features (like video), and offer more identity management options for enterprise customers, like RSA SecureID and Active Directory support, for example.

Appecelerator today has over 35,000 apps that have been built using the Titanium platform, and those apps have been deployed on 40 million devices. But there are also 1.6 million web developers with the company who already use a Javascript API to build native or HTML5 apps, all of whom could also take advantage of ACS.

Although the acquisition makes Appcelerator a direct competitor to the other backend services it already supports in Titanium, Haynie assured us that there would be no change in terms of which backend services developers can use. “Like any platform company, you compete on some things, but on other things you’re helping each other out,” he said of how the new offering impacts competing services.

    
最新技术文章:
▪Android开发之登录验证实例教程
▪Android开发之注册登录方法示例
▪Android获取手机SIM卡运营商信息的方法
▪Android实现将已发送的短信写入短信数据库的...
▪Android发送短信功能代码
▪Android根据电话号码获得联系人头像实例代码
▪Android中GPS定位的用法实例
▪Android实现退出时关闭所有Activity的方法
▪Android实现文件的分割和组装
▪Android录音应用实例教程
▪Android双击返回键退出程序的实现方法
▪Android实现侦听电池状态显示、电量及充电动...
▪Android获取当前已连接的wifi信号强度的方法
▪Android实现动态显示或隐藏密码输入框的内容
▪根据USER-AGENT判断手机类型并跳转到相应的app...
▪Android Touch事件分发过程详解
▪Android中实现为TextView添加多个可点击的文本
▪Android程序设计之AIDL实例详解
▪Android显式启动与隐式启动Activity的区别介绍
▪Android按钮单击事件的四种常用写法总结
▪Android消息处理机制Looper和Handler详解
▪Android实现Back功能代码片段总结
▪Android实用的代码片段 常用代码总结
▪Android实现弹出键盘的方法
▪Android中通过view方式获取当前Activity的屏幕截...
▪Android提高之自定义Menu(TabMenu)实现方法
▪Android提高之多方向抽屉实现方法
▪Android提高之MediaPlayer播放网络音频的实现方法...
▪Android提高之MediaPlayer播放网络视频的实现方法...
▪Android实现文件的分割和组装 iis7站长之家
 


站内导航:


特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

©2012-2021,,E-mail:www_#163.com(请将#改为@)

浙ICP备11055608号-3