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

config.align = Align.BOTTOM not working #10

Open
shaz-tech opened this issue Sep 7, 2018 · 6 comments
Open

config.align = Align.BOTTOM not working #10

shaz-tech opened this issue Sep 7, 2018 · 6 comments

Comments

@shaz-tech
Copy link

config.align = Align.BOTTOM is not working for vertical layout. Please fix it.

  • Thanks
@shaz-tech
Copy link
Author

I have done this. You you want we can combine this.

@Hebin320
Copy link

How to fix it?

@shaz-tech
Copy link
Author

You can create a separate method for bottom stack and add extra margin using device metrics and stacks size for bottom and reduce the margin from top according numberOfStacks * spaceOfStack and others same as TOP.
Like this;

int top = (int) (left(i) - (1 - scale) * view.getMeasuredHeight() / 2) - (mSpace * maxStackCount);
int right = view.getMeasuredWidth() + left;
int bottom = (view.getMeasuredHeight() + (2 * metrics.heightPixels)) + (mSpace * maxStackCount);

@Hebin320
Copy link

Can you send it to me by email?
My email is hxb1083019222@gmail.com
Thanks.

@HirayClay
Copy link
Owner

HirayClay commented Sep 19, 2018

oh, man! I am really sorry for this. The first time i want to implement this, i just know little about LayoutManager and RV,so i missed so much details and didn't know the recycling is so hard for StackLayoutManager. I am so sorry ,this is just a toy for fun. Back to the point, BOTTOM is alike to LEFT andTOP ,you just need to do some change according to other direction. I am so sorry , this is my first open project ,i don't know this will be paid attention to ,actually a little flattered. Some issues i know are some kind of out of my control .

@Arun1811
Copy link

@shaz-tech Is there any updated code for config.align = Align.BOTTOM ?

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

4 participants