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)

    Details

      Description

      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.

      mytheme.xml:

      <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>
      </style>
      

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shossain Shak Hossain
                Reporter:
                gfigueras Guillermo Figueras
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code