Closed
Bug 862761
Opened 12 years ago
Closed 12 years ago
The history tab is dark gray on Froyo and Gingerbread devices
Categories
(Firefox for Android Graveyard :: Theme and Visual Design, defect)
Tracking
(firefox21 unaffected, firefox22 unaffected, firefox23 verified, fennec23+)
VERIFIED
FIXED
Firefox 23
Tracking | Status | |
---|---|---|
firefox21 | --- | unaffected |
firefox22 | --- | unaffected |
firefox23 | --- | verified |
fennec | 23+ | --- |
People
(Reporter: AdrianT, Assigned: bnicholson)
References
Details
(Keywords: regression, Whiteboard: ui-hackathon)
Attachments
(2 files)
(deleted),
image/png
|
Details | |
(deleted),
patch
|
lucasr
:
review+
|
Details | Diff | Splinter Review |
Nightly 23.0a1 2013-04-17
LG Optimus 2X (Android 2.2) / Samsung Galaxy R (Android 2.3.4)
Steps to reproduce:
1) Have/make at least one history entry
2) Open the Awesomebar and go to the History Tab
Expected results:
The history tab background is light gray and is the same like the Bookmarks tab and Top Sites
Actual results:
The background is dark gray
Reporter | ||
Updated•12 years ago
|
Whiteboard: regression
Updated•12 years ago
|
Component: Awesomescreen → Theme and Visual Design
Flags: needinfo?(sriram)
Keywords: regression,
regressionwindow-wanted
Whiteboard: regression
Comment 1•12 years ago
|
||
The regression window for this issue is:
1. mozilla central
good build: 12.04.2013
bad build: 13.04.2013
pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=7b8ed29c6bc0&tochange=24a6b5ed51e3
2. inbound
good build: 1365703887
bad build: 1365704428
pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=270ad24960d3&tochange=f85629692c59
Keywords: regressionwindow-wanted
Updated•12 years ago
|
Status: NEW → ASSIGNED
Updated•12 years ago
|
tracking-fennec: ? → 23+
Updated•12 years ago
|
Assignee: sriram → bnicholson
Assignee | ||
Updated•12 years ago
|
Whiteboard: ui-hackathon
Assignee | ||
Comment 3•12 years ago
|
||
After spending a long time playing around with different styles, I found that setting the childDivider to a color actually sets the background of the ExpandableListView to that color. I'm convinced that this is a bug on Froyo/GB phones, and using a drawable divider seems to work as a workaround.
Attachment #742081 -
Flags: review?(lucasr.at.mozilla)
Comment 4•12 years ago
|
||
Comment on attachment 742081 [details] [diff] [review]
Use divider drawable for ExpandableListView childDivider
Review of attachment 742081 [details] [diff] [review]:
-----------------------------------------------------------------
r- to know if you tried setting dividerHeight in the style.
::: mobile/android/base/resources/values/styles.xml
@@ -53,4 @@
>
> <style name="Widget.ExpandableListView" parent="Widget.ListView">
> <item name="android:groupIndicator">@android:color/transparent</item>
> - <item name="android:childDivider">#D1D5DA</item>
Have you tried simply setting dividerHeight to 1dp? The underlying issue here is that ColorDrawables don't have intrinsic dimensions. This is why you had to define a shape for the list selector in bug 865923 for example. However, ListView (and ExpandableListView by extension) have special code to force boundaries on divider drawables. But it will only work with a ColorDrawable if you set dividerHeight explicitly. Otherwise it will try to use the (non-existing) intrinsic dimensions.
Attachment #742081 -
Flags: review?(lucasr.at.mozilla) → review-
Assignee | ||
Comment 5•12 years ago
|
||
Comment on attachment 742081 [details] [diff] [review]
Use divider drawable for ExpandableListView childDivider
(In reply to Lucas Rocha (:lucasr) from comment #4)
> Comment on attachment 742081 [details] [diff] [review]
> Use divider drawable for ExpandableListView childDivider
>
> Review of attachment 742081 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> r- to know if you tried setting dividerHeight in the style.
>
> ::: mobile/android/base/resources/values/styles.xml
> @@ -53,4 @@
> >
> > <style name="Widget.ExpandableListView" parent="Widget.ListView">
> > <item name="android:groupIndicator">@android:color/transparent</item>
> > - <item name="android:childDivider">#D1D5DA</item>
>
> Have you tried simply setting dividerHeight to 1dp? The underlying issue
> here is that ColorDrawables don't have intrinsic dimensions. This is why you
> had to define a shape for the list selector in bug 865923 for example.
> However, ListView (and ExpandableListView by extension) have special code to
> force boundaries on divider drawables. But it will only work with a
> ColorDrawable if you set dividerHeight explicitly. Otherwise it will try to
> use the (non-existing) intrinsic dimensions.
Yeah, this style has the Widget.ListView style as its parent, and Widget.ListView already has a dividerHeight of 1dp set. I also tried setting the dividerHeight explicitly in this rule and it didn't make a difference.
Attachment #742081 -
Flags: review- → review?(lucasr.at.mozilla)
Comment 6•12 years ago
|
||
Comment on attachment 742081 [details] [diff] [review]
Use divider drawable for ExpandableListView childDivider
Review of attachment 742081 [details] [diff] [review]:
-----------------------------------------------------------------
Ok, ExpandableListView is busted on Froyo/GB then. Sigh...
::: mobile/android/base/resources/values/styles.xml
@@ -53,4 @@
>
> <style name="Widget.ExpandableListView" parent="Widget.ListView">
> <item name="android:groupIndicator">@android:color/transparent</item>
> - <item name="android:childDivider">#D1D5DA</item>
Have you tried simply setting dividerHeight to 1dp? The underlying issue here is that ColorDrawables don't have intrinsic dimensions. This is why you had to define a shape for the list selector in bug 865923 for example. However, ListView (and ExpandableListView by extension) have special code to force boundaries on divider drawables. But it will only work with a ColorDrawable if you set dividerHeight explicitly. Otherwise it will try to use the (non-existing) intrinsic dimensions.
Attachment #742081 -
Flags: review?(lucasr.at.mozilla) → review+
Assignee | ||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 23
Comment 9•11 years ago
|
||
Verified fixed on:
-build: Firefox for Android 23.0a1(2013-05-13)
-device: Samsung Galaxy R
-OS: Android 2.3.4
Status: RESOLVED → VERIFIED
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
•