当前位置:网站首页>Spannable 和 Editable、SpannableString 和 SpannableString
Spannable 和 Editable、SpannableString 和 SpannableString
2022-06-25 10:56:00 【用户9854323】
Spanned(可附加标记的字符序列)
**
* 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 (可加或去除标记的字符序列)
/**
* 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 (内容和标记都可变的字符序列)
/**
* This is the interface for text whose content and markup can be changed
*/
public interface Editable
extends CharSequence, GetChars, Spannable, AppendableAppendable(字符文本可改变的接口)
/**
* An object to which <tt>char</tt> sequences and values can be appended.
*/
public interface Appendable SpannableString (内容不可变,标记可附加或去掉)
/**
* 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只有以下3个方法
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(内容和标记都可变)
/**
* This is the class for text whose content and markup can both be changed.
*/
public class SpannableStringBuilder implements CharSequence, GetChars, Spannable, Editable,
Appendable, GraphicsOperationsSpannableStringBuilder有append,insert, setSpan , removeSpan方法
边栏推荐
- 仿真与烧录程序有哪几种方式?(包含常用工具与使用方式)
- 每日3题(3)-检查整数及其两倍数是否存在
- 炒股票开户的话,手机开户安全吗?有谁知道啊?
- Explanation and use of kotlin syntax for Android
- Learn to learn self-study [learning to learn itself is more important than learning anything]
- Daily 3 questions (2) - find out the lucky numbers in the array
- Coscon'22 lecturer solicitation order
- 金仓数据库 KingbaseES 插件DBMS_UTILITY
- Checking whether the double value is an integer - Swift - checking if a double value is an integer - swift
- Shen Lu, China Communications Institute: police open source Protocol - ofl v1.1 Introduction and Compliance Analysis
猜你喜欢

Detailed explanation of Android interview notes handler

数据库系列:MySQL索引优化总结(综合版)

Android之Kotlin语法详解与使用

A five-year technical Er, based on the real experience of these years, gives some suggestions to the fresh students

软件测试 避免“试用期被辞退“指南,看这一篇就够了

Software testing to avoid being dismissed during the probation period

FPGA displays characters and pictures based on VGA

Writing wechat applet with uni app
![[file containing vulnerability-03] six ways to exploit file containing vulnerabilities](/img/4f/495c852eb0e634c58e576d911a2c14.png)
[file containing vulnerability-03] six ways to exploit file containing vulnerabilities

Use of three-level linkage plug-ins selected by provinces and cities
随机推荐
[image fusion] image fusion based on morphological analysis and sparse representation with matlab code
Think about it
查询法,中断法实现USART通信
Software testing to avoid being dismissed during the probation period
June 24, 2022: golang multiple choice question, what does the following golang code output? A:1; B:3; C:4; D: Compilation failed. package main import ( “fmt“ ) func mai
keep-alive
keep-alive
MySQL and Oracle processing CLOB and blob fields
Is it safe to open a securities account in changtou school by mobile phone?
金仓数据库 KingbaseES 插件DBMS_UTILITY
戴尔科技演绎“快”字诀,玩转CI/CD
scrapy+scrapyd+gerapy 爬虫调度框架
[maintain cluster case set] gaussdb query user space usage
[shangyun boutique] energy saving and efficiency improvement! Accelerating the transformation of "intelligent manufacturing" in the textile industry
A random number generator
SystemVerilog(十三)-枚举数据类型
Introduction to socket UDP and TCP
FPGA基于VGA显示字符及图片
How gaussdb counts the response time of user SQL
2022-06-24:golang选择题,以下golang代码输出什么?A:1;B:3;C:4;D:编译失败。 package main import ( “fmt“ ) func mai