在这里下的

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



更多相关文章

  1. android:theme和app:popupTheme的作用,以及在android 3.0以下不起
  2. Android(安卓)动画资源 详解
  3. WebView加载网页基本配置
  4. Android-UI 开源控件
  5. Android开发者指南(12) —— Android(安卓)Supported Media For.
  6. Oprofile分析(android oprofile性能分析)
  7. Poco库使用 CMake 编译,支持 NetSSL
  8. RelativeLayout常用属性介绍及实例讲解
  9. android之Intent的七大属性

随机推荐

  1. Android图形系统分析与移植 -- 三、内核
  2. Android多媒体播放器源码解析(stagefrigh
  3. android几种布局
  4. Android 实现json网络数据通过BaseAdapte
  5. android camera API1调用camera HAL3流程
  6. 秒懂Android注解处理器(Android(安卓)Anno
  7. Android TextUtils类介绍
  8. 如何改变Android Progressbar默认颜色
  9. android收集应用崩溃信息
  10. AES加解密算法在Android中的应用及Androi