Sub Globals
Private LblEmoji(79) As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
For i = 0 To 78
LblEmoji(i).Initialize("LblEmoji")
LblEmoji(i).Tag = "Emoji " & i
LblEmoji(i).Text = UTS(0x1F600 + i)
Activity.AddView(LblEmoji(i), 100%x / 2 - 10dip, i * 25dip, 20dip, 20dip)
Log(UTS(0x1F600 + i))
Next
End Sub
Sub UTS (codepoint As Int) As String
Dim bc As ByteConverter
Dim b() As Byte = bc.IntsToBytes(Array As Int(codepoint))
Return BytesToString(b, 0, 4, "UTF32")
End Sub
Sub LblEmoji_Click
Dim i As Label = Sender
Log($"Tapped ${i.Tag}"$)
End Sub