Fixed
Status Update
Comments
ch...@google.com <ch...@google.com> #2
Hello,
Thank you for reaching out to us!
This issue seems to be outside of the scope of Issue Tracker. This Issue Tracker is a forum for end users to report bugs
and request features
on Google Cloud products. Please go through
I recommend you to
For now, I'm going to close this thread which will no longer be monitored. In case you want to report a new issue, please do not hesitate to create a new Issue Tracker describing your issue.
Thank you!
ko...@gmail.com <ko...@gmail.com> #3
Thanks for the feedback! Well, it worked in the previous version. AFAIK textAllCaps is a global attribute value, should not it work in a theme?
ko...@gmail.com <ko...@gmail.com> #4
It seems it does not work even with a style:
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello, World!"
style="@style/MyTextStyle"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello, World!"
style="@style/MyTextStyle"/>
ch...@google.com <ch...@google.com>
zo...@gmail.com <zo...@gmail.com> #5
Is there any temporary fix for that? I have problem with tabs.
<android.support.design.widget.TabLayout
android:id="@+id/slidingTabs"
android:layout_width="match_parent"
android:layout_height="42dp"
style="@style/AppTabLayout"/>
<style name="AppTabLayout" parent="Widget.Design.TabLayout">
<item name="tabIndicatorColor">@color/tab_indicator</item>
<item name="tabIndicatorHeight">2dp</item>
<item name="tabPaddingStart">12dp</item>
<item name="tabPaddingEnd">12dp</item>
<item name="tabBackground">@color/tab_background</item>
<item name="tabSelectedTextColor">@color/tab_text</item>
<item name="tabTextAppearance">@style/AppTabTextAppearance</item>
</style>
<style name="AppTabTextAppearance" parent="TextAppearance.Design.Tab">
<item name="android:textSize">16sp</item>
<item name="android:textColor">@color/tab_text</item>
<item name="android:fontFamily">sans-serif-light</item>
<item name="textAllCaps">false</item>
</style>
<android.support.design.widget.TabLayout
android:id="@+id/slidingTabs"
android:layout_width="match_parent"
android:layout_height="42dp"
style="@style/AppTabLayout"/>
<style name="AppTabLayout" parent="Widget.Design.TabLayout">
<item name="tabIndicatorColor">@color/tab_indicator</item>
<item name="tabIndicatorHeight">2dp</item>
<item name="tabPaddingStart">12dp</item>
<item name="tabPaddingEnd">12dp</item>
<item name="tabBackground">@color/tab_background</item>
<item name="tabSelectedTextColor">@color/tab_text</item>
<item name="tabTextAppearance">@style/AppTabTextAppearance</item>
</style>
<style name="AppTabTextAppearance" parent="TextAppearance.Design.Tab">
<item name="android:textSize">16sp</item>
<item name="android:textColor">@color/tab_text</item>
<item name="android:fontFamily">sans-serif-light</item>
<item name="textAllCaps">false</item>
</style>
ko...@gmail.com <ko...@gmail.com> #6
#5 : yep, i also had the exact some problem (among others related to this issue). I had to stick with the previous support library version.
zo...@gmail.com <zo...@gmail.com> #7
I don't know if I'm stupid or something but it still doesn't work in my case :( Is there anything else that should be changed (check example in #5)? This example worked fine in 23.1.
ko...@gmail.com <ko...@gmail.com> #8
#8 I can confirm, this is still not working in my app, too. :(
he...@gmail.com <he...@gmail.com> #9
I am also having the all caps issue in 23.2.1.I set textAllCaps to false in my style for tabTextAppearance of my tabLayout. This works with 23.1.0 as expected, however in 23.2.0 and 23.2.1 my tabs are shown with all caps.
zo...@gmail.com <zo...@gmail.com> #10
I have simply fixed that with:
for (int i = 0; i < tabLayout.getTabCount(); i++) {
tabLayout.getTabAt(i).setCustomView(R.layout.tab_item);
}
and tab_item is TextView with id @android:id/text1
Simple and safe!
for (int i = 0; i < tabLayout.getTabCount(); i++) {
tabLayout.getTabAt(i).setCustomView(R.layout.tab_item);
}
and tab_item is TextView with id @android:id/text1
Simple and safe!
br...@gmail.com <br...@gmail.com> #11
Definitely is still an issue on 23.2.1
du...@gmail.com <du...@gmail.com> #12
Changing textAllCaps to android:textAllCaps fixed the issue for me
[Deleted User] <[Deleted User]> #13
@heiko: use <item name="textAllCaps">false</item> instead of android:textAllCaps for TabLayout.Tab
br...@gmail.com <br...@gmail.com> #14
neither #13 nor #14 works as expected, both style is ignored.
ko...@gmail.com <ko...@gmail.com> #15
I opened a new issue for the TabLayout style problem: b.android.com/204118
mi...@gmail.com <mi...@gmail.com> #16
I'm having similar issue as well. I'm using support library 23.2.1
th...@gmail.com <th...@gmail.com> #17
[Comment deleted]
th...@gmail.com <th...@gmail.com> #18
[Comment deleted]
Description
<style name="MyTextStyle">
<item name="textAllCaps">false</item>
</style>
And this in my layout:
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello, World!"
android:theme="@style/MyTextStyle"/>
The expected behaviour would not seeing all caps, however in 23.2.0, the text in the button is all caps.
The exact same code worked as expected with AppCompat 23.1.1.
Example project: