Android: 将肤色应用于 TextView 中的表情符号
Android: Apply skin tone to emoji in TextView
我正在尝试在 TextView 上设置固定文本。文本包含表情符号。这是我目前所拥有的:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Welcome to Earth 👋" />
上面的TextViewreturns下面的文字:
Welcome to Earth
我希望表情符号具有深色肤色。基本上,我希望文本看起来像这样:
Welcome to Earth
我可以在表情符号的 unicode 中添加前缀或后缀来改变肤色吗?
如果没有,我该怎么做?
我找到了几个肤色代码 here。我所要做的就是将它们附加到我的表情符号 unicode 中。这是一个例子:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Welcome to Earth 👋🏾" />
这个returns:
Welcome to Earth
我正在尝试在 TextView 上设置固定文本。文本包含表情符号。这是我目前所拥有的:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Welcome to Earth 👋" />
上面的TextViewreturns下面的文字:
Welcome to Earth
我希望表情符号具有深色肤色。基本上,我希望文本看起来像这样:
Welcome to Earth
我可以在表情符号的 unicode 中添加前缀或后缀来改变肤色吗?
如果没有,我该怎么做?
我找到了几个肤色代码 here。我所要做的就是将它们附加到我的表情符号 unicode 中。这是一个例子:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Welcome to Earth 👋🏾" />
这个returns:
Welcome to Earth