What is a difference between Spannable and String ?
What is a difference between Spannable and String ?
The main difference between Spannable and String in Android is that Spannable allows you to apply formatting spans to specific portions of the text, while String is a plain, immutable sequence of characters without any formatting.
Some key points:
String is immutable and cannot be changed once created, while Spannable allows you to add, remove or modify formatting spans after creation.Spannable is a subinterface of Spanned, which represents a CharSequence with attached formatting spans.Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.