mismeter

Additional

Language
Java
Version
1.0.0 (Nov 2, 2016)
Created
Nov 1, 2016
Updated
Dec 1, 2016 (Retired)
Owner
Andrew Chen (yongjhih)
Contributors
Andrew Chen (yongjhih)
Ethan Gong (jasonkung0211)
2
Activity
Badge
Generate
Download
Source code

Advertisement

MisMeter

Usage

<com.github.yongjhih.mismeter.MisMeter
    android:id="@+id/meter"
    android:layout_width="200dp"
    android:layout_height="200dp"
    />
final MisMeter meter = (MisMeter) findViewById(R.id.meter);
meter.setProgress(0.8f);

or

ValueAnimator anim = ValueAnimator.ofFloat(meter.progress, 0.8f);
anim.setInterpolator(new AccelerateDecelerateInterpolator());
anim.setDuration(500);
anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
    @Override
    public void onAnimationUpdate(ValueAnimator valueAnimator) {
        meter.setProgress((float) valueAnimator.getAnimatedValue());
    }
});
anim.start();

Stylable

  • app:show_text="true"

Installation

repositories {
    jcenter()
    maven { url "https://jitpack.io" }
}

dependencies {
    compile 'com.github.yongjhih:mismeter:1.0.0'
}

LIVE DEMO

LICENSE

Copyright 2016 Andrew Chen

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.