geometric-progress-view, 以 2D 几何形状的形式,可以定制的进度指示器

分享于 

3分钟阅读

GitHub

  繁體 雙語
Customizable progress indicator in the form of 2D geometric shapes
  • 源代码名称:geometric-progress-view
  • 源代码网址:http://www.github.com/vbohush/geometric-progress-view
  • geometric-progress-view源代码文档
  • geometric-progress-view源代码下载
  • Git URL:
    git://www.github.com/vbohush/geometric-progress-view.git
    Git Clone代码到本地:
    git clone http://www.github.com/vbohush/geometric-progress-view
    Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/vbohush/geometric-progress-view
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
    
    GeometricProgressView

    Build StatusAPIAndroid ArsenalMaterialUps

    可以定制的进度指示器,形状为 2D 个几何形状

    用法

    <net.bohush.geometricprogressview.GeometricProgressView
     android:id="@+id/progressView"android:layout_width="wrap_content"android:layout_height="wrap_content"app:gp_type="triangle"app:gp_number_of_angles="7"app:gp_color="@android:color/black"app:gp_duration="800"app:gp_figure_padding="3dp"/>

    以编程方式自定义

    GeometricProgressView progressView = (GeometricProgressView) findViewById(R.id.progressView);
    progressView.setType(TYPE.KITE);
    progressView.setNumberOfAngles(6);
    progressView.setColor(Color.parseColor("#00897b"));
    progressView.setDuration(1000);
    progressView.setFigurePadding(getResources().getDimensionPixelOffset(R.dimen.figure_padding));

    下载

    Gradle

    dependencies {
     compile 'net.bohush.geometricprogressview:geometricprogressview:1.1.1'}

    许可证

    
    Copyright 2017 Viktor Bohush
    
    
    
    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.
    
    
    
    

    for  form  SHA  GEO  进度  Indic  
    相关文章