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

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

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

Fragment.getLayoutInflater介绍

暂无

代码示例

代码示例来源:origin: Flipboard/bottomsheet

@Override
public LayoutInflater getLayoutInflater(Bundle savedInstanceState) {
  return getDelegate().getLayoutInflater(savedInstanceState, super.getLayoutInflater(savedInstanceState));
}

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

/**
 * @param savedInstanceState
 * @return
 * @see android.support.v4.app.Fragment#getLayoutInflater(android.os.Bundle)
 */
public LayoutInflater getLayoutInflater(Bundle savedInstanceState) {
  return mFragment.getLayoutInflater(savedInstanceState);
}

代码示例来源:origin: AppLozic/Applozic-Android-SDK

@Override
public LayoutInflater getLayoutInflater(Bundle savedInstanceState) {
  return super.getLayoutInflater(savedInstanceState);    //To change body of overridden methods use File | Settings | File Templates.
}

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

/** @hide */
@Override
public LayoutInflater getLayoutInflater(Bundle savedInstanceState) {
  if (!mShowsDialog) {
    return super.getLayoutInflater(savedInstanceState);
  }
  mDialog = onCreateDialog(savedInstanceState);
  mDestroyed = false;
  switch (mStyle) {
    case STYLE_NO_INPUT:
      mDialog.getWindow().addFlags(
          WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |
          WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);
      // fall through...
    case STYLE_NO_FRAME:
    case STYLE_NO_TITLE:
      mDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
  }
  return (LayoutInflater)mDialog.getContext().getSystemService(
      Context.LAYOUT_INFLATER_SERVICE);
}

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

/** @hide */
@Override
public LayoutInflater getLayoutInflater(Bundle savedInstanceState) {
  if (!mShowsDialog) {
    return super.getLayoutInflater(savedInstanceState);
  }
  mDialog = onCreateDialog(savedInstanceState);
  switch (mStyle) {
    case STYLE_NO_INPUT:
      mDialog.getWindow().addFlags(
          WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |
          WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);
      // fall through...
    case STYLE_NO_FRAME:
    case STYLE_NO_TITLE:
      mDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
  }
  if (mDialog != null) {
    return (LayoutInflater) mDialog.getContext().getSystemService(
        Context.LAYOUT_INFLATER_SERVICE);
  }
  return (LayoutInflater) mActivity.getSystemService(
      Context.LAYOUT_INFLATER_SERVICE);
}

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

f.mView = f.onCreateView(f.getLayoutInflater(f.mSavedFragmentState),
    null, f.mSavedFragmentState);
if (f.mView != null) {
  f.mView = f.onCreateView(f.getLayoutInflater(f.mSavedFragmentState),
      container, f.mSavedFragmentState);
  if (f.mView != null) {

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

f.mView = f.performCreateView(f.getLayoutInflater(
    f.mSavedFragmentState), null, f.mSavedFragmentState);
if (f.mView != null) {
  f.mView = f.performCreateView(f.getLayoutInflater(
      f.mSavedFragmentState), container, f.mSavedFragmentState);
  if (f.mView != null) {

相关文章

微信公众号

最新文章

更多

Fragment类方法