}
ContentView.RaiseToTop();
- UpdateButton(buttonCount);
-
- if (buttonList != null && popupAttributes.ButtonAttributes != null && popupAttributes.ButtonAttributes.Size != null)
+ if (popupAttributes.ButtonAttributes != null && popupAttributes.ButtonAttributes.Size != null)
{
- buttonH = (int)popupAttributes.ButtonAttributes.Size.Height;
+ UpdateButton(buttonCount);
+
+ if (buttonList != null)
+ {
+ buttonH = (int)popupAttributes.ButtonAttributes.Size.Height;
+ }
}
+
ContentView.Size2D = new Size2D(Size2D.Width - titleX * 2, Size2D.Height - titleY - titleH - buttonH);
ContentView.Position2D = new Position2D(titleX, titleY + titleH);
int textPaddingLeft = selectButtonAttributes.TextAttributes.PaddingLeft;
int textPaddingRight = selectButtonAttributes.TextAttributes.PaddingRight;
-
+ int pos = 0;
if (LayoutDirection == ViewLayoutDirectionType.RTL)
{
selectButtonAttributes.TextAttributes.HorizontalAlignment = HorizontalAlignment.End;
selectButtonAttributes.TextAttributes.Position.X = textPaddingRight;
- checkShadowImage.Position2D.X = checkBackgroundImage.Position2D.X = checkImage.Position2D.X = (int)(selectButtonAttributes.TextAttributes.Size.Width) + textPaddingLeft + textPaddingRight + IconPadding.End;
+ pos = (int)(selectButtonAttributes.TextAttributes.Size.Width) + textPaddingLeft + textPaddingRight;
+ if (IconPadding != null)
+ {
+ pos += IconPadding.End;
+ }
}
else if (LayoutDirection == ViewLayoutDirectionType.LTR)
{
selectButtonAttributes.TextAttributes.HorizontalAlignment = HorizontalAlignment.Begin;
- selectButtonAttributes.TextAttributes.Position.X = IconPadding.Start + iconWidth + IconPadding.End + textPaddingLeft;
- checkShadowImage.Position2D.X = checkBackgroundImage.Position2D.X = checkImage.Position2D.X = IconPadding.Start;
- }
+ selectButtonAttributes.TextAttributes.Position.X = iconWidth + textPaddingLeft;
+ if (IconPadding != null)
+ {
+ selectButtonAttributes.TextAttributes.Position.X += (IconPadding.Start + IconPadding.End);
+ pos = IconPadding.Start;
+ }
+ }
+
+ checkShadowImage.Position2D.X = checkBackgroundImage.Position2D.X = checkImage.Position2D.X = pos;
}
{
for (int i = 0; i < totalNum; i++)
{
- preW = itemList[i].TextItem.NaturalSize2D.Width;
+ preW = (itemList[i].TextItem.NaturalSize2D != null ? itemList[i].TextItem.NaturalSize2D.Width : 0);
itemList[i].Position2D.X = preX;
itemList[i].Size2D.Width = preW;
preX = itemList[i].Position2D.X + preW + itemSpace;
int _positionY = 0;
_textAreaWidth = _textAreaWidth > maxTextAreaWidth ? maxTextAreaWidth : _textAreaWidth;
- if (LayoutDirection == ViewLayoutDirectionType.LTR)
+ if (textLabels != null)
{
- for (int i = 0; i < textLabels?.Length; i++)
+ if (LayoutDirection == ViewLayoutDirectionType.LTR)
{
- textLabels[i].Position2D = new Position2D(_textPaddingLeft, _textPaddingTop + _positionY);
- textLabels[i].Size2D = new Size2D(_textAreaWidth, _textLineHeight);
- _positionY += _textLineHeight + _textLineSpace;
+ for (int i = 0; i < textLabels?.Length; i++)
+ {
+ textLabels[i].Position2D = new Position2D(_textPaddingLeft, _textPaddingTop + _positionY);
+ textLabels[i].Size2D = new Size2D(_textAreaWidth, _textLineHeight);
+ _positionY += _textLineHeight + _textLineSpace;
+ }
}
- }
- else
- {
- for (int i = 0; i < textLabels?.Length; i++)
+ else
{
- textLabels[i].ParentOrigin = Tizen.NUI.ParentOrigin.TopRight;
- textLabels[i].PivotPoint = Tizen.NUI.PivotPoint.TopRight;
- textLabels[i].PositionUsesPivotPoint = true;
- textLabels[i].Position2D = new Position2D(-_textPaddingLeft, _textPaddingTop + _positionY);
- textLabels[i].Size2D = new Size2D(_textAreaWidth, _textLineHeight);
- _positionY += _textLineHeight + _textLineSpace;
+ for (int i = 0; i < textLabels?.Length; i++)
+ {
+ textLabels[i].ParentOrigin = Tizen.NUI.ParentOrigin.TopRight;
+ textLabels[i].PivotPoint = Tizen.NUI.PivotPoint.TopRight;
+ textLabels[i].PositionUsesPivotPoint = true;
+ textLabels[i].Position2D = new Position2D(-_textPaddingLeft, _textPaddingTop + _positionY);
+ textLabels[i].Size2D = new Size2D(_textAreaWidth, _textLineHeight);
+ _positionY += _textLineHeight + _textLineSpace;
+ }
}
}
}
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
-
- disposed = true;
+ base.Dispose(type);
}
public bool Empty()
for (uint layerIndex = 0; layerIndex < numberOfLayers; layerIndex++)
{
Layer layer = _window.GetLayer(layerIndex);
- for (uint i = 0; i < layer.ChildCount; i++)
+ if (layer)
{
- View view = layer.GetChildAt(i);
- FindRootLayouts(view);
+ for (uint i = 0; i < layer.ChildCount; i++)
+ {
+ View view = layer.GetChildAt(i);
+ FindRootLayouts(view);
+ }
}
}
Tuple<string, int, int> item = new Tuple<string, int, int>(key, startFrame, endFrame );
- currentStates.contentInfo.Add(item);
+ currentStates.contentInfo?.Add(item);
}
}
}
TransitionList transitionListMatchingCondition;
if (targetTransitionList.TryGetValue(condition, out transitionListMatchingCondition))
{
- for (var index=0; index < transitionListMatchingCondition?.Count; index++ )
+ if (transitionListMatchingCondition != null)
{
- if (transitionListMatchingCondition[index].AnimatableProperty == transition.AnimatableProperty)
+ for (var index = 0; index < transitionListMatchingCondition.Count; index++ )
{
- if (explicitlySet)
+ if (transitionListMatchingCondition[index].AnimatableProperty == transition.AnimatableProperty)
{
- transitionListMatchingCondition[index] = transition;
- replaced = true;
- continue;
+ if (explicitlySet)
+ {
+ transitionListMatchingCondition[index] = transition;
+ replaced = true;
+ continue;
+ }
}
}
}
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
- disposed = true;
+ base.Dispose(type);
}
}
}
\ No newline at end of file
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
-
- disposed = true;
+ base.Dispose(type);
}
}
}