Closed
Bug 823781
Opened 13 years ago
Closed 13 years ago
Compound Drawable for PromoBox on about:home
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 20
People
(Reporter: sriram, Assigned: sriram)
References
Details
Attachments
(1 file)
|
10.32 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
TextView can show images in them (wait.. what?). It's a good-yet-less-known feature of TextView that can reduce a large number of views that we use.
http://developer.android.com/reference/android/widget/TextView.html#setCompoundDrawablesWithIntrinsicBounds%28int,%20int,%20int,%20int%29
We could clean up about:home by using this.
| Assignee | ||
Comment 1•13 years ago
|
||
This reduces the PromoBox from:
<LinearLayout>
<ImageView/>
<TextView/>
</LinearLayout>
to:
<TextView/>
Yes! Just that! :D
Assignee: nobody → sriram
Attachment #694623 -
Flags: review?(mark.finkle)
Comment 2•13 years ago
|
||
Comment on attachment 694623 [details] [diff] [review]
Part 1: PromoBox
Nice
Attachment #694623 -
Flags: review?(mark.finkle) → review+
| Assignee | ||
Comment 3•13 years ago
|
||
Comment 4•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
| Assignee | ||
Updated•13 years ago
|
Summary: Compound Drawable for TextViews on about:home → Compound Drawable for PromoBox on about:home
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•