File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414
1515## 用法
1616
17- #### 在` Application ` 中进行初始化
17+ #### 1. 在` Application ` 中进行初始化
1818``` java
1919public class SkinApplication extends Application {
2020 public void onCreate () {
@@ -26,7 +26,7 @@ public class SkinApplication extends Application {
2626}
2727```
2828
29- #### 在布局文件中标识需要换肤的View
29+ #### 2. 在布局文件中标识需要换肤的View
3030
3131``` xml
3232...
@@ -38,10 +38,10 @@ xmlns:skin="http://schemas.android.com/android/skin"
3838 ... />
3939```
4040
41- #### 继承` SkinPluginActivity ` 作为BaseActivity进行开发
41+ #### 3. 继承` SkinPluginActivity ` 作为BaseActivity进行开发
4242
4343
44- #### 从` .skin ` 文件中设置皮肤
44+ #### 4. 从` .skin ` 文件中设置皮肤
4545``` java
4646String SKIN_NAME = " BlackFantacy.skin" ;
4747String SKIN_DIR = Environment . getExternalStorageDirectory() + File . separator + SKIN_NAME ;
@@ -62,8 +62,7 @@ SkinManager.getInstance().load(skin.getAbsolutePath(),
6262 });
6363```
6464
65-
66- #### 重设默认皮肤
65+ #### 5. 重设默认皮肤
6766``` java
6867SkinManager . getInstance(). restoreDefaultTheme();
6968```
You can’t perform that action at this time.
0 commit comments