如何使用项目符号显示为输出?

How to use bullet symbol to display as output?

我用的是copy bullet symbol,放在char symbol中。但问题是它用 such blue color in mobile. My Requirement is, it should be black arrow 显示项目符号。

这是我的代码:

 Spannable spannable = SpanUtils.createNestingParagraphsSpannable(strings,
'▶', mFirstLineIndent); //but this is not working as expected output.



 public static Spannable createNestingParagraphsSpannable(List<String> paragraphs,
                                                             char bulletSymbol, int indent) {

        List<ImprovedPair<Integer, Integer>> indexes = new ArrayList<>();

        StringBuilder builder = new StringBuilder();
        int count = CollectionUtils.emptyIfNull(paragraphs).size();
        for (int i = 0, last = count - 1; i < count; ++i) {
            int start = builder.length();
            if (i > 0) {
                builder.append(bulletSymbol); //here I am using the bullet symbol
                builder.append(" ");
            }

            builder.append(paragraphs.get(i));

            if (i < last) {
                builder.append("\n\n");
            }

            indexes.add(new ImprovedPair<>(start, builder.length()));
        }

尝试用“\u2023”替换您的“▶”

这是您要查找的符号的 unicode。 通过将此 unicode 放入字符串或字符中,将在打印时插入符号

尝试使用项目符号符号的 unicode 而不是符号本身。
喜欢:-

char bulletSymbol='\u2023';