henrytao-me / smooth-app-bar-layout

Smooth version of Google Support Design AppBarLayout
Apache License 2.0
1.77k stars 240 forks source link

Strange issue with toolbar title color #194

Closed angryanatole closed 7 years ago

angryanatole commented 7 years ago

Dear Henry!

First of all, thank you for your library.

I'm experiencing the following issue: for some reasons I'm unable to change the title color of the toolbar (it is always black). I know it sounds like an easy problem, but I took code from your sample project and tried to change color via attributes in style.xml (item name="android:textColor" in MdToolbar.Title) and with .setTitleTextColor() method. Also looked through the parent themes - nothing seems to override this values. Also tried to use it with different versions of support library.

Any suggestions on what may be causing the issue?

taatu0 commented 7 years ago

try setting app:popupTheme

<style name="youAppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />

angryanatole commented 7 years ago

@taatu0 thank you for your reply, unfortunatelly, I've already tried that, still no luck. The code is taken from activity_smooth_scroll_parallax.xml. This is the screenshot taken on emulator (same on my devices):

test

here myTheme is <style name="MyTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />.

taatu0 commented 7 years ago

untitle2d

angryanatole commented 7 years ago

@taatu0 oh, such a stupid mistake, I should obviously get more sleep. Thank you so much!

henrytao-me commented 7 years ago

Thanks @taatu0 for helping