Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

EmojiSpan

@RequiresApi(19) abstract class EmojiSpan : ReplacementSpan
kotlin.Any
   ↳ android.text.style.CharacterStyle
   ↳ android.text.style.MetricAffectingSpan
   ↳ android.text.style.ReplacementSpan
   ↳ androidx.emoji.text.EmojiSpan

Base span class for the emoji replacement. When an emoji is found and needs to be replaced in a CharSequence, an instance of this class is added to the CharSequence.

Summary

Public methods
open Int
getSize(@NonNull paint: Paint, text: CharSequence!, start: Int, end: Int, fm: FontMetricsInt?)

Public methods

getSize

open fun getSize(
    @NonNull paint: Paint,
    text: CharSequence!,
    start: Int,
    end: Int,
    fm: FontMetricsInt?
): Int