Fixed
Status Update
Comments
tn...@google.com <tn...@google.com> #2
Can you provide a screenshot?
re...@netmoms.de <re...@netmoms.de> #3
Attached a screenshot of my problem.
tn...@google.com <tn...@google.com>
[Deleted User] <[Deleted User]> #4
Are you using support library or native ActionBar..?
ne...@gmail.com <ne...@gmail.com> #5
I'm using Native ActionBar.
jo...@gmail.com <jo...@gmail.com> #6
I am experiencing this issue as well using the v7 AppCompat ActionBar library. The issue is resolved when the user rotates their device.
va...@googlemail.com <va...@googlemail.com> #7
#6 Of course, the layout is entirely redone in this case.
I have the feeling from what I saw on my apps that the title might be truncated when it has been set to a short string and then a larger one is set. But I never could reproduce it consistently, from time to time it appears. anything that re-draw the activity correct it.
I have the feeling from what I saw on my apps that the title might be truncated when it has been set to a short string and then a larger one is set. But I never could reproduce it consistently, from time to time it appears. anything that re-draw the activity correct it.
ra...@gmail.com <ra...@gmail.com> #8
[Comment deleted]
ba...@gmail.com <ba...@gmail.com> #9
Here is a solution for this:
1. get actionbar view
public View getActionBarView() {
Window window = getWindow();
View v = window.getDecorView();
int resId = getResources().getIdentifier("action_bar_container", "id", "android");
return v.findViewById(resId);
}
2. invalidate the actionbar after you set the title
1. get actionbar view
public View getActionBarView() {
Window window = getWindow();
View v = window.getDecorView();
int resId = getResources().getIdentifier("action_bar_container", "id", "android");
return v.findViewById(resId);
}
2. invalidate the actionbar after you set the title
pa...@gmail.com <pa...@gmail.com> #10
Issue is not obsolete, using ActionBar.setTitle() still truncates a title longer than the previous title when there is plenty of room. None of the workarounds out there have worked so far.
[Deleted User] <[Deleted User]> #11
I am using the latest v7 AppCompat ActionBar and the issue still occurs. None of the workarounds work for me. How is this obsolete?
vr...@gmail.com <vr...@gmail.com> #12
Stating that an issue is obsolete is the oldest trick a developper uses to reduce the number of bugs his project might have.
"What!?! There are 150 unresolved issues on this topic ??"
"Uhh... Wait, all these bugs are from 2013, I close them, it's mid 2015 now"
"Oh, only 35 bugs left, good job man"
"What!?! There are 150 unresolved issues on this topic ??"
"Uhh... Wait, all these bugs are from 2013, I close them, it's mid 2015 now"
"Oh, only 35 bugs left, good job man"
st...@gmail.com <st...@gmail.com> #13
I still have this issue....
re...@netmoms.de <re...@netmoms.de> #14
I too have this issue. How can this be obsolete?
th...@gmail.com <th...@gmail.com> #15
Support v7 Action bar still have this issue
sh...@gmail.com <sh...@gmail.com> #16
[Comment deleted]
mr...@gmail.com <mr...@gmail.com> #17
[Comment deleted]
wh...@gmail.com <wh...@gmail.com> #18
workaround
getSupportActionBar().setTitle("");
getSupportActionBar().setTitle(title);
getSupportActionBar().setTitle("");
getSupportActionBar().setTitle(title);
va...@googlemail.com <va...@googlemail.com> #19
Just encounter this long standing bug, thanks for the workaround
Google still have a lot to learn, how can they mark this as obsolete. It's a wonder anyone ever develops for Android. They're just complacent thanks to their market share, but look what happened to Nokia.
Google still have a lot to learn, how can they mark this as obsolete. It's a wonder anyone ever develops for Android. They're just complacent thanks to their market share, but look what happened to Nokia.
al...@gmail.com <al...@gmail.com> #20
Im still seeing this issue and setting empty string first doesnt work, why is this marked as wont fix?
lu...@gmail.com <lu...@gmail.com> #21
This issue is not fixed. I still see this issue and no matter what I try, I see this issue. Even tried this StackOverflow solutions:
https://stackoverflow.com/q/15389663/878126
First title set determines the max length of the title for next setting of the title text.
I've starred similar reports here:
https://issuetracker.google.com/issues/37009620
https://issuetracker.google.com/issues/37125427
First title set determines the max length of the title for next setting of the title text.
I've starred similar reports here:
de...@google.com <de...@google.com> #22
Still working on it.
de...@google.com <de...@google.com> #24
Should be fixed when next version of SDK Platform and Studio is released.
de...@google.com <de...@google.com> #26
Just in case people are still wondering, you should update to the latest SDK platform for API 22 via the SDK Manager, and update to the latest recycler view by updating the Support repository via the SDK Manager, and in your build.gradle file to use the latest version (22.0.0)
Description