android.support.v4.app.Fragment.onLowMemory()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(97)

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

Fragment.onLowMemory介绍

暂无

代码示例

代码示例来源:origin: guolindev/giffun

@Override
public void onLowMemory() {
  super.onLowMemory();
  // If an activity is re-created, onLowMemory may be called before a manager is ever set.
  // See #329.
  if (requestManager != null) {
    requestManager.onLowMemory();
  }
}

代码示例来源:origin: com.uphyca/android-junit4-robolectric

/**
 * 
 * @see android.support.v4.app.Fragment#onLowMemory()
 */
public void onLowMemory() {
  mFragment.onLowMemory();
}

代码示例来源:origin: com.google.android/support-v4

public void dispatchLowMemory() {
  if (mActive != null) {
    for (int i=0; i<mAdded.size(); i++) {
      Fragment f = mAdded.get(i);
      if (f != null) {
        f.onLowMemory();
      }
    }
  }
}

代码示例来源:origin: kingargyle/adt-leanback-support

void performLowMemory() {
  onLowMemory();
  if (mChildFragmentManager != null) {
    mChildFragmentManager.dispatchLowMemory();
  }
}

代码示例来源:origin: shazam/android-aspects

@Override
public void onLowMemory() {
  super.onLowMemory();
  dispatcher.dispatchOnLowMemory(this);
}

代码示例来源:origin: Attriumph/Place-Search-Service

@Override
  public void onLowMemory() {
    super.onLowMemory();
    mMapView.onLowMemory();
  }
}

代码示例来源:origin: com.uphyca/android-junit4-robolectric

public void callFragmentOnLowMemory() {
  assertFragmentManager();
  for (Fragment each : mfragmentManager.getFragments()
                     .values()) {
    each.onLowMemory();
  }
}

代码示例来源:origin: wiglenet/wigle-wifi-wardriving

@Override
public void onLowMemory() {
  MainActivity.info( "MAP: onLowMemory" );
  super.onLowMemory();
  mapView.onLowMemory();
}

相关文章

微信公众号

最新文章

更多

Fragment类方法