android_UI界面设计
Android UI开发专题(一) 之界面设计
发帖日期:2010-02-09 10:49:28 标签:ophone
近期很多网友对Android用户界面的设计表示很感兴趣,对于Android UI开发自绘控件和游戏制作而言掌握好绘图基础是必不可少的。本次专题分10节来讲述,有关OpenGL ES相关的可能将放到以后再透露。本次主要涉及以下四个包的相关内容:
android.content.res 资源类
android.graphics 底层图形类
android.view 显示类
android.widget 控件类
一、android.content.res.Resources
对于Android平台的资源类android.content.res.Resources可能很多网友比较陌生,一起来看看SDK上是怎么介绍的吧,Contains classes for accessing application resources, such as raw asset files, colors, drawables, media or other other files in the package, plus important device configuration details (orientation, input types, etc.) that affect how the application may behave.平时用到的二进制源文件raw、颜色colors、图形drawables和多媒体文件media的相关资源均通过该类来管理。
int getColor(int id) 对应res/values/colors.xml
Drawable getDrawable(int id) 对应res/drawable/
XmlResourceParser getLayout(int id) 对应res/layout/
String getString(int id) 和CharSequence getText(int id) 对应
res/values/strings.xml
InputStream openRawResource(int id) 对应res/raw/
void parseBundleExtra (String tagName, AttributeSet attrs, Bundle outBundle) 对应res/xml/
String[] getStringArray(int id) res/values/arrays.xml
float getDimension(int id) res/values/dimens.xml
二、android.graphics.Bitmap
作为位图操作类,Bitmap提供了很多实用的方法,常用的我们总结如下:
boolean compress(Bitmap.CompressFormat format, int quality, OutputStream stream) 压缩一个Bitmap对象根据相关的编码、画质保存到一个OutputStream中。其中第一个压缩格式目前有JPG和PNG
void copyPixelsFromBuffer(Buffer src) 从一个Buffer缓冲区复制位图像素
void copyPixelsToBuffer(Buffer dst) 将当前位图像素内容复制到一个Buffer缓冲区
Android开发UI界面设计之按钮状态_计算机软件及应用_IT/计算机_专业资料。一些关于android 界面的处理和细节的修饰的文档Android 开发 UI 界面设计 ON 六 16 2011 ...
android ui界面设计参数讲解_计算机软件及应用_IT/计算机_专业资料。android界面android ui 界面设计参数讲解 android:layout_width 设置组件的宽度 设置组件的高度 ...
Android UI开发专题(一) 之界面设计_工学_高等教育_教育专区。android应用开发近期很多网友对 Android 用户界面的设计表示很感兴趣,对于 Android UI 开发自绘控件...
android ui界面设计_计算机软件及应用_IT/计算机_专业资料。android ui界面设计android ui 界面设计也许有的开发者觉得在 Android 开发中用户界面设计和实现简陋而...
Android UI 开发专题 (一) 界面设计出处:西西整理 作者:佚名 人气:50 次 评论: 0 我要发表看法 近期很多网友对 Android 用户界面的设计表示很感兴趣,对于 ...
04 Android 用户界面设计... 52页 1下载券 android UI界面设计 7页 1下载...Android 界面设计总结 1、如何去除界面顶部标题栏 title: 有两种方法:1、在程序...
Android UI Patterns安卓系统界面设计图形_设计/艺术_人文社科_专业资料。安卓系统界面设计的介绍与案例Android UI Patterns by Peter Pascale, Vladan Pulec Agenda...
Android的界面设计规范_计算机软件及应用_IT/计算机_专业资料。Android UI 界面设计Android 的界面设计规范作者:Bruce Lee 出处:http://www.cnblogs.com/BruceLee...
Android_界面设计指南_互联网_IT/计算机_专业资料。Android_界面设计指南Android UI 设计指南(自译) 一、图标设计指南创建一个统一的外观和整体的用户界面效果以...
热门文档