Resources res = Resources.open("/myTheme.res");
UIManager.getInstance().setThemeProps(res.getTheme("myTheme"));
嗨,我需要在 LWUIT 中打开我的资源文件,但首先如何创建资源文件?
像这样使用并检查您的资源文件工作位置。
UIManager.getInstance().setThemeProps(res.getTheme(res.getThemeResourceNames()[0]));
在 Shais LWUIT 博客上也有一些关于如何创建 LWUIT 资源文件的优秀教程
http://lwuit.blogspot.com/search/label/LWUIT%20GUIBuilder%20ResourceEditor%20tutorial