String[] words = {"cat", "dog", "man"};  
List<String> wordList = Arrays.asList(words);  

final ArrayList<String> rows = new ArrayList<String>(Arrays.asList(getResources().getStringArray(R.array.safe_search_list)));

resource 定義

    <string-array name="safe_search_list">
        <item>active</item>
        <item>moderate</item>
        <item>off</item>
    </string-array>
© 2024 Falco Tech Blog Suffusion theme by Sayontan Sinha