手机
当前位置:查字典教程网 >编程开发 >安卓软件开发 >Android中自定义水平进度条样式之黑色虚线
Android中自定义水平进度条样式之黑色虚线
摘要:以下内容给大家介绍Android中自定义水平进度条样式之黑色虚线,对代码实现方法感兴趣的朋友一起学习吧。布局layout中使用:下面为xml...

以下内容给大家介绍Android中自定义水平进度条样式之黑色虚线,对代码实现方法感兴趣的朋友一起学习吧。

布局layout中使用:

<ProgressBar android:id="@+id/progress_bar" <> android:progressDrawable="@drawable/myprogress" <> android:layout_width="dp" android:layout_height="dp" android:layout_marginTop="dp" android:maxHeight="dp" android:minHeight="dp" android:max="" android:secondaryProgress="" android:progress="" android:indeterminateOnly="false" />

下面为xml源代码myprogress.xml:

<" encoding="utf-"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <> <item android:id="@android:id/background" > <shape android:shape="line"> <stroke android:width="dp" android:color="#" <> android:dashWidth="dp" android:dashGap="dp" /> <> </shape> </item> <item android:id="@android:id/progress" > <clip> <shape android:shape="line"> <stroke android:width="dp" android:color="#" android:dashWidth="dp" android:dashGap="dp" /> </shape> </clip> </item> </layer-list>

以上所述是本文给大家分享的Android中自定义水平进度条样式之黑色虚线 的相关知识,希望对大家有所帮助!

【Android中自定义水平进度条样式之黑色虚线】相关文章:

Android-对自定义类型的list排序

Android 自定义标题栏 显示网页加载进度的方法实例

Android自定义格式显示Button的布局思路

android中的按两次返回键退出代码

Android 开发中怎么使用自定义字体

Android开发之相对布局

Android开发之OpenGL ES 基础

Android中的Button自定义点击效果实例代码

Android生存指南之:开发中的注意事项

Android开发之选项组件

精品推荐
分类导航