Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-5414

Android: can't display drawer menu over ActionBar correctly (title color gets overwritten)



      I'm facing a problem with drawer menus in Android.

      I want my app to display the drawer menu over the ActionBar. I managed to do that by setting a couple of properties on my app theme, but the problem is that after using those two properties, my ActionBar title color will change to black, and I want it to be white.


      <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
      	<item name="colorPrimary">@color/red</item>
      	<item name="android:colorPrimaryDark">@color/red_dark</item>
      	<item name="android:textColorPrimary">@color/white</item>  
      	<item name="android:textColorSecondary">@color/white</item>
          	<item name="android:textColorHint">#CCCCCC</item>
          	<item name="colorControlHighlight">#212121</item>
          	<!-- With these properties I can display drawer menu over actionbar but actionbar's title color changes to black  -->
          	<item name="windowActionBar">false</item>
              <item name="windowNoTitle">true</item>

      I uploaded some images so you can see what's happening to me.

      If I don't set windowActionBar and windowNoTitle on my theme you can check how my app will look like by opening the image drawer_below_actionbar.png

      If I do set those two properties on my theme, then the drawer will cover the ActionBar but its title will get black instead of white. Check images drawer_over_actionbar.png and actionbar_wrong_color.png


          Issue Links



              • Assignee:
                shossain Shak Hossain (Inactive)
                gfigueras Guillermo Figueras
              • Watchers:
                3 Start watching this issue


                • Created:

                  Git Source Code