File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 7272 android:angle="270"
7373 />
7474 </shape>
75- </item>
76-
75+ </item>
7776 <item android:id="@android:id/secondaryProgress">
7877 <clip>
7978 <shape>
8786 />
8887 </shape>
8988 </clip>
90- </item>
91-
89+ </item>
9290 <item android:id="@android:id/progress"> //进度
9391 <clip>
9492 <shape>
103101 </shape>
104102 </clip>
105103 </item>
106-
107104 </layer-list>
108105 ```
109106 3. 自定义一个样式继承系统的Widget.ProgressBar.Horizontal,然后重写android:progressDrawable属性,让其指向我们的样式
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 ```
You can’t perform that action at this time.
0 commit comments