Skip to content

Commit 79b0ee7

Browse files
committed
format
1 parent 995ea98 commit 79b0ee7

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

BasicKnowledge/修改系统组件样式.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@
7272
android:angle="270"
7373
/>
7474
</shape>
75-
</item>
76-
75+
</item>
7776
<item android:id="@android:id/secondaryProgress">
7877
<clip>
7978
<shape>
@@ -87,8 +86,7 @@
8786
/>
8887
</shape>
8988
</clip>
90-
</item>
91-
89+
</item>
9290
<item android:id="@android:id/progress"> //进度
9391
<clip>
9492
<shape>
@@ -103,7 +101,6 @@
103101
</shape>
104102
</clip>
105103
</item>
106-
107104
</layer-list>
108105
```
109106
3. 自定义一个样式继承系统的Widget.ProgressBar.Horizontal,然后重写android:progressDrawable属性,让其指向我们的样式
@@ -126,10 +123,8 @@
126123
<item android:id="@android:id/background" android:drawable="@drawable/security_progress_bg">//好看的图片
127124
</item>
128125
<item android:id="@android:id/secondaryProgress" android:drawable="@drawable/security_progress_bg">
129-
130126
</item>
131127
<item android:id="@android:id/progress" android:drawable="@drawable/security_progress">//好看的图片
132-
133128
</item>
134129
</layer-list>
135130
```

0 commit comments

Comments
 (0)