
跟着API学android
duoduo_die
coder一枚
展开
-
Hello views
1.建立工程----HelloListView 2.创建xml文件 list_item.xml 保存在res/layout/ <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_heig翻译 2012-06-04 14:28:34 · 1215 阅读 · 0 评论 -
Drawable-绘图及效果
1.Bitmap File 从文件加载图片 android支持文件类型有3种(.png,.jpg,.gif) java代码中设置方式 R.drowable.filename xml中获取方式 @drawable/filename 例;图片设置背景 <ImageView android:layout_height="wrap_content" andro翻译 2012-06-04 13:23:25 · 1776 阅读 · 0 评论