Obsolete
Status Update
Comments
[Deleted User] <[Deleted User]> #2
These changes would be really nice! Being able to change the text colour is really important as it now doesn't match the rest of our app either.
Stack overflow posting -http://stackoverflow.com/questions/32533069/how-to-change-a-title-color-in-chrome-custom-tabs
Stack overflow posting -
ri...@gmail.com <ri...@gmail.com> #3
Changing text color and the overflow icon color is important to us too! Awesome work on the feature though.
cg...@ant4.com <cg...@ant4.com> #4
The ability of customize the status bar color is very important!
ha...@gmail.com <ha...@gmail.com> #5
It is in the essence of a "custom" UI component to have a custom color. Please add this feature!
ma...@gmail.com <ma...@gmail.com> #6
I have noted that the status bar automatically generated from the toolbar color is a bit darker than needed. The status bar color of the chrome activity is different to the one of the rest of my app. It doesn't strictly follow Material guidelines.
as...@gmail.com <as...@gmail.com> #7
The same issue I met. And is there a way to customize the title? using my own title rather than the url's. Thanks
wi...@crandell.ws <wi...@crandell.ws> #8
Would very appreciate this enhancement!
la...@gmail.com <la...@gmail.com> #9
I'd love to have the possibility to change title text color, I'll be a very important graphic consistency inside my app
ag...@gmail.com <ag...@gmail.com> #10
Voting +1 for this feature.
cm...@gmail.com <cm...@gmail.com> #11
It has been more than a year. Please add this!
ms...@googlemail.com <ms...@googlemail.com> #12
[Comment deleted]
su...@gmail.com <su...@gmail.com> #13
It will certainly be a nice feature and have a nice title for the chrome tab. Please fix this.
da...@gmail.com <da...@gmail.com> #14
Customize the status bar color is a real need. Voting +1
un...@gmail.com <un...@gmail.com> #15
Yes, it's needed definitely. Please!! Voting+1.
un...@gmail.com <un...@gmail.com> #16
Any date to the release of this feature? Working with VectorDrawables is awesome and let us have an IconKit but this little impediment make it not perfect
kf...@gmail.com <kf...@gmail.com> #17
Voting +1 for this feature.
en...@google.com <en...@google.com>
cp...@gmail.com <cp...@gmail.com> #18
Voting +1 for this feature.
st...@gmail.com <st...@gmail.com> #19
voting +1 for this feature
mr...@gmail.com <mr...@gmail.com> #20
Voting +1 for this feature.
pe...@gmail.com <pe...@gmail.com> #21
Voting +1 for this feature.
br...@gmail.com <br...@gmail.com> #22
+1 from me. I really need this feature.
kh...@gmail.com <kh...@gmail.com> #23
+1 from me. I've to fallback my implementation to webview because of this graphic inconsistency.
to...@gmail.com <to...@gmail.com> #24
Voting +1 for this feature.
ud...@gmail.com <ud...@gmail.com> #25
Voting +1 for this feature.
kh...@gmail.com <kh...@gmail.com> #26
Voting +1 for this feature.
[Deleted User] <[Deleted User]> #27
Not being able to set a proper dark or light statusbar/toolbar icon color is breaking our app color design very bad.
+1 for this feature.
+1 for this feature.
[Deleted User] <[Deleted User]> #28
Voting +1 for this feature.
to...@gmail.com <to...@gmail.com> #29
Estoy de acuerdo con este comentario, es molesto cuando el diseñador te levanta la mano porque no le convence el contraste de los colores y te es imposible responder con fundamento y suplir los criterios. Sería genial poder personalizar más esta sección.
kh...@gmail.com <kh...@gmail.com> #30
This has been an issue for 6 years now. Why isn't Google dealing with it? If I'm to use Custom Tabs, I need to be able to change the toolbar text and color at will.
br...@gmail.com <br...@gmail.com> #31
ช่วยแก้ไข browser ให้ผมหน่อยครับ
am...@gmail.com <am...@gmail.com> #32
It wasn't the bug that was marked obsolete. It was Android. Bug-ridden mess it is. Lost two hours hunting down this cryptic "obsolete" bullshit.
ka...@gmail.com <ka...@gmail.com> #33
This also happen if you use android:maxLines="1" & android:ellipsize="middle"
[Deleted User] <[Deleted User]> #34
I'm also experiencing the same issue . Most of the crashes appear in Android 7.0 .
I guess I'll put back the deprecated android:singleline="true" in the layouts ....
I guess I'll put back the deprecated android:singleline="true" in the layouts ....
br...@gmail.com <br...@gmail.com> #35
Like most of us ... we have a ton of singleline="true" throughout our app making our lint reports look messy
an...@gmail.com <an...@gmail.com> #36
This issue exist in 5.0.1 device of mine. Ellipsize was middle and lines = 1 in my case. Only singleline = true fixed it. But its depricated.
br...@gmail.com <br...@gmail.com> #37
thats the way most of us are fixing this till google decides to either undeprecate singleline or fix the issue, our lint reports look bad now
[Deleted User] <[Deleted User]> #38
add the singleLine and a tools:ignore for the lint issue...that's what we
did...still zero lint errors :-)
On Wed, Jun 14, 2017 at 9:22 AM, <buganizer-system@google.com> wrote:
did...still zero lint errors :-)
On Wed, Jun 14, 2017 at 9:22 AM, <buganizer-system@google.com> wrote:
br...@gmail.com <br...@gmail.com> #39
Yea that just felt dirty when there was no option but to use the deprecated attribute.
ta...@gmail.com <ta...@gmail.com> #40
Not a bug? Really? Are you kidding me? I met this issue.Get here finally.
br...@gmail.com <br...@gmail.com> #41
@ky...@kayak.com . ignoring the lint warning just ignores the issue ... it doesnt make it go away
su...@gmail.com <su...@gmail.com> #42
Report of this issue confirmed in android:
- 4.4
- 5.0
- 5.1
- 4.4
- 5.0
- 5.1
lb...@gmail.com <lb...@gmail.com> #43
@42 This doesn't occur after 5.1 ?
Also, does this issue occur when using both android:maxLines="1" and android:singleLine="true" ?
Also, does this issue occur when using both android:maxLines="1" and android:singleLine="true" ?
i....@gmail.com <i....@gmail.com> #44
@lb...@gmail.com i just checked it on api 16 and lolipop and miracle: no crash when setting both maxLines and singleLine (also on lolipop I didn't have crash before with maxLines only set).
br...@gmail.com <br...@gmail.com> #45
That's not the issue ... The issue is setting maxlines and ellipsis start.
[Deleted User] <[Deleted User]> #46
Hear someone said that issue due missing default font, sans serif I guess, it fixed by using specific font instead of default font. Any way, I thing it's platform bug.
br...@gmail.com <br...@gmail.com> #47
That isnt related to this issue.
wi...@gmail.com <wi...@gmail.com> #48
can google guys offer an right answer?
dy...@gmail.com <dy...@gmail.com> #49
I love you google, wasted on this shit 1.5 hours. Initially the error was cannot call this method while recyclerview is computing layout, then that "awesome" stacktrace with StaticLayout
de...@gmail.com <de...@gmail.com> #50
Same in my case
My layout file
<?xml version="1.0" encoding="utf-8"?>
<layout>
<data>
<variable
name="name"
type="String" />
<variable
name="referenceNumber"
type="String" />
<variable
name="state"
type="String" />
<variable
name="lastUpdated"
type="String" />
</data>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android "
xmlns:app="http://schemas.android.com/apk/res-auto "
xmlns:tools="http://schemas.android.com/tools "
android:layout_width="@dimen/list_item_width"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginLeft="8dp"
android:layout_marginTop="4dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="4dp"
android:foreground="?attr/selectableItemBackground"
android:minHeight="?android:attr/listPreferredItemHeight"
app:contentPaddingBottom="16dp"
app:contentPaddingLeft="16dp"
app:contentPaddingRight="16dp"
app:contentPaddingTop="8dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@{name}"
android:textAppearance="@style/TextAppearance.ListItemTitle"
android:textIsSelectable="false"
tools:text="Sent item name - 2016-09-12 16:32:53" />
<TextView
android:id="@+id/reference_number_and_state"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text='@{String.format("%s - %s", referenceNumber, state)}'
android:textAppearance="@style/TextAppearance.ListItemDescription"
tools:text="20160917-181480247 - Processed successfully." />
<TextView
android:id="@+id/lastupdated"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@{lastUpdated}"
android:textAppearance="@style/TextAppearance.ListItemTimestamp"
tools:text="2016-09-12 18:36:27" />
</LinearLayout>
</androidx.cardview.widget.CardView>
</layout>
Stacktrace
java.lang.ArrayIndexOutOfBoundsException: 16
at android.text.StaticLayout.generate(StaticLayout.java:854)
at android.text.StaticLayout.<init>(StaticLayout.java:603)
at android.text.StaticLayout.<init>(StaticLayout.java:50)
at android.text.StaticLayout$Builder.build(StaticLayout.java:425)
at android.widget.TextView.makeSingleLayout(TextView.java:8385)
at android.widget.TextView.makeNewLayout(TextView.java:8204)
at android.widget.TextView.onMeasure(TextView.java:8586)
at androidx.appcompat.widget.AppCompatTextView.onMeasure_Original(AppCompatTextView.java:501)
at androidx.appcompat.widget.AppCompatTextView.onMeasure(AppCompatTextView.java)
at android.view.View.measure_Original(View.java:23169)
at android.view.View_Delegate.measure(View_Delegate.java:80)
at android.view.View.measure(View.java:23133)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:825)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:704)
at android.view.View.measure_Original(View.java:23169)
at android.view.View_Delegate.measure(View_Delegate.java:80)
at android.view.View.measure(View.java:23133)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
at androidx.cardview.widget.CardView.onMeasure_Original(CardView.java:260)
at androidx.cardview.widget.CardView.onMeasure(CardView.java)
at android.view.View.measure_Original(View.java:23169)
at android.view.View_Delegate.measure(View_Delegate.java:80)
at android.view.View.measure(View.java:23133)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
at android.view.View.measure_Original(View.java:23169)
at android.view.View_Delegate.measure(View_Delegate.java:80)
at android.view.View.measure(View.java:23133)
at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
at android.view.View.measure_Original(View.java:23169)
at android.view.View_Delegate.measure(View_Delegate.java:80)
at android.view.View.measure(View.java:23133)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.measureView(RenderSessionImpl.java:604)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:343)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:385)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:193)
at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:510)
at com.android.tools.idea.rendering.RenderTask.lambda$inflate$4(RenderTask.java:639)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
My layout file
<?xml version="1.0" encoding="utf-8"?>
<layout>
<data>
<variable
name="name"
type="String" />
<variable
name="referenceNumber"
type="String" />
<variable
name="state"
type="String" />
<variable
name="lastUpdated"
type="String" />
</data>
<androidx.cardview.widget.CardView xmlns:android="
xmlns:app="
xmlns:tools="
android:layout_width="@dimen/list_item_width"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginLeft="8dp"
android:layout_marginTop="4dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="4dp"
android:foreground="?attr/selectableItemBackground"
android:minHeight="?android:attr/listPreferredItemHeight"
app:contentPaddingBottom="16dp"
app:contentPaddingLeft="16dp"
app:contentPaddingRight="16dp"
app:contentPaddingTop="8dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@{name}"
android:textAppearance="@style/TextAppearance.ListItemTitle"
android:textIsSelectable="false"
tools:text="Sent item name - 2016-09-12 16:32:53" />
<TextView
android:id="@+id/reference_number_and_state"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text='@{String.format("%s - %s", referenceNumber, state)}'
android:textAppearance="@style/TextAppearance.ListItemDescription"
tools:text="20160917-181480247 - Processed successfully." />
<TextView
android:id="@+id/lastupdated"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@{lastUpdated}"
android:textAppearance="@style/TextAppearance.ListItemTimestamp"
tools:text="2016-09-12 18:36:27" />
</LinearLayout>
</androidx.cardview.widget.CardView>
</layout>
Stacktrace
java.lang.ArrayIndexOutOfBoundsException: 16
at android.text.StaticLayout.generate(StaticLayout.java:854)
at android.text.StaticLayout.<init>(StaticLayout.java:603)
at android.text.StaticLayout.<init>(StaticLayout.java:50)
at android.text.StaticLayout$Builder.build(StaticLayout.java:425)
at android.widget.TextView.makeSingleLayout(TextView.java:8385)
at android.widget.TextView.makeNewLayout(TextView.java:8204)
at android.widget.TextView.onMeasure(TextView.java:8586)
at androidx.appcompat.widget.AppCompatTextView.onMeasure_Original(AppCompatTextView.java:501)
at androidx.appcompat.widget.AppCompatTextView.onMeasure(AppCompatTextView.java)
at android.view.View.measure_Original(View.java:23169)
at android.view.View_Delegate.measure(View_Delegate.java:80)
at android.view.View.measure(View.java:23133)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:825)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:704)
at android.view.View.measure_Original(View.java:23169)
at android.view.View_Delegate.measure(View_Delegate.java:80)
at android.view.View.measure(View.java:23133)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
at androidx.cardview.widget.CardView.onMeasure_Original(CardView.java:260)
at androidx.cardview.widget.CardView.onMeasure(CardView.java)
at android.view.View.measure_Original(View.java:23169)
at android.view.View_Delegate.measure(View_Delegate.java:80)
at android.view.View.measure(View.java:23133)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
at android.view.View.measure_Original(View.java:23169)
at android.view.View_Delegate.measure(View_Delegate.java:80)
at android.view.View.measure(View.java:23133)
at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
at android.view.View.measure_Original(View.java:23169)
at android.view.View_Delegate.measure(View_Delegate.java:80)
at android.view.View.measure(View.java:23133)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.measureView(RenderSessionImpl.java:604)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:343)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:385)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:193)
at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:510)
at com.android.tools.idea.rendering.RenderTask.lambda$inflate$4(RenderTask.java:639)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
hq...@gmail.com <hq...@gmail.com> #51
Should not this be patched in AppCompatTextView? This is a very common use case.
Description
<RelativeLayout xmlns:android="
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="start"
android:lines="1"
android:text="Really long text that needs to be ellipsized here - 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" />
</RelativeLayout>
Stacktrace:
java.lang.ArrayIndexOutOfBoundsException: length=253; index=-1
at android.text.StaticLayout.calculateEllipsis(StaticLayout.java:756)
at android.text.StaticLayout.out(StaticLayout.java:720)
at android.text.StaticLayout.generate(StaticLayout.java:428)
at android.text.StaticLayout.<init>(StaticLayout.java:140)
at android.widget.TextView.makeSingleLayout(TextView.java:5884)
at android.widget.TextView.makeNewLayout(TextView.java:5741)
at android.widget.TextView.onMeasure(TextView.java:6098)
at android.view.View.measure(View.java:15172)
at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:617)
at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:399)
at android.view.View.measure(View.java:15172)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4814)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at android.view.View.measure(View.java:15172)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:833)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:574)
at android.view.View.measure(View.java:15172)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4814)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2148)
at android.view.View.measure(View.java:15172)
at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1848)
at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1100)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1273)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
at android.view.Choreographer.doCallbacks(Choreographer.java:555)
at android.view.Choreographer.doFrame(Choreographer.java:525)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Removing 'android:ellipsize="start"' avoids the crash.
Note: This doesn't work as intended (i.e. ellipsize at the start of the string) on older Android versions either.