public class Res {
// public static final R.anim anim = new R.anim();
public static final R.array array = new R.array();
public static final R.attr attr = new R.attr();
// public static final R.bool bool = new R.bool();
// public static final R.color color = new R.color();
// public static final R.dimen dimen = new R.dimen();
public static final R.drawable drawable = new R.drawable();
public static final R.id id = new R.id();
// public static final R.integer integer = new R.integer();
public static final R.layout layout = new R.layout();
// public static final R.plurals plurals = new R.plurals();
// public static final R.raw raw = new R.raw();
public static final R.string string = new R.string();
// public static final R.style style = new R.style();
// public static final R.styleable = new R.styleable();
public static final R.xml xml = new R.xml();
}
省去挨个类修改R
// public static final R.anim anim = new R.anim();
public static final R.array array = new R.array();
public static final R.attr attr = new R.attr();
// public static final R.bool bool = new R.bool();
// public static final R.color color = new R.color();
// public static final R.dimen dimen = new R.dimen();
public static final R.drawable drawable = new R.drawable();
public static final R.id id = new R.id();
// public static final R.integer integer = new R.integer();
public static final R.layout layout = new R.layout();
// public static final R.plurals plurals = new R.plurals();
// public static final R.raw raw = new R.raw();
public static final R.string string = new R.string();
// public static final R.style style = new R.style();
// public static final R.styleable = new R.styleable();
public static final R.xml xml = new R.xml();
}
省去挨个类修改R
解析Android R资源文件结构
本文深入探讨了Android R资源文件的使用与结构,详细解释了各类型资源的定义及应用,包括动画、数组、属性、布尔值、颜色、尺寸、绘图、ID、整数、布局、复数、原始数据、字符串、样式、XML等。

被折叠的 条评论
为什么被折叠?



