예제 #1
0
 public void ChangeDay(Activity ctx, int style)
 {
     if (BackGroundDrawableViews == null || TextColorViews == null || BackGroundViews == null)
     {
         throw new RuntimeException("请先调用init()初始化方法!");
     }
     ChangeModeHelper.SetChangeMode(ctx, ChangeModeHelper.MODE_DAY);
     ctx.SetTheme(style);
     ShowAnimation(ctx);
     RefreshUI(ctx);
 }
예제 #2
0
 public void SetTheme(Context ctx, int Style_Day, int Style_Night)
 {
     if (ChangeModeHelper.GetChangeMode(ctx) == ChangeModeHelper.MODE_DAY)
     {
         ctx.SetTheme(Style_Day);
     }
     else if (ChangeModeHelper.GetChangeMode(ctx) == ChangeModeHelper.MODE_NIGHT)
     {
         ctx.SetTheme(Style_Night);
     }
 }