我有一个书本应用程序,可以将文本存储在字符串资源中。我必须这样动态地访问它们:
Intent intent = getIntent();
String ID = intent.getStringExtra("ID");
String titleText = getString(getResources().getIdentifier("t"+ID, "string", getPackageName()));
String contentText = getString(getResources().getIdentifier("c"+ID, "string", getPackageName()));
我的应用程序中的章节加载速度非常慢。我试图将每个章节存储在单独的资源文件中。那没有帮助。我该怎么办?