在Launcher.java
protected boolean hasCustomContentToLeft() {
//return false;
return true;//负一屏开关打开 wanchengguo 20180424
}
/**
* To be overridden by subclasses to populate the custom content container and call
* {@link #addToCustomContentPage}. This will only be invoked if
* {@link #hasCustomContentToLeft()} is {@code true}.
*/
protected void populateCustomContentContainer() {
/*wanchengguo 负一屏加载布局 20180424 begin*/
View negativeviews = getLayoutInflater().inflate(R.layout.my_negative_layout, null);//加载的布局
initData();//数据、view初始化
addToCustomContentPage(negativeviews, mWorkspace.getCus