[EditorBrowsable(EditorBrowsableState.Never)]
public DefaultGridItem() : base()
{
- Initialize();
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public DefaultGridItem(string style) : base(style)
{
- Initialize();
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public DefaultGridItem(DefaultGridItemStyle itemStyle) : base(itemStyle)
{
- Initialize();
}
/// <summary>
}
- /// <inheritdoc/>
+ /// <summary>
+ /// Initializes AT-SPI object.
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- private void Initialize()
+ public override void OnInitialize()
{
+ base.OnInitialize();
Layout = new RelativeLayout();
layoutChanged = true;
LayoutDirectionChanged += OnLayoutDirectionChanged;
[EditorBrowsable(EditorBrowsableState.Never)]
public DefaultLinearItem() : base()
{
- Initialize();
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public DefaultLinearItem(string style) : base(style)
{
- Initialize();
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public DefaultLinearItem(DefaultLinearItemStyle itemStyle) : base(itemStyle)
{
- Initialize();
}
/// <summary>
if (itemExtra != null)
itemExtra.ApplyStyle(defaultStyle.Extra);
if (itemSeperator != null)
+ {
itemSeperator.ApplyStyle(defaultStyle.Seperator);
+ //FIXME : currently margin is not applied by ApplyStyle automatically.
+ itemSeperator.Margin = defaultStyle.Seperator.Margin;
+ }
+ //FIXME : currently padding is not applied by ApplyStyle automatically.
+ Extents padding = defaultStyle.Padding;
+ Padding = padding;
}
}
[EditorBrowsable(EditorBrowsableState.Never)]
protected override void MeasureChild()
{
- var pad = Padding;
- if (itemLabel)
- {
- var margin = itemLabel.Margin;
- itemLabel.SizeWidth = SizeWidth - pad.Start - pad.End - margin.Start - margin.End;
- }
-
- if (itemSubLabel)
- {
- var margin = itemSubLabel.Margin;
- itemSubLabel.SizeWidth = SizeWidth - pad.Start - pad.End - margin.Start - margin.End;
- }
+ //Do Measure in here if necessary.
}
/// <inheritdoc/>
if (itemSubLabel != null)
{
- if (itemIcon)
+ if (itemIcon != null)
{
RelativeLayout.SetLeftTarget(itemSubLabel, itemIcon);
RelativeLayout.SetLeftRelativeOffset(itemSubLabel, 1.0F);
RelativeLayout.SetLeftTarget(itemSubLabel, this);
RelativeLayout.SetLeftRelativeOffset(itemSubLabel, 0.0F);
}
- if (itemExtra)
+ if (itemExtra != null)
{
RelativeLayout.SetRightTarget(itemSubLabel, itemExtra);
RelativeLayout.SetRightRelativeOffset(itemSubLabel, 0.0F);
RelativeLayout.SetFillHorizontal(itemSubLabel, true);
}
- if (itemIcon)
+ if (itemIcon != null)
{
RelativeLayout.SetLeftTarget(itemLabel, itemIcon);
RelativeLayout.SetLeftRelativeOffset(itemLabel, 1.0F);
RelativeLayout.SetLeftTarget(itemLabel, this);
RelativeLayout.SetLeftRelativeOffset(itemLabel, 0.0F);
}
- if (itemExtra)
+ if (itemExtra != null)
{
RelativeLayout.SetRightTarget(itemLabel, itemExtra);
RelativeLayout.SetRightRelativeOffset(itemLabel, 0.0F);
RelativeLayout.SetTopTarget(itemLabel, this);
RelativeLayout.SetTopRelativeOffset(itemLabel, 0.0F);
- if (itemSubLabel)
+ if (itemSubLabel != null)
{
RelativeLayout.SetBottomTarget(itemLabel, itemSubLabel);
RelativeLayout.SetBottomRelativeOffset(itemLabel, 0.0F);
return new DefaultLinearItemStyle();
}
- private void Initialize()
+ /// <summary>
+ /// Initializes AT-SPI object.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override void OnInitialize()
{
base.OnInitialize();
Layout = new RelativeLayout();
[EditorBrowsable(EditorBrowsableState.Never)]
public DefaultTitleItem() : base()
{
- Initialize();
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public DefaultTitleItem(string style) : base(style)
{
- Initialize();
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public DefaultTitleItem(DefaultTitleItemStyle itemStyle) : base(itemStyle)
{
- Initialize();
}
/// <summary>
if (itemIcon != null)
itemIcon.ApplyStyle(defaultStyle.Icon);
if (itemSeperator != null)
+ {
itemSeperator.ApplyStyle(defaultStyle.Seperator);
+ //FIXME : currently margin is not applied by ApplyStyle automatically.
+ itemSeperator.Margin = defaultStyle.Seperator.Margin;
+ }
+ //FIXME : currently padding is not applied by ApplyStyle automatically.
+ Extents padding = defaultStyle.Padding;
+ Padding = padding;
}
}
[EditorBrowsable(EditorBrowsableState.Never)]
protected override void MeasureChild()
{
- if (itemLabel)
- {
- var pad = Padding;
- var margin = itemLabel.Margin;
- itemLabel.SizeWidth = SizeWidth - pad.Start - pad.End - margin.Start - margin.End;
- }
+ // Do measure in here if necessary.
}
/// <inheritdoc/>
return new DefaultTitleItemStyle();
}
- private void Initialize()
+ /// <summary>
+ /// Initializes AT-SPI object.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override void OnInitialize()
{
base.OnInitialize();
Layout = new RelativeLayout();
}
/// <summary>
- /// It is hijack by using protected, style copy problem when class inherited from Button.
+ /// Initializes AT-SPI object.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- private void Initialize()
+ public override void OnInitialize()
{
+ base.OnInitialize();
//FIXME!
IsCreateByXaml = true;
Layout = new AbsoluteLayout();
[EditorBrowsable(EditorBrowsableState.Never)]
public RecyclerViewItem() : base()
{
- Initialize();
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public RecyclerViewItem(string style) : base(style)
{
- Initialize();
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public RecyclerViewItem(RecyclerViewItemStyle itemStyle) : base(itemStyle)
{
- Initialize();
}
/// <summary>
theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultLinearItem", new DefaultLinearItemStyle()
{
- SizeHeight = 130,
- Padding = new Extents(20, 20, 5, 5),
+ SizeHeight = 108,
+ Padding = new Extents(64, 64, 18, 17),
BackgroundColor = new Selector<Color>()
{
Normal = new Color(1, 1, 1, 1),
Pressed = new Color(0.85f, 0.85f, 0.85f, 1),
Disabled = new Color(0.70f, 0.70f, 0.70f, 1),
- Selected = new Color(0.701f, 0.898f, 0.937f, 1),
+ Selected = new Color(0.85f, 0.85f, 0.85f, 1),
},
Label = new TextLabelStyle()
{
- PointSize = 10,
+ PixelSize = 32,
Ellipsis = true,
+ FontFamily = "BreezeSans", //FXIME Font Weight is Light
+ TextColor = new Color("#001447FF"),
},
SubLabel = new TextLabelStyle()
{
- PointSize = 6,
+ PixelSize = 28,
Ellipsis = true,
+ FontFamily = "BreezeSans",
+ TextColor = new Color("#001447FF"),
},
Icon = new ViewStyle()
{
- Margin = new Extents(0, 20, 0, 0)
+ Margin = new Extents(0, 32, 0, 0)
},
Extra = new ViewStyle()
{
- Margin = new Extents(20, 0, 0, 0)
+ Margin = new Extents(32, 0, 0, 0)
},
Seperator = new ViewStyle()
{
- Margin = new Extents(5, 5, 0, 0),
- BackgroundColor = new Color(0.78f, 0.78f, 0.78f, 1),
+ SizeHeight = 1,
+ Margin = new Extents(64, 64, 0, 0),
+ BackgroundColor = new Color("#C3CAD2FF"),
},
});
theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultGridItem", new DefaultGridItemStyle()
Padding = new Extents(5, 5, 5, 5),
Caption = new TextLabelStyle()
{
- PointSize = 9,
- Ellipsis = true,
+ SizeHeight = 60,
+ PixelSize = 24,
+ LineWrapMode = LineWrapMode.Character,
},
Badge = new ViewStyle()
{
theme.AddStyleWithoutClone("Tizen.NUI.Components.DefaultTitleItem", new DefaultTitleItemStyle()
{
- SizeHeight = 90,
- Padding = new Extents(10, 10, 5, 5),
+ SizeHeight = 60,
+ Padding = new Extents(64, 64, 12, 12),
BackgroundColor = new Selector<Color>()
{
- Normal = new Color(0.78f, 0.78f, 0.78f, 1),
+ Normal = new Color("#EEEEF1FF"),
},
Label = new TextLabelStyle()
{
- PointSize = 10,
+ PixelSize = 28,
Ellipsis = true,
+ TextColor = new Color("#001447FF"),
},
Icon = new ViewStyle()
{
- Margin = new Extents(10, 0, 0, 0)
+ Margin = new Extents(40, 0, 0, 0)
},
Seperator = new ViewStyle()
{
Margin = new Extents(0, 0, 0, 0),
- BackgroundColor = new Color(0.85f, 0.85f, 0.85f, 1),
+ BackgroundColor = new Color(0, 0, 0, 0),
},
});