修改注册用户勾选文案
This commit is contained in:
@@ -89,17 +89,20 @@ fun PolicyCheckbox(
|
|||||||
val keyword = stringResource(R.string.private_policy_keyword)
|
val keyword = stringResource(R.string.private_policy_keyword)
|
||||||
val template = stringResource(R.string.private_policy_template)
|
val template = stringResource(R.string.private_policy_template)
|
||||||
append(template)
|
append(template)
|
||||||
|
append(" ")
|
||||||
withStyle(style = SpanStyle(color = if (error) Color.Red else Color.Black)) {
|
withStyle(style = SpanStyle(color = if (error) Color.Red else Color.Black)) {
|
||||||
append(keyword)
|
append(keyword)
|
||||||
}
|
}
|
||||||
|
|
||||||
addStyle(
|
addStyle(
|
||||||
style = SpanStyle(
|
style = SpanStyle(
|
||||||
color = Color.Blue,
|
color = Color.Red,
|
||||||
textDecoration = TextDecoration.Underline
|
textDecoration = TextDecoration.Underline
|
||||||
),
|
),
|
||||||
start = template.length,
|
start = template.length + 1,
|
||||||
end = template.length + keyword.length
|
end = template.length + keyword.length + 1
|
||||||
)
|
)
|
||||||
|
append(".")
|
||||||
}
|
}
|
||||||
ClickableText(
|
ClickableText(
|
||||||
text = text,
|
text = text,
|
||||||
|
|||||||
Reference in New Issue
Block a user