Back to project page MightyToast.
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.
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; } }