Skip to content

Commit

Permalink
默认关闭状态栏换肤
Browse files Browse the repository at this point in the history
  • Loading branch information
ximsfei committed Apr 28, 2018
1 parent 9a02add commit 0052950
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class SkinCompatManager extends SkinObservable {
private List<SkinLayoutInflater> mHookInflaters = new ArrayList<>();
private SparseArray<SkinLoaderStrategy> mStrategyMap = new SparseArray<>();
private boolean mSkinAllActivityEnable = true;
private boolean mSkinStatusBarColorEnable = true;
private boolean mSkinStatusBarColorEnable = false;
private boolean mSkinWindowBackgroundColorEnable = true;

/**
Expand Down Expand Up @@ -121,6 +121,7 @@ public interface SkinLoaderStrategy {
Drawable getDrawable(Context context, String skinName, int resId);

/**
* {@link #SKIN_LOADER_STRATEGY_NONE}
* {@link #SKIN_LOADER_STRATEGY_ASSETS}
* {@link #SKIN_LOADER_STRATEGY_BUILD_IN}
* {@link #SKIN_LOADER_STRATEGY_PREFIX_BUILD_IN}
Expand Down
2 changes: 1 addition & 1 deletion demo/skin-app/src/main/java/com/ximsfei/skindemo/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void onCreate() {
.addInflater(new SkinCardViewInflater()) // CardView v7
.addInflater(new SkinCircleImageViewInflater()) // hdodenhof/CircleImageView
.addInflater(new SkinFlycoTabLayoutInflater()) // H07000223/FlycoTabLayout
// .setSkinStatusBarColorEnable(false) // 关闭状态栏换肤
.setSkinStatusBarColorEnable(true) // 关闭状态栏换肤
// .setSkinWindowBackgroundEnable(false) // 关闭windowBackground换肤
// .setSkinAllActivityEnable(false) // true: 默认所有的Activity都换肤; false: 只有实现SkinCompatSupportable接口的Activity换肤
.loadSkin();
Expand Down

0 comments on commit 0052950

Please sign in to comment.