You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: