me.imid.swipebacklayout.lib.Utils.convertActivityToTranslucentBeforeL()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(79)

本文整理了Java中me.imid.swipebacklayout.lib.Utils.convertActivityToTranslucentBeforeL()方法的一些代码示例,展示了Utils.convertActivityToTranslucentBeforeL()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.convertActivityToTranslucentBeforeL()方法的具体详情如下:
包路径:me.imid.swipebacklayout.lib.Utils
类名称:Utils
方法名:convertActivityToTranslucentBeforeL

Utils.convertActivityToTranslucentBeforeL介绍

[英]Calling the convertToTranslucent method on platforms before Android 5.0
[中]在Android 5.0之前的平台上调用convertToTranslucent方法

代码示例

代码示例来源:origin: liuling07/SimpleNews

/**
 * Convert a translucent themed Activity
 * {@link android.R.attr#windowIsTranslucent} back from opaque to
 * translucent following a call to
 * {@link #convertActivityFromTranslucent(android.app.Activity)} .
 * <p>
 * Calling this allows the Activity behind this one to be seen again. Once
 * all such Activities have been redrawn
 * <p>
 * This call has no effect on non-translucent activities or on activities
 * with the {@link android.R.attr#windowIsFloating} attribute.
 */
public static void convertActivityToTranslucent(Activity activity) {
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
    convertActivityToTranslucentAfterL(activity);
  } else {
    convertActivityToTranslucentBeforeL(activity);
  }
}

代码示例来源:origin: kaku2015/WeatherAlarmClock

/**
 * Convert a translucent themed Activity
 * {@link android.R.attr#windowIsTranslucent} back from opaque to
 * translucent following a call to
 * {@link #convertActivityFromTranslucent(android.app.Activity)} .
 * <p>
 * Calling this allows the Activity behind this one to be seen again. Once
 * all such Activities have been redrawn
 * <p>
 * This call has no effect on non-translucent activities or on activities
 * with the {@link android.R.attr#windowIsFloating} attribute.
 */
public static void convertActivityToTranslucent(Activity activity) {
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
    convertActivityToTranslucentAfterL(activity);
  } else {
    convertActivityToTranslucentBeforeL(activity);
  }
}

代码示例来源:origin: naturs/StatusBarHelper

/**
 * Convert a translucent themed Activity
 * {@link android.R.attr#windowIsTranslucent} back from opaque to
 * translucent following a call to
 * {@link #convertActivityFromTranslucent(android.app.Activity)} .
 * <p>
 * Calling this allows the Activity behind this one to be seen again. Once
 * all such Activities have been redrawn
 * <p>
 * This call has no effect on non-translucent activities or on activities
 * with the {@link android.R.attr#windowIsFloating} attribute.
 */
public static void convertActivityToTranslucent(Activity activity) {
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
    convertActivityToTranslucentAfterL(activity);
  } else {
    convertActivityToTranslucentBeforeL(activity);
  }
}

代码示例来源:origin: xiaoyanger0825/CompatStatusBar

/**
 * Convert a translucent themed Activity
 * {@link android.R.attr#windowIsTranslucent} back from opaque to
 * translucent following a call to
 * {@link #convertActivityFromTranslucent(android.app.Activity)} .
 * <p>
 * Calling this allows the Activity behind this one to be seen again. Once
 * all such Activities have been redrawn
 * <p>
 * This call has no effect on non-translucent activities or on activities
 * with the {@link android.R.attr#windowIsFloating} attribute.
 */
public static void convertActivityToTranslucent(Activity activity) {
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
    convertActivityToTranslucentAfterL(activity);
  } else {
    convertActivityToTranslucentBeforeL(activity);
  }
}

代码示例来源:origin: aishang5wpj/JuheNews

/**
 * Convert a translucent themed Activity
 * {@link android.R.attr#windowIsTranslucent} back from opaque to
 * translucent following a call to
 * {@link #convertActivityFromTranslucent(android.app.Activity)} .
 * <p>
 * Calling this allows the Activity behind this one to be seen again. Once
 * all such Activities have been redrawn
 * <p>
 * This call has no effect on non-translucent activities or on activities
 * with the {@link android.R.attr#windowIsFloating} attribute.
 */
public static void convertActivityToTranslucent(Activity activity) {
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
    convertActivityToTranslucentAfterL(activity);
  } else {
    convertActivityToTranslucentBeforeL(activity);
  }
}

代码示例来源:origin: undownding/zhihu

/**
 * Convert a translucent themed Activity
 * {@link android.R.attr#windowIsTranslucent} back from opaque to
 * translucent following a call to
 * {@link #convertActivityFromTranslucent(android.app.Activity)} .
 * <p>
 * Calling this allows the Activity behind this one to be seen again. Once
 * all such Activities have been redrawn
 * <p>
 * This call has no effect on non-translucent activities or on activities
 * with the {@link android.R.attr#windowIsFloating} attribute.
 */
public static void convertActivityToTranslucent(Activity activity) {
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
    convertActivityToTranslucentAfterL(activity);
  } else {
    convertActivityToTranslucentBeforeL(activity);
  }
}

相关文章