AddText(primaryText, subText, secondaryText, secondarySubText);
}
+ public override void OnChangeSelected(bool selected)
+ {
+ if (selected)
+ {
+ base.BackgroundColor = BackgroundColors.Selected;
+
+ primary.TextColor = TextColors.Selected;
+ if (secondary != null)
+ {
+ secondary.TextColor = TextColors.Selected;
+ }
+ if(primarySubText != null)
+ {
+ primarySubText.TextColor = TextColors.Selected;
+ }
+ }
+ else
+ {
+ base.BackgroundColor = BackgroundColors.Normal;
+
+ primary.TextColor = TextColors.Normal;
+ if (secondary != null)
+ {
+ secondary.TextColor = TextColors.Normal;
+ }
+ if (primarySubText != null)
+ {
+ primarySubText.TextColor = TextColors.Normal;
+ }
+ }
+ }
+
private void AddIcon(Color color, string iconPath)
{
var iconBackground = new View
}
var appItem = new TextWithIconListItem(appInfo.Name, Color.Transparent, iconPath: appInfo.IconPath, subText: NUIGadgetResourceManager.GetString(nameof(Resources.IDS_SM_SBODY_CALCULATING_ING)));
- appItem.Clicked += (s, e) =>
- {
- // TODO : goto app info by AppId
- };
+ // TODO : goto app info by AppId
+ //appItem.Clicked += (s, e) => {};
content.Add(appItem);
listItems.Add(appInfo.AppId, appItem);