Bug 907850 - Add a little space around the reader icon in awesomescreen tip. r=sriram

This commit is contained in:
Chenxia Liu 2013-08-26 15:16:26 -07:00
Родитель 501055e733
Коммит e53c707f0e
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -165,7 +165,13 @@ public class ReadingListPage extends HomeFragment {
if (imageSpanIndex != -1) {
final ImageSpan readingListIcon = new ImageSpan(getActivity(), R.drawable.reader_cropped, ImageSpan.ALIGN_BOTTOM);
final SpannableStringBuilder hintBuilder = new SpannableStringBuilder(readingListHint);
hintBuilder.setSpan(readingListIcon, imageSpanIndex, imageSpanIndex + 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
// Add additional spacing.
hintBuilder.insert(imageSpanIndex + 2, " ");
hintBuilder.insert(imageSpanIndex, " ");
// Add icon.
hintBuilder.setSpan(readingListIcon, imageSpanIndex + 1, imageSpanIndex + 3, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
emptyHint.setText(hintBuilder, TextView.BufferType.SPANNABLE);
}

Просмотреть файл

@ -281,7 +281,7 @@ size. -->
<!-- Localization note (home_reading_list_hint): The "TIP" string is synonymous to "hint", "clue", etc. This string is displayed
as an advisory message on how to add content to the reading list when the reading list empty.
The "&#37;I" in the string will be replaced by a small image of the icon described, and can be moved to wherever
it is applicable.. -->
it is applicable. Please keep the spacing around the "&#37;I" string. -->
<!ENTITY home_reading_list_hint "TIP: Save articles to your reading list by long pressing the &#37;I icon when it appears in the title bar.">
<!ENTITY home_most_visited_empty "Websites you visit most frequently show up here.">