Android Replace “…” with ellipsis character

后端 未结 7 724
暗喜
暗喜 2020-12-12 09:20

Since AVD tools 16 I\'m getting this warning:

Replace \"...\" with ellipsis character (..., …) ?

in my strings.xml

at thi

相关标签:
7条回答
  • 2020-12-12 09:50

    If you're using Eclipse then you can always do the following:

    • Right click on the warning
    • Select "Quick Fix" (shortcut is Ctrl + 1 by default)
    • Select "Replace with suggested characters"

    This should replace your three dots with the proper Unicode character for ellipsis.

    Just a note: The latest version of ADT (21.1) sometimes won't do the replace operation properly, but earlier versions had no problem doing this.

    This is the character:

    0 讨论(0)
  • 2020-12-12 09:53

    … is the unicode for "" so just replace it. It's better to have it as one char/symbol than three dots.

    0 讨论(0)
  • 2020-12-12 10:07

    The quick fix shortcut in Android Studio is Alt + Enter by default.

    0 讨论(0)
  • 2020-12-12 10:10

    Best not to ignore it as suggested by some, it seems to me. Use Android Studio to correct it (rather than actually typing in the character code), and the tool will replace the three dots with the three-dot unicode character. Won't be confusing to translators etc.

    0 讨论(0)
  • 2020-12-12 10:11

    To make thing short just put … in place ...

    Link to XML character Entities List

    • Look at Unicode column of HTML for row named hellip
    0 讨论(0)
  • 2020-12-12 10:11

    The solution to your problem is:

    Go to Window -> Preferences -> Android -> Lint Error Checking
    

    And search for "ellipsis". Change the warning level to "Info" or "Ignore".

    0 讨论(0)
提交回复
热议问题