Width of Wheel calculated on visible elements at time of creation.
Opened this issue · 0 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Create a wheel with multiple elements some with a width of 2-3 char, some
with a width of 12 char
2. Set the wheel up such that on creation only elements of width 2-3 char are
visible
What is the expected output? What do you see instead?
The width of the wheel should match the width of the widest view in the series
of elements. Instead the width matches the widest view visible at the time of
creation of the wheel
What version of the product are you using? On what operating system?
2.1 on Android 2.2.
Please provide any additional information below.
I think I should be able to provide a patch but have not completed it as of
this stage.
I believe the desired functionality can be achieved by changing
calculateLayoutWidth(int widthSize, int mode) to loop through the elements of
viewAdapter and using the maximum value for width from all elements of the
adapter rather than itemsLayout.getMeasuredWidth().
Original issue reported on code.google.com by mike.hi...@gmail.com
on 25 Mar 2011 at 7:11