Class DefaultLinearItem
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
DefaultLinearItem is one kind of common component, a DefaultLinearItem clearly describes what action will occur when the user selects it. DefaultLinearItem may contain text or an icon.
public class DefaultLinearItem : RecyclerViewItem, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
-
objectDefaultLinearItem
- Implements
-
System.IDisposable
Constructors
View SourceDefaultLinearItem()
Creates a new instance of DefaultLinearItem.
Declaration
public DefaultLinearItem()
DefaultLinearItem(string)
Creates a new instance of a DefaultLinearItem with style.
Declaration
public DefaultLinearItem(string style)
Parameters
Type | Name | Description |
---|---|---|
string | style | Create DefaultLinearItem by style defined in UX. |
DefaultLinearItem(DefaultLinearItemStyle)
Creates a new instance of a DefaultLinearItem with style.
Declaration
public DefaultLinearItem(DefaultLinearItemStyle itemStyle)
Parameters
Type | Name | Description |
---|---|---|
DefaultLinearItemStyle | itemStyle | Create DefaultLinearItem by style customized by user. |
Fields
View SourceExtraProperty
ExtraProperty
Declaration
public static readonly BindableProperty ExtraProperty
Field Value
Type | Description |
---|---|
BindableProperty |
IconProperty
IconProperty
Declaration
public static readonly BindableProperty IconProperty
Field Value
Type | Description |
---|---|
BindableProperty |
SubTextProperty
SubTextProperty
Declaration
public static readonly BindableProperty SubTextProperty
Field Value
Type | Description |
---|---|
BindableProperty |
TextProperty
TextProperty
Declaration
public static readonly BindableProperty TextProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
View SourceExtra
Extra icon part of DefaultLinearItem. it will place next of label.
Declaration
public View Extra { get; set; }
Property Value
Type | Description |
---|---|
View |
Icon
Icon part of DefaultLinearItem.
Declaration
public View Icon { get; set; }
Property Value
Type | Description |
---|---|
View |
Label
DefaultLinearItem's text part of DefaultLinearItem
Declaration
public TextLabel Label { get; }
Property Value
Type | Description |
---|---|
TextLabel |
Seperator
Seperator divider of DefaultLinearItem. it will place at the end of item.
Declaration
public View Seperator { get; }
Property Value
Type | Description |
---|---|
View |
SubLabel
DefaultLinearItem's secondary text part of DefaultLinearItem
Declaration
public TextLabel SubLabel { get; }
Property Value
Type | Description |
---|---|
TextLabel |
SubText
The text of DefaultLinearItem.
Declaration
public string SubText { get; set; }
Property Value
Type | Description |
---|---|
string |
Text
The text of DefaultLinearItem.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceAccessibilityGetName()
Gets accessibility name.
Declaration
protected override string AccessibilityGetName()
Returns
Type | Description |
---|---|
string |
Overrides
View SourceApplyStyle(ViewStyle)
Apply style to DefaultLinearItemStyle.
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type | Name | Description |
---|---|---|
ViewStyle | viewStyle | The style to apply. |
Overrides
View SourceCreateIcon(ViewStyle)
Creates Item's icon part.
Declaration
protected virtual ImageView CreateIcon(ViewStyle style)
Parameters
Type | Name | Description |
---|---|---|
ViewStyle | style |
Returns
Type | Description |
---|---|
ImageView |
CreateLabel(TextLabelStyle)
Creates Item's text part.
Declaration
protected virtual TextLabel CreateLabel(TextLabelStyle style)
Parameters
Type | Name | Description |
---|---|---|
TextLabelStyle | style |
Returns
Type | Description |
---|---|
TextLabel |
CreateViewStyle()
Get DefaultLinearItem style.
Declaration
protected override ViewStyle CreateViewStyle()
Returns
Type | Description |
---|---|
ViewStyle | The default DefaultLinearItem style. |
Overrides
View SourceDispose(DisposeTypes)
Dispose Item and all children on it.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | Dispose type. |
Overrides
View SourceLayoutChild()
Declaration
protected override void LayoutChild()
Overrides
View SourceMeasureChild()
Declaration
protected override void MeasureChild()
Overrides
View SourceOnInitialize()
Initializes AT-SPI object.
Declaration
public override void OnInitialize()
Overrides
View SourceOnRelayout(Vector2, RelayoutContainer)
Declaration
public override void OnRelayout(Vector2 size, RelayoutContainer container)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | size | |
RelayoutContainer | container |