Using list preference in Android

后端 未结 3 1734
-上瘾入骨i
-上瘾入骨i 2020-12-24 13:09

I have a text to speech application where the user can select a language and also select a male or female voice. The problem is that for each language there are different st

3条回答
  •  萌比男神i
    2020-12-24 14:02

    String arrays can use string resources. This is the easiest (and probably simplest) way to translate user values.

    
        @string/value_1
        @string/value_2
    
    

    See Working with Strings and String Arrays

提交回复
热议问题