Closed Bug 758798 Opened 12 years ago Closed 12 years ago

Liberate TextSwitcher from different font-sizes.

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 15

People

(Reporter: sriram, Assigned: sriram)

Details

Attachments

(1 file)

As per the font-sizes used and the action-bar height, the tabs counter should have the following values:
gingerbread - 22sp.
honeycomb - 24sp.
ics - portrait - 24sp.
ics - landscape - 20sp.
ics - tablet - 26sp.

It's better to have them in dimens.xml instead of doing them in code.
Attached patch PatchSplinter Review
This patches adds different dimens.xml to deal with different sizes. The color is now with colors.xml (killing mCounterColor, yaaay!)
The layout is moved to tabs_counter.xml, and inflated when needed.

The other approach would be to inflate once, clone it and fix the text-size. I can try doing that.
Attachment #627372 - Flags: review?(mark.finkle)
Update: clone() cannot be used on TextView as the access is barred in Android. So, the above patch is the best way to do.
Attachment #627372 - Flags: review?(mark.finkle) → review+
https://hg.mozilla.org/mozilla-central/rev/16cf8e199b6a
Assignee: nobody → sriram
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → Firefox 15
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: