me.imid.swipebacklayout.lib.Utils类的使用及代码示例

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

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

Utils介绍

[英]Created by Chaojun Wang on 6/9/14.
[中]王朝军于2014年6月9日创作。

代码示例

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

@Override
public void onEdgeTouch(int edgeFlag) {
  Utils.convertActivityToTranslucent(mActivity);
}

代码示例来源: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: liuling07/SimpleNews

@Override
  public void scrollToFinishActivity() {
    Utils.convertActivityToTranslucent(this);
    getSwipeBackLayout().scrollToFinishActivity();
  }
}

代码示例来源: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: kaku2015/WeatherAlarmClock

@Override
public void onEdgeTouch(int edgeFlag) {
  Utils.convertActivityToTranslucent(mActivity);
}

代码示例来源: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: naturs/StatusBarHelper

@Override
public void onEdgeTouch(int edgeFlag) {
  Utils.convertActivityToTranslucent(mActivity);
}

代码示例来源: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: undownding/very-base-activity

@Override
public void onEdgeTouch(int edgeFlag) {
  Utils.convertActivityToTranslucent(mActivity);
}

代码示例来源: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: xiaoyanger0825/CompatStatusBar

@Override
public void onEdgeTouch(int edgeFlag) {
  Utils.convertActivityToTranslucent(mActivity);
}

代码示例来源: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);
  }
}

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

@Override
public void onEdgeTouch(int edgeFlag) {
  Utils.convertActivityToTranslucent(mActivity);
}

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

@Override
public void onEdgeTouch(int edgeFlag) {
  Utils.convertActivityToTranslucent(mActivity);
}

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

@Override
  public void scrollToFinishActivity() {
    Utils.convertActivityToTranslucent(this);
    getSwipeBackLayout().scrollToFinishActivity();
  }
}

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

@Override
  public void scrollToFinishActivity() {
    Utils.convertActivityToTranslucent(this);
    getSwipeBackLayout().scrollToFinishActivity();
  }
}

代码示例来源:origin: babylikebird/YinYueTai

@Override
public void scrollToFinishActivity() {
  Utils.convertActivityToTranslucent(this);
  getSwipeBackLayout().scrollToFinishActivity();
}
protected void setTranslucentStatus(int color) {

代码示例来源:origin: tangqi92/BuildingBlocks

@Override
public void scrollToFinishActivity() {
  Utils.convertActivityToTranslucent(this);
  getSwipeBackLayout().scrollToFinishActivity();
}

代码示例来源:origin: tangqi92/BuildingBlocks

@Override
public void scrollToFinishActivity() {
  Utils.convertActivityToTranslucent(this);
  getSwipeBackLayout().scrollToFinishActivity();
}

代码示例来源:origin: liuyanggithub/SuperMvp

@Override
  public void scrollToFinishActivity() {
    Utils.convertActivityToTranslucent(this);//将当前类转换为半透明效果(精髓所在)
    getSwipeBackLayout().scrollToFinishActivity();//关闭当前activity
  }
}

相关文章