34 lines
1006 B
C#
34 lines
1006 B
C#
using UIWidgets;
|
|
|
|
namespace UIWidgetsSamples
|
|
{
|
|
public class ListViewVariableHeight : ListViewCustomHeight<ListViewVariableHeightComponent, ListViewVariableHeightItemDescription>
|
|
{
|
|
protected override void SetData(ListViewVariableHeightComponent component, ListViewVariableHeightItemDescription item)
|
|
{
|
|
component.SetData(item);
|
|
}
|
|
|
|
protected override void HighlightColoring(ListViewVariableHeightComponent component)
|
|
{
|
|
base.HighlightColoring(component);
|
|
component.Name.color = HighlightedColor;
|
|
component.Text.color = HighlightedColor;
|
|
}
|
|
|
|
protected override void SelectColoring(ListViewVariableHeightComponent component)
|
|
{
|
|
base.SelectColoring(component);
|
|
component.Name.color = base.SelectedColor;
|
|
component.Text.color = base.SelectedColor;
|
|
}
|
|
|
|
protected override void DefaultColoring(ListViewVariableHeightComponent component)
|
|
{
|
|
base.DefaultColoring(component);
|
|
component.Name.color = base.DefaultColor;
|
|
component.Text.color = base.DefaultColor;
|
|
}
|
|
}
|
|
}
|