Android Open Source - fruit.thememanager Theme Loader Helper






From Project

Back to project page fruit.thememanager.

License

The source code is released under:

Apache License

If you think the Android project fruit.thememanager 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.fruit.thememanager.helper;
//  w  w w .  j  av a  2  s  .c  om
import com.fruit.thememanager.ThemeUtils.ThemeType;

import android.content.Context;
import android.util.Log;

public class ThemeLoaderHelper {

  public static ThemeResourceLoader getThemeResLoader(Context context, ThemeInfo themeInfo) {
    ThemeResourceLoader loader = null;

    switch (themeInfo.mThemeType) {
    case THEME_DEFAULT:
      loader = new ThemeResourceDefaultLoader(context, themeInfo);
      break;
    case THEME_CUSTOM:
      loader = new ThemeResourceCustomLoader(context, themeInfo);
      break;
    default:
      break;
    }
    return loader;
  }

  public static ThemeInfoLoader getThemeInfoLoader(ThemeType themeType) {
    ThemeInfoLoader loader = null;

    Log.d("ThemeLoaderHelper", "Theme type=" + themeType);
    switch (themeType) {
    case THEME_DEFAULT:
      loader = ThemeInfoDefaultLoader.getInstance();
      break;
    case THEME_CUSTOM:
      loader = ThemeInfoCustomLoader.getInstance();
      break;
    default:
      break;
    }
    return loader;
  }
}




Java Source Code List

com.fruit.thememanager.ListItemThemeElement.java
com.fruit.thememanager.ListItem.java
com.fruit.thememanager.ThemeApplyActivity.java
com.fruit.thememanager.ThemeCustomActivity.java
com.fruit.thememanager.ThemeCustomOptActivity.java
com.fruit.thememanager.ThemeManager.java
com.fruit.thememanager.ThemeProvider.java
com.fruit.thememanager.ThemeSettingActivity.java
com.fruit.thememanager.ThemeShowAdapter.java
com.fruit.thememanager.ThemeShowImageAdapter.java
com.fruit.thememanager.ThemeUtils.java
com.fruit.thememanager.helper.ThemeInfoCustomLoader.java
com.fruit.thememanager.helper.ThemeInfoDefaultLoader.java
com.fruit.thememanager.helper.ThemeInfoLoader.java
com.fruit.thememanager.helper.ThemeInfo.java
com.fruit.thememanager.helper.ThemeLoaderHelper.java
com.fruit.thememanager.helper.ThemeResourceCustomLoader.java
com.fruit.thememanager.helper.ThemeResourceDefaultLoader.java
com.fruit.thememanager.helper.ThemeResourceLoader.java
com.fruit.thememanager.helper.ThemeResources.java