android droiddraw 这么简单的功能都实现不了么?JAVA真不是人写的
在这里下的
http://code.google.com/p/droiddraw/
需要root
的Linear layout打横,在属性,点了apply也不行,应该如何操作呢?
真想问问JAVA的人,基本的功能都做不了,还以支持mac os ,linux做广告?不就是用的JVM嘛,真厉害,写helloword程序也能支持多系统呢
真的不需要droiddraw,2011年写android的时候,eclipse的xml编辑已经做的很好了,droiddraw应该是android刚出来的时候09年才有用,而且这2年也没有更新,开源项目就是这样,没有团队财力支援,始终还是取决于个人素质,所以被eclipse赶上是肯定的
Button的Text如何打竖呢,11年初的时候碰到这个问题几乎没人懂,现在百度都能搜一大堆出来
Button是继承TextView的,所以能用TextView的属性,android:ems="1",或者btn.setEms(1);
http://www.eoeandroid.com/thread-155951-1-1.html
只能说明现在写android的人已经多了很多,想不服老都不行,不进则退。
转换
1. Bitmap 转化为 byte
ByteArrayOutputStream out = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
byte[] array= out.toByteArray();
2. byte转化为bitmap
Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length);
3. bitmap转化为Drawable
Drawable drawable = new FastBitmapDrawable(bitmap);
4. Drawable转化为bitmap
a. BitmapDrawable, FastBitmapDrawable直接用getBitmap
b. 其他类型的Drawable用Canvas画到一个bitmap上
Canvas canvas = new Canvas(bitmap)
drawable.draw(canvas)
5.id转化graphic.drawable
Drawable drawable = activity.getResources().getDrawable(R.drawable.icon);
6.id转化成Bitmap
Bitmap bitmap = BitmapFactory. decodeResource (Resources res, int id)
Adapter 映射
http://www.cnblogs.com/allin/archive/2010/05/11/1732200.html
更多相关文章
- android:theme和app:popupTheme的作用,以及在android 3.0以下不起
- Android(安卓)动画资源 详解
- WebView加载网页基本配置
- Android-UI 开源控件
- Android开发者指南(12) —— Android(安卓)Supported Media For.
- Oprofile分析(android oprofile性能分析)
- Poco库使用 CMake 编译,支持 NetSSL
- RelativeLayout常用属性介绍及实例讲解
- android之Intent的七大属性