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

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • 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