Skip to content

Commit bf8b3d1

Browse files
committed
Update README.md
1 parent bfe379e commit bf8b3d1

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
## 用法
1616

17-
#### `Application`中进行初始化
17+
#### 1. `Application`中进行初始化
1818
```java
1919
public 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
4646
String SKIN_NAME = "BlackFantacy.skin";
4747
String 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
6867
SkinManager.getInstance().restoreDefaultTheme();
6968
```

0 commit comments

Comments
 (0)