Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getFlexLines() and getFlexLinesInternal() return empty list #503

Open
1 task done
madhurawanniarachchi opened this issue Jun 14, 2019 · 0 comments
Open
1 task done

Comments

@madhurawanniarachchi
Copy link

madhurawanniarachchi commented Jun 14, 2019

Issues and steps to reproduce

I have tried to get a column breaking index. but every time getFlexLines() and getFlexLinesInternal() give empty list return empty list.

Expected behavior

Please describe what you expected would happen.

Version of the flexbox library

implementation 'com.google.android:flexbox:1.0.0

Link to code

FlexboxLayoutManager layoutManager = new FlexboxLayoutManager(mcontext);
layoutManager.setFlexDirection(FlexDirection.COLUMN);
layoutManager.setJustifyContent(JustifyContent.FLEX_START);
layoutManager.setFlexWrap(FlexWrap.WRAP);
myViewHolder.rvItem.setLayoutManager(layoutManager);
itemAdapter = new ItemAdapter(mcontext,mData.get(i));
myViewHolder.rvItem.setAdapter(itemAdapter);

    int a = layoutManager.getAlignContent();
    int b = layoutManager.getAlignItems();
    int c = layoutManager.getJustifyContent();
    int d = layoutManager.getMaxLine();
    int e = layoutManager.getLargestMainSize();
    //int f = layoutManager.getFlexItemCount();
    int g = layoutManager.getSumOfCrossSize();
    int h = layoutManager.getFlexWrap();
    int j = layoutManager.getChildCount();
    int k = layoutManager.getBaseline();
    int l = layoutManager.getItemCount();
    List<FlexLine>  flexLines = layoutManager.getFlexLines();
    List<FlexLine>  flexLines1 = layoutManager.getFlexLinesInternal();
    int m = layoutManager.getHeight();

    System.out.println("l_index "+ a+" "+ b+" "+c +" "+d +" "+e+" "+g+" "+h+" "+j+" "+k+" "+l+" "+flexLines+" " +flexLines1+ " "+ " " + " "+m +" ");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant