package de.nitri.gaugedemo;

import android.os.Handler;
import android.os.HandlerThread;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import de.nitri.gauge.Gauge;

import static android.R.attr.value;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        final Gauge gauge1 = findViewById(R.id.gauge1);
        final Gauge gauge2 = findViewById(R.id.gauge2);
        final Gauge gauge3 = findViewById(R.id.gauge3);
        final Gauge gauge4 = findViewById(R.id.gauge4);

        gauge1.moveToValue(800);

        /*
        gauge1.setMaxValue(800);
        gauge1.setTotalNicks(100);
        gauge1.setValuePerNick(10);
        gauge1.setMajorNickInterval(10);
        gauge1.setMaxValue(800);
        */

        HandlerThread thread = new HandlerThread("GaugeDemoThread");
        thread.start();
        Handler handler = new Handler(thread.getLooper());

        handler.postDelayed(new Runnable() {
            @Override
            public void run() {
                gauge1.moveToValue(300);
            }
        }, 2800);
        handler.postDelayed(new Runnable() {
            @Override
            public void run() {
                gauge1.moveToValue(550);
            }
        }, 5600);

        HandlerThread gauge3Thread = new HandlerThread("Gauge3DemoThread");
        gauge3Thread.start();
        Handler gauge3Handler = new Handler(gauge3Thread.getLooper());
        gauge3Handler.post(new Runnable() {
            @Override
            public void run() {
                for (float x = 0; x <= 6; x += .1) {
                    float value = (float) Math.atan(x) * 20;
                    gauge3.moveToValue(value);
                    try {
                        Thread.sleep(100);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                }
            }
        });

        gauge4.setValue(333);
    }
}

@@ -738,32 +738,63 @@
 tMaxValue(800);%0A
+        gauge1.setMinValue(0);%0A
         gauge1.s
@@ -893,41 +893,8 @@
 0);%0A
-        gauge1.setMaxValue(800);%0A
     

Update setter example