drawable专题提供drawable的最新资讯内容,帮你更好的了解drawable。
转http://www.cnblogs.com/mainroadlee/archive/2011/01/09/Change_the_background_image_based_on_the_state_of_the_button_on_Android.html Android中Button 有focused,selected, pressed 等不同状态,通过配置一个XML格式的drawable
Drawable Resources See also 2D Graphics A drawable resource is a general concept for a graphic that canbe drawn to the screen and which you can retrieve with APIs such asgetDrawable(int) or apply to a
转载:  http://iaiai.iteye.com/blog/2088381 众所周知,在Android开发里,为了优化在各种分辨率设备上的显示效果,同一份图片素材往往要提供mdpi、hdpi、xhdpi三种(以前还有ldpi),尤其是按钮类的素材,考虑到normal、pressed、focused更是需要至少3×3=9张图片。NinePatch技术虽然可以解决一部分尺寸灵活性的问题,但大部分
切换到project视图时,就可以选根元素了: 在android视图下不可以选根元素:
layer-list可以实现多个图片的叠加 一,在drawable目录下创建layer.xml 其中,left,top,right,bottom属性可以设置上层图片距离底层图片的上下左右的边距 [html] view plain copy <layer-list xmlns:android="http://schemas.android.com/apk/res/android">       <i