0
與資源等的末尾添加一個打破空間。我如何在Android的串種源
<string name="str">ends with a space </string>
保留空間,但android將它視爲一個沒有破壞的空間。
有沒有一種方法來指定資源字符串末尾的中斷空間?這是一個庫函數,所以我不知道可能在資源中指定了哪些字符串。
顯然我已經考慮:
<string name="str">ends with a space£</string>
<string name="my_breaking_space_at_end_of_android_resource">£</string>
,並使用正則表達式。
這兩種方法的工作:) –