Code Monkey home page Code Monkey logo

waveloadingview's Introduction

##效果:


##使用:


在Activity onCreate()中写

        mWaveLoadingView = new WaveLoadingView(this);
        setContentView(mWaveLoadingView);
        mWaveLoadingView.setWaveColor(0xff0099CC)
                        .setTextColor(0xffFFFFFF)
                        .setTextSize(40)
                        .setTextColor(0xff000000)
                        .setAmplitude(20)
                        .setPalstance(0.5f)
                        .setRefreshTime(4);
        mWaveLoadingView.setOnFinishedListener(new WaveLoadingView.OnFinishedListener() {
            @Override
            public void onFinished() {
                System.out.println("完成");
            }
        });

##License


Copyright 2014 ZhongBaiTu

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.

waveloadingview's People

Contributors

zhongbaitu avatar

Stargazers

ahmed elsawwah avatar  avatar  avatar  avatar 王金涛 avatar MuriWanna avatar xinqi avatar  avatar  avatar Charming avatar Emerson avatar 刘昊 avatar картошка avatar  avatar Oven avatar  avatar VV avatar  avatar  avatar Louis Tsai avatar Jimmy Kwok avatar holmes avatar yinruimin avatar HUGO avatar JackyXu avatar dragonjiang avatar  avatar hunting for a job avatar  avatar  avatar kebo avatar  avatar Sunky avatar Qingsong.Xu avatar Neil avatar Wesley avatar JamesWang avatar wangxu avatar Jing Lu avatar weilong avatar LiuKun avatar  avatar  avatar booksnail avatar hncc avatar dxjia avatar Jungle avatar wIsper avatar Victor avatar  avatar 尚晓东 avatar Andy.li avatar samuelwang avatar lllllttttt avatar G avatar Culm avatar  avatar Harlan Mo avatar  avatar luck avatar  Genng avatar  avatar 金宇Kince avatar  avatar mallwlallerl avatar Nereo avatar Levin avatar Tramone avatar  avatar Ren  Yu avatar DuGuang avatar NicodeLee avatar Fiskz avatar fraborna avatar Awsl avatar Leonardo Cabral avatar 刘群 avatar  avatar Dearshor Xue avatar

Watchers

James Cloos avatar mallwlallerl avatar  avatar Ren  Yu avatar 尚晓东 avatar  avatar  avatar dragonjiang avatar

waveloadingview's Issues

[疑问]为什么setPath方法还要调用quadTo?

在setPath中,代码已经建立了一条对于宽度width的水平周期函数线(y = (int) (a * Math.sin((i * w + fai) * Math.PI / 180) + k);)了,为什么还要用path的quadTo方法呢?

PS:什么不直接用quadTo呢?获取到的width可能是几百甚至上千啊,遍历那么多次,个人感觉不是很好......

页面刷新问题

你好,我看了一下源码 ,没有发现在哪儿刷新页面的! 请问你是在哪儿刷新页面的?

怎么引入你的库?

第一感谢作者,效果确实不错,怎么引入这个库呢? 我直接通过添加布局的形式,没有效果,再又通过构造也还是一样 ?

延迟启动问题

为什么需要延迟两秒再启动,而且直接启动的话,界面就不会刷新了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.