Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はAndroid開発にまったく慣れていないので、これがひどい初心者の間違いである場合は申し訳ありません.
そうは言っても、java では、example という名前の文字列配列がある場合、example[0] を実行して最初の文字列にアクセスできます。私は基本的に、回答をランダムな順序で配置するクイズアプリを作成していますが、この方法で文字列リソース (my values/strings.xml) の文字列配列にアクセスできるとは思いませんか? ありがとう。
この方法でリソースから文字列を取得できます。
String string = getString(R.string.hello);
詳細はこちら。
ここから
Resources res = getResources(); String[] planets = res.getStringArray(R.array.planets_array);