[android] modified PlacePageView to fix hotel subtitles color #1547
1 changed files with 2 additions and 1 deletions
|
@ -826,10 +826,11 @@ public class PlacePageView extends NestedScrollViewClickFixed
|
|||
{
|
||||
SpannableStringBuilder sb = new SpannableStringBuilder(text);
|
||||
int start = text.indexOf("★");
|
||||
int end = text.lastIndexOf("★") + 1;
|
||||
if (start > -1)
|
||||
{
|
||||
sb.setSpan(new ForegroundColorSpan(getResources().getColor(R.color.base_yellow)),
|
||||
start, sb.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
||||
start, end, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
||||
|
||||
}
|
||||
mTvSubtitle.setText(sb);
|
||||
|
|
Reference in a new issue