This is the layout of the custom Actionbar style (using Sherlockactionbar, overall customization)
View CustomView = Getlayoutinflater (). Inflate (R.layout.actionbar_custom_view, NULL); Actionbarutil.init ();//... getsupportactionbar (). Setdisplayshowcustomenabled (True); Getsupportactionbar (). Setcustomview (CustomView);
When actually displayed, in the 4.4.2 system, the upper left corner of the Actionbar has an area that is not a custom layout. The following code is called before the parent class of the current activity or the preceding code, and is displayed as normal:
Test found on 4.4 system, without the code, then the upper left corner of custom Actionbar has a problem if (getsupportactionbar () = null) {Getsupportactionbar (). Settitle ("");}
This problem has been tangled up for a long time
Android: Custom Actionbar solution with a missing piece on the left of the high resolution