Android Open Source - TipCalculator.Android App Settings






From Project

Back to project page TipCalculator.Android.

License

The source code is released under:

MIT License

If you think the Android project TipCalculator.Android 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 net.alteridem.tipcalculator;
/*w  ww. j ava2  s.  co  m*/
import org.androidannotations.annotations.sharedpreferences.DefaultInt;
import org.androidannotations.annotations.sharedpreferences.DefaultString;
import org.androidannotations.annotations.sharedpreferences.SharedPref;

/**
 * Author: Rob Prouse
 * Date: 2014-09-17.
 */
@SharedPref(SharedPref.Scope.UNIQUE)
public interface AppSettings {

    /**
     * The precision in decimals of the currency
     */
    @DefaultString(value = "2", keyRes = R.string.settings_decimal_places_key)
    String precision();

    /**
     * The amount of the bill
     */
    String bill();

    /**
     * The tip percentage
     */
    @DefaultInt(15)
    int tip();

    /**
     * The 0 based number of people. 0 = 1 person.
     */
    int people();
}




Java Source Code List

net.alteridem.tipcalculator.AppSettings.java
net.alteridem.tipcalculator.ApplicationTest.java
net.alteridem.tipcalculator.SettingsActivity.java
net.alteridem.tipcalculator.TipActivity.java
net.alteridem.tipcalculator.utilites.Calculator.java
net.alteridem.tipcalculator.utilites.PlayStore.java