Android Open Source - MightyToast Mighty Style






From Project

Back to project page MightyToast.

License

The source code is released under:

Apache License

If you think the Android project MightyToast 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.urmwsk.mightytoast;
/*from   www.j a v a  2 s  .  c o m*/
import android.content.res.Resources;

public enum MightyStyle {
  INFO, ALERT, SUCCESS;

  public int whatColor(Resources resources) {
    switch (this) {
      case ALERT:
        return resources.getColor(R.color.default_alert);
      case SUCCESS:
        return resources.getColor(R.color.default_success);
      case INFO:
        return resources.getColor(R.color.default_info);
    }
    return 0;
  }
}




Java Source Code List

com.urmwsk.mightytoast.ApplicationTest.java
com.urmwsk.mightytoast.MightyDismissListener.java
com.urmwsk.mightytoast.MightyStyle.java
com.urmwsk.mightytoast.MightyToastView.java
com.urmwsk.mightytoast.MightyToast.java
com.urmwsk.mightytoast.MightyType.java
com.urmwsk.mightytoastsample.ApplicationTest.java
com.urmwsk.mightytoastsample.SampleActivity.java