Closed
Bug 1116915
Opened 10 years ago
Closed 4 years ago
Consider drawing the ActionBar action mode background rather than using assets
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: mcomella, Unassigned)
References
Details
Save space! Be more flexible! All around greatness!
You probably should figure out why we used a nine pach in the first place - maybe there's a good reason for it.
The code to set the background is here: https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/resources/values-v11/styles.xml?rev=7be62fa11c20#80
Reporter | ||
Comment 2•10 years ago
|
||
Questionably desirable: this might allow us to use LWT on the ActionBar action mode.
Blocks: lwt-improvements
Comment 3•10 years ago
|
||
We do the same thing Android does (in fact, we stole the image from thme). Is there a good reason not to use one? Blitting bitmaps is probably the fastest drawing method there is.
I would really like to replace our entire actionbar with a android.support.v7.widget.Toolbar and then delete all of our backwards compat support code at some point.
Reporter | ||
Comment 4•10 years ago
|
||
(In reply to Wesley Johnston (:wesj) from comment #3)
> We do the same thing Android does (in fact, we stole the image from thme).
> Is there a good reason not to use one? Blitting bitmaps is probably the
> fastest drawing method there is.
I don't think we care about drawing speed here because it's drawn once (besides the display animation) - I'm more concerned about the apk size.
> I would really like to replace our entire actionbar with a
> android.support.v7.widget.Toolbar and then delete all of our backwards
> compat support code at some point.
File and/or link? Perhaps as "See also".
Flags: needinfo?(wjohnston)
Reporter | ||
Comment 5•10 years ago
|
||
Going to hold off on mentoring here because it's unclear whether this is desirable or not.
Flags: needinfo?(michael.l.comella)
Comment 6•10 years ago
|
||
The Toolbar compat code docs are at:
http://developer.android.com/reference/android/support/v7/widget/Toolbar.html
I think it would likely big a bigger project to do that but we could do it in piecies. i.e. Something like
1.) Import the library
2.) Use it
3.) Flip the actionbar to a toolbar
4.) Flip the actionmodes
i.e. I agree, its a "See also". I see the APK size argument now though. If you want, seems doable (although these images should be pretty tiny if they're properly drawn 9-patches).
Flags: needinfo?(wjohnston)
Reporter | ||
Comment 7•10 years ago
|
||
(In reply to Wesley Johnston (:wesj) from comment #6)
> The Toolbar compat code docs are at:
Filed bug 1126061.
Comment 8•4 years ago
|
||
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Assignee | ||
Updated•4 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
•