RopeProgressBar, "bends" 在它的自身重量下的应用 受http启发

分享于 

3分钟阅读

GitHub

  繁體 雙語
Android ProgressBar that "bends" under its own weight. Inspired by http://drbl.in/nwih
  • 源代码名称:RopeProgressBar
  • 源代码网址:http://www.github.com/cdeange/RopeProgressBar
  • RopeProgressBar源代码文档
  • RopeProgressBar源代码下载
  • Git URL:
    git://www.github.com/cdeange/RopeProgressBar.git
    Git Clone代码到本地:
    git clone http://www.github.com/cdeange/RopeProgressBar
    Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/cdeange/RopeProgressBar
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
    
    RopeProgressBar

    "弯曲"在它的自身重量下的应用。

    RopeProgressBar Animation

    属性

    属性类型默认用法
    app:ropeMax整型0进度条的最大值
    app:ropeProgress整型0将进度条的当前值设置为 n.此方法将新值转发到该模型.
    app:ropePrimaryColor颜色@attr/colorControlActivated完成进度所用的颜色
    app:ropeSecondaryColor颜色@attr/colorControlHighlight用于剩余进度的颜色
    app:ropeSlack维度32dp进度条的最大垂直"弯曲"
    app:ropeStrokeWidth维度8dp进度条线条的宽度
    app:ropeDynamicLayout布尔型false如果进度栏在高度变化时发生更改

    注意:pre lollipop,app:ropePrimaryColor 默认值为 #009688app:ropeSecondaryColor 缺省为 #DADADA。

    下载

    repositories {
     maven {
     url "https://jitpack.io" }
    }
    dependencies {
     compile 'com.github.cdeange:RopeProgressBar:0.1.2'}

    许可证

    
    Copyright 2017 Christian De Angelis
    
    
    
    Licensed under the Apache License, Version 2.0 (the"License");
    
    
    you may not use this file except in compliance with the License.
    
    
    You may obtain a copy of the License at
    
    
    
     http://www.apache.org/licenses/LICENSE-2.0
    
    
    
    Unless required by applicable law or agreed to in writing, software
    
    
    distributed under the License is distributed on an"AS IS" BASIS,
    
    
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    
    
    See the License for the specific language governing permissions and
    
    
    limitations under the License.
    
    
    
    

    相关文章