android notification background color is not white on lollipop -


as known android lollipop force set notification background color white, can set style of textview according different sdk version putting style.xml in folder values-v21.

so here comes question, on third party roms, example, emui developed huawei tech co., background of notification not white(nearly black), setting style to

android:textappearance.material.notification.title 

the color of text black, result, cannot see text clearly. had been searching internet 2 days find nothing helps.

i trying color of notification background , set text color dynamically, don't know how accomplish this.

need help, lot.

ok, use official api set notification info, inflate default notification layout (status_bar_latest_event_content.xml)instead of custom layout. rom changed default background , text-color of status_bar_latest_event_content.xml, wouldn't (or can't) change custom layout.

mbuilder.setlargeicon(combinebitmap).setcontenttext(notifystring).setsubtext("fff"); 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

python - How to remove the Xframe Options header in django? -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -