congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FlexboxLayoutManager
Code IndexAdd Tabnine to your IDE (free)

How to use
FlexboxLayoutManager
in
com.google.android.flexbox

Best Java code snippets using com.google.android.flexbox.FlexboxLayoutManager (Showing top 4 results out of 315)

origin: scwang90/SmartRefreshLayout

FlexboxLayoutManager manager = new FlexboxLayoutManager(root.getContext());
manager.setFlexDirection(FlexDirection.ROW);
manager.setFlexWrap(FlexWrap.WRAP);
manager.setAlignItems(AlignItems.STRETCH);
origin: groupon/FeatureAdapter

recyclerView.setLayoutManager(new FlexboxLayoutManager(this));
recyclerView.setAdapter(adapter);
recyclerView.setItemAnimator(new FeatureAdapterDefaultAnimator(featureAnimatorController));
origin: pinguo-zhouwei/AndroidTrainingSimples

@Override
protected RecyclerView.LayoutManager initLayoutManger() {
  FlexboxLayoutManager manager = new FlexboxLayoutManager();
  //设置主轴排列方式
  manager.setFlexDirection(FlexDirection.ROW);
  //设置是否换行
  manager.setFlexWrap(FlexWrap.WRAP);
  manager.setAlignItems(AlignItems.STRETCH);
  return manager;
 //  return super.initLayoutManger();
}
origin: jruesga/rview

private void createLoadersWithValidContext() {
  if (getActivity() == null) {
    return;
  }
  if (mAdapter == null) {
    mAdapter = new GalleryAdapter(this, mImageWidth, mPrevSelection);
    FlexboxLayoutManager layoutManager = new FlexboxLayoutManager(getContext());
    layoutManager.setFlexWrap(FlexWrap.WRAP);
    layoutManager.setFlexDirection(FlexDirection.ROW);
    layoutManager.setAlignItems(AlignItems.STRETCH);
    mBinding.list.setLayoutManager(layoutManager);
    mBinding.list.setAdapter(mAdapter);
    // Fetch or join current loader
    RxLoaderManager loaderManager = RxLoaderManagerCompat.get(this);
    mMediaLoader = loaderManager.create(fetchMedia(), mMediaObserver);
    mHandler.postDelayed(() -> {
      synchronized (mSync) {
        if (getActivity() != null && !mLoaded) {
          mLoading = true;
          updateState();
        }
      }
    }, 750);
  }
}
com.google.android.flexboxFlexboxLayoutManager

Most used methods

  • <init>
  • setAlignItems
  • setFlexDirection
  • setFlexWrap

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Collectors (java.util.stream)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • From CI to AI: The AI layer in your organization
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