コード例 #1
0
 public static void stop() {
   currentAlpha = customAlpha; // restore
   handler4Transparent.removeCallbacks(runnable4Transparent);
   // Log.d("juelian",
   // "run stop()"+"currentAlpha="+currentAlpha+"; customAlpha:"+customAlpha);
   MeterBase.MeterMap.get(MeterBack.NAME).setAlpha(customAlpha);
   MeterBase.MeterMap.get(MeterHome.NAME).setVisibility(View.VISIBLE);
   MeterBase.MeterMap.get(MeterMenu.NAME).setVisibility(View.VISIBLE);
   MeterBase.MeterMap.get(MeterRecent.NAME).setVisibility(View.VISIBLE);
 }
コード例 #2
0
 public static void start() {
   customAlpha = JueLianUtils.getAlpha();
   if (customAlpha != 255) {
     int subtract = customAlpha - 30;
     currentAlpha = customAlpha;
     endAlpha = subtract;
     periodTime = (int) (time4Trans / Math.abs(customAlpha - subtract));
     // Log.d("juelian",
     // "run start()"+"currentAlpha:"+currentAlpha+"; endAlpha:"+endAlpha+"; periodTime:
     // "+periodTime);
   } else {
     periodTime = (int) (time4Trans / Math.abs(startAlpha - endAlpha));
   }
   // Log.d("juelian", "periodTime="+periodTime);
   handler4Transparent.postDelayed(runnable4Transparent, 1L);
   MeterBase.MeterMap.get(MeterHome.NAME).setVisibility(View.GONE);
   MeterBase.MeterMap.get(MeterMenu.NAME).setVisibility(View.GONE);
   MeterBase.MeterMap.get(MeterRecent.NAME).setVisibility(View.GONE);
 }
コード例 #3
0
 private static void transparenting() {
   if (currentAlpha <= endAlpha) {
     // Log.d("juelian",
     // "currentAlphaµÈÓÚendalpha:"+"cu-->"+currentAlpha+"en-->"+endAlpha);
     handler4Transparent.removeCallbacks(runnable4Transparent);
     return;
   }
   currentAlpha--;
   // Log.d("juelian", "currentAlpha--: "+currentAlpha);
   MeterBase.MeterMap.get(MeterBack.NAME).setAlpha(currentAlpha);
   handler4Transparent.postDelayed(runnable4Transparent, periodTime);
 }