---
title: "修改包名后，R文件修改问题"
author: "矮蛋蛋"
date: "2012-07-20T09:26:38Z"
tags: []
categories: ["移动开发"]
slug: "r"
draft: false
lastmod: "2012-07-20T09:26:38Z"
id: 1601601
url: "https://aidandan.iteye.com/blog/1601601"
---

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