Back to project page MinerStatus.
The source code is released under:
Apache License
If you think the Android project MinerStatus 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 me.davidgreene.minerstatus.theme; //w ww . j av a 2 s. c o m public class ThemeFactory { private static final Theme DEFAULT_THEME = new DarkTheme(); public static Theme getTheme(){ return getTheme(""); } public static Theme getTheme(String themeName){ if(themeName == null){ return DEFAULT_THEME; } if(themeName.equals("dark")){ return new DarkTheme(); } if(themeName.equals("light")){ return new LightTheme(); } return DEFAULT_THEME; } }