Android Open Source - TextCounter Formatter






From Project

Back to project page TextCounter.

License

The source code is released under:

MIT License

If you think the Android project TextCounter listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.github.premnirmal.textcounter;
//from  ww  w  .j a  v  a  2 s. c  om
/**
 * Created by prem on 10/28/14.
 *
 * Used to format the float value of the text to be set.
 */
public interface Formatter {

    /**
     * Format the value in anyway you want
     * Remember to prepend the prefix and append the suffix
     *
     * @param prefix prefix set in {@link com.github.premnirmal.textcounter.CounterView}
     * @param suffix suffix set in {@link com.github.premnirmal.textcounter.CounterView}
     * @param value the number value at the current time interval
     * @return formatted String
     */
    String format(String prefix, String suffix, float value);

}




Java Source Code List

com.github.premnirmal.textcounter.CounterType.java
com.github.premnirmal.textcounter.CounterView.java
com.github.premnirmal.textcounter.Counter.java
com.github.premnirmal.textcounter.Formatter.java
com.github.premnirmal.textcounter.formatters.CommaSeparatedDecimalFormatter.java
com.github.premnirmal.textcounter.formatters.DecimalFormatter.java
com.github.premnirmal.textcounter.formatters.IntegerFormatter.java
com.github.premnirmal.textcounter.formatters.NoFormatter.java
com.github.premnirmal.textcounterdemo.ParanormalActivity.java