Closed
Bug 1232868
Opened 10 years ago
Closed 9 years ago
Clean up bookmark folder list item UI
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox47 fixed)
RESOLVED
FIXED
Firefox 47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: antlam, Assigned: liuche)
References
Details
Attachments
(7 files)
146.90 KB,
image/png
|
Details | |
2.80 KB,
application/zip
|
Details | |
3.47 KB,
application/zip
|
Details | |
58 bytes,
text/x-review-board-request
|
mcomella
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
mcomella
:
review+
|
Details |
121.46 KB,
image/png
|
Details | |
58 bytes,
text/x-review-board-request
|
mcomella
:
review+
|
Details |
Our list item UI for folders is dated and doesn't align with the rest of our list items. We should unify them while we're doing all this work so they align to the our guide lines.
I'll post assets and specs.
Reporter | ||
Comment 1•10 years ago
|
||
I forgot to mention one important thing. This actually inherits the same styles as our Synced Tabs Panel.
The only differences are...
1) A "folder" icon instead of a "device" icon (still centered in that same space)
2) Use Roboto light 16sp instead of 14sp (for folder name)
Reporter | ||
Comment 2•10 years ago
|
||
Attaching assets
Reporter | ||
Comment 3•10 years ago
|
||
Was chatting with nalexander on IRC about where we might find these styles:
<@nalexander> we can easily extract the Android styles for the layouts from the code.
<@nalexander> https://dxr.mozilla.org/mozilla-central/search?q=path%3Amobile%2F*.xml+remote&redirect=true&case=false shows some of the styles and XML files.
Reporter | ||
Comment 4•10 years ago
|
||
Oh - forgot this! This is the icon for "Back to Bookmarks"
Flags: needinfo?(ahunt)
Reporter | ||
Updated•9 years ago
|
Blocks: migrate-RL
Updated•9 years ago
|
No longer blocks: migrate-RL
Assignee | ||
Comment 5•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/38039/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38039/
Attachment #8726484 -
Flags: review?(michael.l.comella)
Assignee | ||
Comment 6•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/38041/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38041/
Attachment #8726485 -
Flags: review?(michael.l.comella)
Assignee | ||
Comment 7•9 years ago
|
||
Assignee: nobody → liuche
Status: NEW → ASSIGNED
Flags: needinfo?(ahunt)
Reporter | ||
Comment 8•9 years ago
|
||
(In reply to Chenxia Liu [:liuche] from comment #7)
> Created attachment 8726486 [details]
> Screenshot: Improved bookmark folder UI
Wow. such polish. much happy. many likes!
Let's go with "Back to Desktop Bookmarks" though, it's more precise and requires less thinking (what is "up to"?)
Flags: needinfo?(liuche)
Assignee | ||
Comment 9•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/38243/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38243/
Attachment #8726831 -
Flags: review?(michael.l.comella)
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(liuche)
Attachment #8726831 -
Flags: review?(michael.l.comella) → review+
Comment on attachment 8726831 [details]
MozReview Request: Bug 1232868 - Update strings. r=mcomella
https://reviewboard.mozilla.org/r/38243/#review34849
::: mobile/android/base/locales/en-US/android_strings.dtd:553
(Diff revision 1)
> <!-- Localization note (home_move_up_to_filter): The variable is replaced by the name of the
Update l10n note
Comment on attachment 8726485 [details]
MozReview Request: Bug 1232868 - Consolidate usage of arrow resource. r=mcomella
https://reviewboard.mozilla.org/r/38041/#review34851
Dope.
Attachment #8726485 -
Flags: review?(michael.l.comella) → review+
Comment on attachment 8726484 [details]
MozReview Request: Bug 1232868 - Clean up bookmark folder list item UI. r=mcomella
https://reviewboard.mozilla.org/r/38039/#review34853
::: mobile/android/base/java/org/mozilla/gecko/home/TwoLinePageRow.java:94
(Diff revision 1)
> // Merge layouts lose their padding, so set it dynamically.
> - setPadding(0, 0, (int) getResources().getDimension(R.dimen.page_row_padding_right), 0);
> + setPadding(0, 0, (int) getResources().getDimension(R.dimen.page_row_edge_padding), 0);
Just to write this down somewhere, this should be done in a different bug but imo this padding should get set where `TwoLinePageRow` is used in xml, rather than dynamically (and we should probably include the children in the same layout too, probably with `include`, rather than inflating via code. Lucas seemed to like this pattern but I think it's harder to follow)
::: mobile/android/base/resources/drawable/inset_arrow_up.xml:6
(Diff revision 1)
> +<inset xmlns:android="http://schemas.android.com/apk/res/android"
Since inset drawables rely on their parent container's sizes, this should probably be renamed to something indicative of the parent container, e.g. `bookmark_folder_arrow_up`.
nit: Also, add a comment explaining how this works.
::: mobile/android/base/resources/layout/two_line_page_row.xml:14
(Diff revision 1)
> - android:layout_margin="16dp"
> + android:layout_margin="@dimen/page_row_edge_padding"
nit: Why is this dimen shared between this favicon view margin and the page row padding? They don't seem entirely related to me.
::: mobile/android/base/resources/values/styles.xml:166
(Diff revision 1)
> <style name="Widget.BookmarkFolderView" parent="Widget.TwoLinePageRow.Title">
Now that you removed the style for the other device configuration, this style is only used once, meaning these attrs can be moved out of styles.xml and directly onto the view that the style is used on.
::: mobile/android/base/resources/values/styles.xml:170
(Diff revision 1)
> - <item name="android:drawablePadding">10dip</item>
> + <item name="android:paddingLeft">@dimen/page_row_edge_padding</item>
> + <item name="android:drawablePadding">@dimen/page_row_edge_padding</item>
Same here regarding the dimen.
Attachment #8726484 -
Flags: review?(michael.l.comella) → review+
Assignee | ||
Comment 13•9 years ago
|
||
https://reviewboard.mozilla.org/r/38039/#review34853
> nit: Why is this dimen shared between this favicon view margin and the page row padding? They don't seem entirely related to me.
Since the favicon is the leftmost view I used this margin to keep the left "padding" consistent with other places it's used. And since the margin needed to match left and right...I agree that there are lots of style inconsistencies, and perhaps we should have some small discusso about how we want to use the styles throughout. They are kind of messy.
> Now that you removed the style for the other device configuration, this style is only used once, meaning these attrs can be moved out of styles.xml and directly onto the view that the style is used on.
I would prefer to leave this in styles because it is still a coherent collection of attributes and this gives that somewhat eclectic collection some semantic value. If we didn't do this, it is kind of confusing what styles are attributed to the item vs mixed in with other attrs.
> Same here regarding the dimen.
This is still used in a couple of places (and I think it gives semantic meaning to the value) so I'd like to keep it in.
Comment 14•9 years ago
|
||
Comment 15•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0ac87c4bee7a
https://hg.mozilla.org/mozilla-central/rev/3e85c7cca6b7
https://hg.mozilla.org/mozilla-central/rev/3cc953c09d34
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 47
Assignee | ||
Updated•9 years ago
|
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
•