当前位置:网站首页>Spannable and editable, spannablestring and spannablestring
Spannable and editable, spannablestring and spannablestring
2022-06-25 11:15:00 【User 9854323】
Spanned( A sequence of characters that can be tagged )
**
* This is the interface for text that has markup objects attached to
* ranges of it. Not all text classes have mutable markup or text;
* see {@link Spannable} for mutable markup and {@link Editable} for
* mutable text.
*/
public interface Spanned
extends CharSequenceSpannable ( A sequence of characters that can be marked or removed )
/**
* This is the interface for text to which markup objects can be attached and detached.
* Not all Spannable classes have mutable text;
* see {@link Editable} for that.
*/
public interface Spannable
extends SpannedEditable ( A sequence of characters with variable contents and marks )
/**
* This is the interface for text whose content and markup can be changed
*/
public interface Editable
extends CharSequence, GetChars, Spannable, AppendableAppendable( Character text changeable interface )
/**
* An object to which <tt>char</tt> sequences and values can be appended.
*/
public interface Appendable SpannableString ( The content is immutable , Markings may be attached or removed )
/**
* This is the class for text whose content is immutable but to which
* markup objects can be attached and detached.
* For mutable text, see {@link SpannableStringBuilder}.
*/
public class SpannableString
extends SpannableStringInternal
implements CharSequence, GetChars, SpannableSpannableString Only the following 3 A way
public void setSpan(Object what, int start, int end, int flags) {
super.setSpan(what, start, end, flags);
}
public void removeSpan(Object what) {
super.removeSpan(what);
}
public final CharSequence subSequence(int start, int end) {
return new SpannableString(this, start, end);
}SpannableStringBuilder( Content and markup are variable )
/**
* This is the class for text whose content and markup can both be changed.
*/
public class SpannableStringBuilder implements CharSequence, GetChars, Spannable, Editable,
Appendable, GraphicsOperationsSpannableStringBuilder Yes append,insert, setSpan , removeSpan Method
边栏推荐
猜你喜欢

Software testing to avoid being dismissed during the probation period

FPGA displays characters and pictures based on VGA

Compilation of learning from Wang Shuang (1)

基于SSH的高校实验室物品管理信息系统的设计与实现 论文文档+项目源码及数据库文件

Chinese translation of IMA Lazarus' the new giant, the goddess of Liberty

CSRF攻击

Upload and modify the use of avatars

金仓KFS数据集中场景(多对一)部署

scrapy+scrapyd+gerapy 爬虫调度框架

FPGA基于VGA显示字符及图片
随机推荐
金仓KFS数据集中场景(多对一)部署
Query method and interrupt method to realize USART communication
ZABBIX distributed system monitoring
金仓数据库 KingbaseES 插件identity_pwdexp
Kingbasees plug-in DBMS of Jincang database_ UTILITY
有关计网的五种类型题
Handling of NPM I installation problems
16 种企业架构策略
Double buffer transparent encryption and decryption driven course paper + project source code based on minifilter framework
Ouverture de l'inscription | le troisième marathon des hackers de pagaie est arrivé comme prévu.
Free access to the global human settlements layer (ghsl) dataset from Gee
Cdn+cos ultra detailed steps for drawing bed construction
CSRF attack
[shangyun boutique] energy saving and efficiency improvement! Accelerating the transformation of "intelligent manufacturing" in the textile industry
Oracle彻底卸载的完整步骤
Is it safe to speculate in stocks by mobile phone?
A difficult mathematical problem baffles two mathematicians
Android: generic mapping analysis of gson and JSON in kotlin
Daily 3 questions (2) - find out the lucky numbers in the array
Nuxtjs actual combat case