读书人

android应用资源小结

发布时间: 2014-04-27 16:34:27 作者: rapoo

android应用资源总结
Resources res = getResources();String title = res.getText(R.string.xxx);Drawable logo = res.getDrawable(R.drawable.xxx);

?3.????? 在xml文件中使用资源

??????? @resource_type/resource_name

?????? 例如:@color/red

???????????????? @string/hello

读书人网 >Android

热点推荐