首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > XML SOAP >

Android Drawable在XML跟JAVA的表示

2012-08-24 
Android Drawable在XML和JAVA的表示myimage.png图片路径:res/drawable/my_image.png在XML实现:???在JAVA的

Android Drawable在XML和JAVA的表示

myimage.png图片路径:res/drawable/my_image.png

在XML实现:

?

?

?在JAVA的实现:

?

ImageView imageview = new ImageView(this);imageview.setImageDrawable(getResources().getDrawable(R.drawable.myimage)); super.onCreate(savedInstanceState);  setContentView(imageview);
?

热点排行