Playn Sample - How can I use Android res Folder as resources directory?

让人想犯罪 __ 提交于 2019-12-06 14:28:44

问题


Story in short: I was trying to make playn-showcase-android fit to any screen size. And came across many problems like we cant use 9-patch images, and if we go for scaling, it blur, scale9 images doesn't stretch well when there is text on it..

Finally I decided to make my showcase-android res/ folder to be default resource folder, at least for the Android version. I have tried to edit playn source, but realized that it takes the resources path from class loader.

Is there any thoughts about this? How can I use res/drawable Images for atleast Android version? like in the android specific way.. so that I can make the UI better.


回答1:


blur in PlayN you can disable as follows:

graphics().ctx()
.setTextureFilter(GLContext.Filter.NEAREST, GLContext.Filter.NEAREST);


来源:https://stackoverflow.com/questions/11432674/playn-sample-how-can-i-use-android-res-folder-as-resources-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!