想要这样引用:
setContentView(R.layout.session.se);
setContentView(R.layout.Calend.ca);类似这样引用请各位高手解答呀先谢谢你们了

解决方案 »

  1.   

    是不是没在main  那个xml配置文件没配置啊!或者还是string 里没配置!具体什么错说的清点嘛!
      

  2.   

    Android res目录下只支持线性的目录,即只支持一级目录 ,不支持多级目录。在 Pro Android 2的第42页有介绍。
    http://download.csdn.net/source/2388249
      

  3.   

    It is also worth noting a few constraints regarding resources. First, Android supports
    only a linear list of files within the predefined folders under res. For example, it does not
    support nested folders under the layout folder (or the other folders under res). 
    Second,
    there are some similarities between the assets folder and the raw folder under res.
      

  4.   

    谢谢大家,如果只支持一级目录那模块多的话,xml都写一个目录下很难管理哦哎~~~~我觉得这是android的一个个缺点。非常感谢大家的热心帮助
      

  5.   


    就是我新建个android工程,默认的不是这样么:
    public class mainPage extends Activity {
        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);
        }
    }
    我想在layout目录下建一些子目录存放不同模块的xml文件好便于管理,比如我在layout下建了个test
    文件夹在其中有一个aaa.xml文件,
    那么我代码想这样写:setContentView(R.layout.test.aaa); 只是想,类似读取布局的地方我都能这样写
      

  6.   

    这的确是个问题,
    楼主可以看下apiDemos,也是把所有的布局文件都放在了res/layout目录下。
    或许android以后会改进吧。