Tabnine Logo
PreferenceFragment.onCreateView
Code IndexAdd Tabnine to your IDE (free)

How to use
onCreateView
method
in
android.preference.PreferenceFragment

Best Java code snippets using android.preference.PreferenceFragment.onCreateView (Showing top 20 results out of 315)

origin: wangdan/AisenWeiBo

  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View rootView = super.onCreateView(inflater, container, savedInstanceState);
    
    ListView listView = (ListView) rootView.findViewById(android.R.id.list);
//        listView.setClipToPadding(false);

    return rootView;
  }
  
origin: jclehner/rxdroid

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup root, Bundle paramBundle)
{
  if(mIsFirstLaunch)
  {
    final View v = inflater.inflate(R.layout.activity_dose_time_settings, root, false);
    v.findViewById(R.id.btn_save).setOnClickListener(this);
    return v;
  }
  return super.onCreateView(inflater, root, paramBundle);
}
origin: rkkr/simple-keyboard

@Override
public View onCreateView(final LayoutInflater inflater, final ViewGroup container,
    final Bundle savedInstanceState) {
  final View view = super.onCreateView(inflater, container, savedInstanceState);
  // For correct display in RTL locales, we need to set the layout direction of the
  // fragment's top view.
  //ViewCompat.setLayoutDirection(view, ViewCompat.LAYOUT_DIRECTION_LOCALE);
  view.setLayoutDirection(View.LAYOUT_DIRECTION_LOCALE);
  return view;
}
origin: bigsinger/fakegps

@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
  View view = super.onCreateView(inflater, container, savedInstanceState);
  view.setBackgroundColor(getResources().getColor(R.color.bg_light_gray));
  return view;
}
origin: owntracks/android

@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
  Timber.v("trace");
  //if(viewModel == null) { fragmentComponent().inject(this);}
  setContentView(savedInstanceState);
  return super.onCreateView(inflater, container, savedInstanceState);
}
origin: thuryn/your-local-weather

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  View view = super.onCreateView(inflater, container, savedInstanceState);
  int horizontalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int verticalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int topMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 56, getResources().getDisplayMetrics());
  if (view != null) {
    view.setPadding(horizontalMargin, topMargin, horizontalMargin, verticalMargin);
  }
  return view;
}
origin: thuryn/your-local-weather

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  View view = super.onCreateView(inflater, container, savedInstanceState);
  int horizontalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int verticalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int topMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 56, getResources().getDisplayMetrics());
  if (view != null) {
    view.setPadding(horizontalMargin, topMargin, horizontalMargin, verticalMargin);
  }
  return view;
}
origin: qqq3/good-weather

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  View view = super.onCreateView(inflater, container, savedInstanceState);
  int horizontalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int verticalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int topMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 56, getResources().getDisplayMetrics());
  if (view != null) {
    view.setPadding(horizontalMargin, topMargin, horizontalMargin, verticalMargin);
  }
  return view;
}
origin: thuryn/your-local-weather

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  View view = super.onCreateView(inflater, container, savedInstanceState);
  int horizontalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int verticalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int topMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 56, getResources().getDisplayMetrics());
  if (view != null) {
    view.setPadding(horizontalMargin, topMargin, horizontalMargin, verticalMargin);
  }
  return view;
}
origin: thuryn/your-local-weather

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  View view = super.onCreateView(inflater, container, savedInstanceState);
  int horizontalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int verticalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int topMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 56, getResources().getDisplayMetrics());
  if (view != null) {
    view.setPadding(horizontalMargin, topMargin, horizontalMargin, verticalMargin);
  }
  return view;
}
origin: qqq3/good-weather

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  View view = super.onCreateView(inflater, container, savedInstanceState);
  int horizontalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int verticalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int topMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 56, getResources().getDisplayMetrics());
  if (view != null) {
    view.setPadding(horizontalMargin, topMargin, horizontalMargin, verticalMargin);
  }
  return view;
}
origin: thuryn/your-local-weather

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  View view = super.onCreateView(inflater, container, savedInstanceState);
  int horizontalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int verticalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int topMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 56, getResources().getDisplayMetrics());
  if (view != null) {
    view.setPadding(horizontalMargin, topMargin, horizontalMargin, verticalMargin);
  }
  return view;
}
origin: thuryn/your-local-weather

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  View view = super.onCreateView(inflater, container, savedInstanceState);
  int horizontalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int verticalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int topMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 56, getResources().getDisplayMetrics());
  if (view != null) {
    view.setPadding(horizontalMargin, topMargin, horizontalMargin, verticalMargin);
  }
  return view;
}
origin: qqq3/good-weather

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  View view = super.onCreateView(inflater, container, savedInstanceState);
  int horizontalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int verticalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int topMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 56, getResources().getDisplayMetrics());
  if (view != null) {
    view.setPadding(horizontalMargin, topMargin, horizontalMargin, verticalMargin);
  }
  return view;
}
origin: thuryn/your-local-weather

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  View view = super.onCreateView(inflater, container, savedInstanceState);
  int horizontalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int verticalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int topMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 56, getResources().getDisplayMetrics());
  if (view != null) {
    view.setPadding(horizontalMargin, topMargin, horizontalMargin, verticalMargin);
  }
  return view;
}
origin: thuryn/your-local-weather

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  View view = super.onCreateView(inflater, container, savedInstanceState);
  int horizontalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int verticalMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, getResources().getDisplayMetrics());
  int topMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 56, getResources().getDisplayMetrics());
  if (view != null) {
    view.setPadding(horizontalMargin, topMargin, horizontalMargin, verticalMargin);
  }
  return view;
}
origin: WowzaMediaSystems/gocoder-sdk-samples-android

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  View view = super.onCreateView(inflater, container, savedInstanceState);
  if (view != null)
    view.setBackgroundColor(ContextCompat.getColor(getActivity(), android.R.color.background_dark));
  View rootView = getActivity().getWindow().getDecorView().findViewById(android.R.id.content);
  if (rootView != null) {
    mPriorUIIVisibilityFlags = rootView.getSystemUiVisibility();
    rootView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN);
  }
  return view;
}
origin: sh0/kotoba-android

@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle state_saved)
{
  // Search disable
  MainActivity activity = (MainActivity) getActivity();
  if (activity != null)
    activity.SearchDisable();
  // Superclass
  return super.onCreateView(inflater, container, state_saved);
}
origin: corcoran/Hangar

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  LinearLayout v = (LinearLayout) super.onCreateView(inflater, container, savedInstanceState);
origin: derry/delion

@Override
public View onCreateView(
    LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  // Read which category we should be showing.
  String category = "";
  if (getArguments() != null) {
    category = getArguments().getString(EXTRA_CATEGORY, "");
    mCategory = SiteSettingsCategory.fromString(category);
  }
  if (mCategory == null) {
    mCategory = SiteSettingsCategory.fromString(SiteSettingsCategory.CATEGORY_ALL_SITES);
  }
  if (!mCategory.showStorageSites()) {
    return super.onCreateView(inflater, container, savedInstanceState);
  } else {
    return inflater.inflate(R.layout.storage_preferences, container, false);
  }
}
android.preferencePreferenceFragmentonCreateView

Popular methods of PreferenceFragment

  • onCreate
  • onResume
  • onPause
  • onDestroy
  • onOptionsItemSelected
  • onActivityCreated
  • onStart
  • onAttach
  • onPreferenceTreeClick
  • onStop
  • onActivityResult
  • onViewCreated
  • onActivityResult,
  • onViewCreated,
  • onDestroyView,
  • onDetach,
  • getActivity,
  • onSaveInstanceState,
  • addPreferencesFromResource,
  • getPreferenceScreen,
  • onCreateOptionsMenu

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now