0
创建自定义字符串资源后,使用的Unicode字符(↔)看起来与字母的字体大小不同。如何调整Unicode字符的字体大小以匹配我自定义字符串中使用的其他字符?如何调整Unicode字符大小以匹配字母字符
<TextView
style="@android:style/TextAppearance.Medium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/locationa_tofrom_locationb"
android:textColor="@android:color/white" />
的strings.xml
<string name="locationa_tofrom_locationb">Location A ↔ Location B</string>
有趣,但我不想在为了实现这一目标从头创建一个新的字体。 – MacaronLover
你所遇到的是完全依赖于使用的字体。如果您当前所用的字体不符合您的需要,请查找另一种字体。或者,在一个字体大小中为''Location A'''和'“Location B”'分别使用3个'TextView's - 2,另一个更大的字体大小使用''↔“'1。 –
@RemyLebeau我不知道任何字体,+ Android没有指定任何做。 – MacaronLover