Closed
Bug 698095
Opened 12 years ago
Closed 12 years ago
Tab count increment/decrement needs animation
Categories
(Firefox for Android Graveyard :: General, defect, P3)
Tracking
(firefox11 fixed, fennec11+)
VERIFIED
FIXED
People
(Reporter: sriram, Assigned: sriram)
Details
Attachments
(3 files, 3 obsolete files)
When user opens a new tab or closes a tab, the tab count should be shown, with an animation.
Assignee | ||
Comment 1•12 years ago
|
||
This patches does a small animation for tab addition and deletion. Method used: * A TextSwitcher is visible when the animation happens, and the image in the button is hidden (using a transparent color). This ensures that the button still receives the "touch" event to add/view tabs. * The image button is made to use <level-list> for cleaner code. A max value of 100 is set for "down arrow", as people tend not to open more than 100 tabs anytime. * Since the animations are smaller, I used them via code. I would also prefer moving them to separate files so that we have a good MVC pattern. Problems I see: * I am using a 500ms time for transition for the numbers, and a 500ms before showing the "+" or down arrow in the button. This might be too fast to notice. The time needed for transition must be decided. * There is a visual glitch in sudden transition from number to image to number. I cannot use a fade-in/fade-out on the image, as it is a part of the button. If there is a need for a smoother transition, its better to come up with a "ButtonSwitcher" of our own.
Assignee: nobody → sriram
Attachment #570602 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 2•12 years ago
|
||
This patch is same as the previous one. Except that, the "plus" and "more" images don't go away when the counter animation happens. The number stays on top of the image for 500ms and goes away. This reduces the visual clutter a bit. (The padding and spacing aren't perfect yet. They can be perfected, if we plan to go with this option)
Attachment #570604 -
Flags: review?(mark.finkle)
Updated•12 years ago
|
Priority: -- → P3
Assignee | ||
Comment 3•12 years ago
|
||
I am trying to fix this space between the two. But I'm unable to do it in all means. This needs more exploration. Probably it has to do with the font's baseline, which I'm failing to understand. This is avoiding the "overlap" being visible on animation. Other than that, my animation works now.
Assignee | ||
Comment 4•12 years ago
|
||
This patch does tab-counter animation with no overlap of digits. This uses TextSwitcher to achieve the same.
Attachment #570602 -
Attachment is obsolete: true
Attachment #570604 -
Attachment is obsolete: true
Attachment #570602 -
Flags: review?(mark.finkle)
Attachment #570604 -
Flags: review?(mark.finkle)
Attachment #573620 -
Flags: review?(mark.finkle)
Comment 5•12 years ago
|
||
Patch looks OK, but the background of the text number is wrong. (Nexus One on Gingerbread)
Assignee | ||
Comment 6•12 years ago
|
||
This patch fixes the background of the TextSwitcher.
Attachment #573865 -
Flags: review?(mark.finkle)
Comment 7•12 years ago
|
||
Comment on attachment 573865 [details] [diff] [review] Patch Looks good
Attachment #573865 -
Flags: review?(mark.finkle) → review+
Updated•12 years ago
|
Attachment #573620 -
Attachment is obsolete: true
Attachment #573620 -
Flags: review?(mark.finkle)
Comment 8•12 years ago
|
||
https://hg.mozilla.org/projects/birch/rev/80e0c193d27f
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 9•12 years ago
|
||
Seems like we could write tests here to keep track of tab counts and visibility. Is there a reason why we aren't including such tests?
Comment 10•12 years ago
|
||
20111114041052 http://hg.mozilla.org/projects/birch/rev/859ecdfe0168 Samsung Galaxy SII (Android 2.3.4)
Status: RESOLVED → VERIFIED
Flags: in-litmus?(fennec)
OS: Mac OS X → Android
Hardware: x86 → ARM
Whiteboard: [QA+]
Comment 11•12 years ago
|
||
Test case created: BFT- Tabbed Browsing: https://litmus.mozilla.org/show_test.cgi?id=40431
Flags: in-litmus?(fennec) → in-litmus+
Whiteboard: [QA+]
Updated•12 years ago
|
tracking-fennec: --- → 11+
Updated•12 years ago
|
status-firefox11:
--- → fixed
Updated•3 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
•