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

android:layout_weight in the ImageLayout parent View height is avoiding the ImageLayout content from being centered #5

Open
joao-amaro-bold opened this issue Apr 8, 2015 · 0 comments

Comments

@joao-amaro-bold
Copy link

I found that this library has some issues in what concerns the position of the component when this is inside a ViewPager, for example.

Applying a layout_weight value to the ViewPager that contains the component (the component is the root on the fragment layout and the Fragment is included on a FragmentStatePagerAdapter) could lead to unkonwn issues. I experienced those issues when the gravity of the component is set to "center" and the fitmode is set to "auto".

I had to apply a layout_marginLeft value to the ViewPager, because the component wasn't centering on the ViewPager, as we would expect.
I played with autofit and gravity values but to no use.

This would happen and work correctly if the ViewPager had a height set to match_parent.

It would be great if this issue could be resolved soon.

Best regards.

João Amaro

@joao-amaro-bold joao-amaro-bold changed the title android:layout_weight in the ImageLayout parent View height is avoiding the ImageLayout content be centered android:layout_weight in the ImageLayout parent View height is avoiding the ImageLayout content from being centered Apr 8, 2015
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