摘要:
一、main.xml布局文件<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> 阅读全文
posted @ 2011-12-28 16:17
Ruthless
阅读(24940)
评论(1)
推荐(3)
摘要:
在Android SDK中可以支持的图片格式如下:png , jpg , gif和bmp。1.Bitmap的创建借助于BitmapFactory。1)资源中的图片使用BitmapFactory获取位图Bitmap bmp = BitmapFactory.decodeResource(this.getResources(), R.drawable.testImg); 或者是Resources res=getResources();//使用BitmapDrawable获取位图//使用BitmapDrawable (InputStream is)构造一个BitmapDrawable;//使用Bitm 阅读全文
posted @ 2011-12-28 16:06
Ruthless
阅读(6235)
评论(0)
推荐(2)