Android Toolbar: Light.DarkActionBar -


I use the new toolbar in my Android app. I want the same subject as "Light. So that the background of my content is white. Text is black. And my actionbars / toolbars also have a custom background and white text and overflow menu. So I implement them in my styles. Xml:

  & lt; Style name = "appbashtheme" parent = "theme.AppCompat.Light.NoActionBar" & gt; & Lt; Item name = "color primary" & gt; @color / primary color & lt; / Item & gt; & Lt; Item name = "color primary diary" & gt; @ Color / accent color & lt; / Item & gt; & Lt; Item name = "color clock" & gt; @ Color / accent color & lt; / Item & gt; & Lt; / Style & gt;  

Toolbar implementations such as people:

  & lt; Android.support.v7.widget.Toolbar Android: id = "@ + id / toolbar" Android: layout_width = "match_perrent" android: layout_height = "rap_sign" android: background = "@color / primary collar" app: minhite = " ? Etr / actionbarsis "app: popupthem =" @ style / themeoverre.acceptant.lite "app: theme =" @style / theme overlay.app comet.dark.actionbar "/>  

But it does not look like a toolbar-text and toolbar back-button ( getSupportActionBar (). SetDisplayHomeAsUpEnabled (true) ) still looks black! !! What am i doing wrong

OK, I got a bug

  xmls: app  

There was an incorrect URI in the namespace. It was

  xmlns: app = "http://schemas.android.com/tools"  

for any reason ... I changed it Given right one:

  xmls: app = "http://schemas.android.com/apk/res-auto"  

now it works I need to


Comments