当前位置:网站首页>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
边栏推荐
- Daily 3 questions (2) - find out the lucky numbers in the array
- 有关计网的五种类型题
- 金仓数据库 KingbaseES 插件ftutilx
- Démarrer avec Apache shenyu
- Google Earth Engine (Gee) - evaluate réalise le téléchargement en un clic de toutes les images individuelles dans la zone d'étude (certaines parties de Shanghai)
- Array structure collation
- NuxtJS实战案例
- 基於Minifilter框架的雙緩沖透明加解密驅動 課程論文+項目源碼
- 动态规划解决股票问题(上)
- [file inclusion vulnerability-04] classic interview question: how to getshell when a website is known to have only local file inclusion vulnerability?
猜你喜欢

Es learning

Crawler scheduling framework of scratch+scratch+grammar

Shen Ying, China Academy of communications and communications: font open source protocol -- Introduction to ofl v1.1 and analysis of key points of compliance

视频会议一体机的技术实践和发展趋势

What are the ways to simulate and burn programs? (including common tools and usage)

Technical practice and development trend of video conference all in one machine

TASK03|概率论

网络远程访问的方式使用树莓派

Getting started with Apache Shenyu

网易开源的分布式存储系统 Curve 正式成为 CNCF 沙箱项目
随机推荐
Handling of NPM I installation problems
金仓数据库 KingbaseES 插件identity_pwdexp
Chinese translation of IMA Lazarus' the new giant, the goddess of Liberty
Multiple environment variables
每日3題(3)-檢查整數及其兩倍數是否存在
Shen Lu, China Communications Institute: police open source Protocol - ofl v1.1 Introduction and Compliance Analysis
Nuxtjs actual combat case
Ouverture de l'inscription | le troisième marathon des hackers de pagaie est arrivé comme prévu.
2022 PMP project management examination agile knowledge points (2)
Is it safe to speculate in stocks by mobile phone?
NuxtJS实战案例
金仓数据库 KingbaseES 插件force_view
Use of three-level linkage plug-ins selected by provinces and cities
Array structure collation
A random number generator
每日3题(2)- 找出数组中的幸运数
Is it safe to open a securities account in changtou school by mobile phone?
Remove the problem of orange border on the desktop control in WebView
基于SSH的高校实验室物品管理信息系统的设计与实现 论文文档+项目源码及数据库文件
视频会议一体机的技术实践和发展趋势