想要这样引用:
setContentView(R.layout.session.se);
setContentView(R.layout.Calend.ca);类似这样引用请各位高手解答呀先谢谢你们了
setContentView(R.layout.session.se);
setContentView(R.layout.Calend.ca);类似这样引用请各位高手解答呀先谢谢你们了
解决方案 »
- onActivityResult之后设置setText失效
- android中handler的原理和整个调用过程
- NDK中Socket使用connect时报错:Address family not supported by protocol
- ubuntu10.04安装repo时候出的问题
- >>>>>>>>>>>>>如何在模拟器里看见SD卡
- 初识安桌!问个新手问题。。
- Framework的扩展问题
- 实现类
- 请问可以在surfaceCreated中调用timerUpdateHandler.post(timerUpdateTask)吗?内有代码
- service进程间通信的问题
- 【调查】你是先有的android手机再想搞开发的吗
- 在线求助一个带渐变,阴影效果的png图片的问题!
http://download.csdn.net/source/2388249
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.
就是我新建个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); 只是想,类似读取布局的地方我都能这样写
楼主可以看下apiDemos,也是把所有的布局文件都放在了res/layout目录下。
或许android以后会改进吧。