zoukankan      html  css  js  c++  java
  • 进度条样式自定义

    进度条样式自定义
    style="@android:style/Widget.ProgressBar.Horizontal"
    android:progressDrawable="@drawable/asd"
    <?xml version="1.0" encoding="utf-8"?>
    <layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
    
        <item android:id="@android:id/background">
            <shape>
                <corners android:radius="5dip" />
                <solid android:color="#88000000"/>
            </shape>
        </item>
        <item android:id="@android:id/secondaryProgress">
            <clip>
                <shape>
                    <corners android:radius="5dip" />
    
                    <gradient
                        android:angle="270"
                        android:centerColor="#C6B7FF"
                        android:centerY="0.75"
                        android:endColor="#C3B2FF"
                        android:startColor="#B9A4FF" />
                </shape>
            </clip>
        </item>
        <item android:id="@android:id/progress">
            <clip>
                <shape>
                    <corners android:radius="5dip" />
                    <gradient
                        android:angle="270"
                        android:centerColor="#74EBFF"
                        android:centerY="0.75"
                        android:endColor="#8EEFFF"
                        android:startColor="#57E8FF" />
                </shape>
            </clip>
        </item>
    
    </layer-list>
    

      

  • 相关阅读:
    《图解CSS3》笔记5 媒体与Responsive设计
    理论篇 前端MVC、MVP、MVVM思考1
    AngularJS篇 $resource使用笔记
    《图解CSS3》笔记4 animation动画
    Prim
    邻接矩阵与邻接表
    差分约束
    SPFA
    floyd
    Kosaraju
  • 原文地址:https://www.cnblogs.com/zmaibbs7/p/4844274.html
Copyright © 2011-2022 走看看