Previously, HeightSpecifications of Picker, DatePicker, TimePicker are
MatchParent.
So the Pickers' SizeHeights are calculated based on their parent's
SizeHeight.
This causes the recursive size calculation problem if Picker's parent
has WrapContent HeightSpecification. (e.g. Dialog)
Now, the Pickers' SizeHeights are set in DefaultThemeCommon as follows.
Picker's SizeHeight is set in DefaultThemeCommon.
DatePicker's Pickers SizeHeights are set in DefaultThemeCommon.
TimePicker's Pickers SizeHeights are set in DefaultThemeCommon.
Therefore, Picker does not need to have MatchParent HeightSpecification.
private void Initialize()
{
- HeightSpecification = LayoutParamPolicies.MatchParent;
-
Layout = new LinearLayout()
{
LinearOrientation = LinearLayout.Orientation.Horizontal,
private void Initialize()
{
- HeightSpecification = LayoutParamPolicies.MatchParent;
-
//Picker Using scroller internally. actually it is a kind of scroller which has infinity loop,
//and item center align features.
pickerScroller = new PickerScroller()
Justification = "The CellPadding will be dispose when the time picker disposed")]
private void Initialize()
{
- HeightSpecification = LayoutParamPolicies.MatchParent;
-
Layout = new LinearLayout()
{
LinearOrientation = LinearLayout.Orientation.Horizontal,