Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mmm-rain
AndroidUtilCode
提交
47c65b6a
A
AndroidUtilCode
项目概览
mmm-rain
/
AndroidUtilCode
与 Fork 源项目一致
从无法访问的项目Fork
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
AndroidUtilCode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
47c65b6a
编写于
6月 26, 2017
作者:
B
Blankj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
see 06/26 log
上级
f66a0539
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
16 deletion
+16
-16
utilcode/src/main/java/com/blankj/utilcode/util/SpanUtils.java
...ode/src/main/java/com/blankj/utilcode/util/SpanUtils.java
+16
-16
未找到文件。
utilcode/src/main/java/com/blankj/utilcode/util/SpanUtils.java
浏览文件 @
47c65b6a
...
...
@@ -1071,11 +1071,11 @@ public final class SpanUtils {
private
final
int
width
;
private
final
int
color
;
SpaceSpan
(
int
width
)
{
private
SpaceSpan
(
int
width
)
{
this
(
width
,
Color
.
TRANSPARENT
);
}
SpaceSpan
(
int
width
,
int
color
)
{
private
SpaceSpan
(
int
width
,
int
color
)
{
super
();
this
.
width
=
width
;
this
.
color
=
color
;
...
...
@@ -1110,7 +1110,7 @@ public final class SpanUtils {
private
final
int
stripeWidth
;
private
final
int
gapWidth
;
CustomQuoteSpan
(
int
color
,
int
stripeWidth
,
int
gapWidth
)
{
private
CustomQuoteSpan
(
int
color
,
int
stripeWidth
,
int
gapWidth
)
{
super
();
this
.
color
=
color
;
this
.
stripeWidth
=
stripeWidth
;
...
...
@@ -1149,7 +1149,7 @@ public final class SpanUtils {
private
Path
sBulletPath
=
null
;
CustomBulletSpan
(
int
color
,
int
radius
,
int
gapWidth
)
{
private
CustomBulletSpan
(
int
color
,
int
radius
,
int
gapWidth
)
{
this
.
color
=
color
;
this
.
radius
=
radius
;
this
.
gapWidth
=
gapWidth
;
...
...
@@ -1208,25 +1208,25 @@ public final class SpanUtils {
private
int
need1
;
private
boolean
flag
;
CustomIconMarginSpan
(
Bitmap
b
,
int
pad
,
int
verticalAlignment
)
{
private
CustomIconMarginSpan
(
Bitmap
b
,
int
pad
,
int
verticalAlignment
)
{
mBitmap
=
b
;
mPad
=
pad
;
mVerticalAlignment
=
verticalAlignment
;
}
CustomIconMarginSpan
(
Drawable
drawable
,
int
pad
,
int
verticalAlignment
)
{
private
CustomIconMarginSpan
(
Drawable
drawable
,
int
pad
,
int
verticalAlignment
)
{
mBitmap
=
drawable2Bitmap
(
drawable
);
mPad
=
pad
;
mVerticalAlignment
=
verticalAlignment
;
}
CustomIconMarginSpan
(
Context
context
,
Uri
uri
,
int
pad
,
int
verticalAlignment
)
{
private
CustomIconMarginSpan
(
Context
context
,
Uri
uri
,
int
pad
,
int
verticalAlignment
)
{
mBitmap
=
uri2Bitmap
(
context
,
uri
);
mPad
=
pad
;
mVerticalAlignment
=
verticalAlignment
;
}
CustomIconMarginSpan
(
Context
context
,
int
resourceId
,
int
pad
,
int
verticalAlignment
)
{
private
CustomIconMarginSpan
(
Context
context
,
int
resourceId
,
int
pad
,
int
verticalAlignment
)
{
mBitmap
=
resource2Bitmap
(
context
,
resourceId
);
mPad
=
pad
;
mVerticalAlignment
=
verticalAlignment
;
...
...
@@ -1357,7 +1357,7 @@ public final class SpanUtils {
private
final
Typeface
newType
;
CustomTypefaceSpan
(
Typeface
type
)
{
private
CustomTypefaceSpan
(
Typeface
type
)
{
super
(
""
);
newType
=
type
;
}
...
...
@@ -1402,7 +1402,7 @@ public final class SpanUtils {
private
int
mResourceId
;
private
Context
mContext
;
CustomImageSpan
(
Context
context
,
Bitmap
b
,
int
verticalAlignment
)
{
private
CustomImageSpan
(
Context
context
,
Bitmap
b
,
int
verticalAlignment
)
{
super
(
verticalAlignment
);
mContext
=
context
;
mDrawable
=
context
!=
null
...
...
@@ -1413,20 +1413,20 @@ public final class SpanUtils {
mDrawable
.
setBounds
(
0
,
0
,
width
>
0
?
width
:
0
,
height
>
0
?
height
:
0
);
}
CustomImageSpan
(
Drawable
d
,
int
verticalAlignment
)
{
private
CustomImageSpan
(
Drawable
d
,
int
verticalAlignment
)
{
super
(
verticalAlignment
);
mDrawable
=
d
;
mDrawable
.
setBounds
(
0
,
0
,
mDrawable
.
getIntrinsicWidth
(),
mDrawable
.
getIntrinsicHeight
());
}
CustomImageSpan
(
Context
context
,
Uri
uri
,
int
verticalAlignment
)
{
private
CustomImageSpan
(
Context
context
,
Uri
uri
,
int
verticalAlignment
)
{
super
(
verticalAlignment
);
mContext
=
context
;
mContentUri
=
uri
;
}
CustomImageSpan
(
Context
context
,
@DrawableRes
int
resourceId
,
int
verticalAlignment
)
{
private
CustomImageSpan
(
Context
context
,
@DrawableRes
int
resourceId
,
int
verticalAlignment
)
{
super
(
verticalAlignment
);
mContext
=
context
;
mResourceId
=
resourceId
;
...
...
@@ -1477,11 +1477,11 @@ public final class SpanUtils {
final
int
mVerticalAlignment
;
CustomDynamicDrawableSpan
()
{
private
CustomDynamicDrawableSpan
()
{
mVerticalAlignment
=
ALIGN_BOTTOM
;
}
CustomDynamicDrawableSpan
(
int
verticalAlignment
)
{
private
CustomDynamicDrawableSpan
(
int
verticalAlignment
)
{
mVerticalAlignment
=
verticalAlignment
;
}
...
...
@@ -1568,7 +1568,7 @@ public final class SpanUtils {
private
float
dx
,
dy
;
private
int
shadowColor
;
ShadowSpan
(
float
radius
,
float
dx
,
float
dy
,
int
shadowColor
)
{
private
ShadowSpan
(
float
radius
,
float
dx
,
float
dy
,
int
shadowColor
)
{
this
.
radius
=
radius
;
this
.
dx
=
dx
;
this
.
dy
=
dy
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录