each tab and at Selector View .
Change-Id: I02e61d358d58572a33d539aa2d5d554fc57dce27
Signed-off-by: Akshat Airan/Core S/W Group /SRI-Delhi/Engineer/Samsung Electronics <akshat.airan@samsung.com>
ArtistName = artistName;
AlbumCount = ArtistDataProvider.GetArtistAlbumCount(artistName).ToString();
TrackCount = ArtistDataProvider.GetArtistTrackCount(artistName).ToString();
- TotalCount = AlbumCount + " / " + TrackCount;
AlbumArtPath = ArtistDataProvider.GetArtistAlbumArtPath(artistName);
IsSelected = false;
}
get => albumCount;
set
{
- string text = string.Equals(value, "1") ? " album" : " albums";
- SetProperty(ref albumCount, value + text);
+ string text = string.Equals(value, "1") ? "IDS_ALBUM" : "IDS_ALBUMS";
+ AlbumTitle = text;
+ SetProperty(ref albumCount, value);
}
}
+ private string albumTitle;
+
+ public string AlbumTitle
+ {
+ get => albumTitle;
+ set => SetProperty(ref albumTitle, value);
+ }
+
private string trackCount;
public string TrackCount
get => trackCount;
set
{
- string text = string.Equals(value, "1") ? " track" : " tracks";
- SetProperty(ref trackCount, value + text);
+ string text = string.Equals(value, "1") ? "IDS_TRACK" : "IDS_TRACKS";
+ TrackTitle = text;
+ SetProperty(ref trackCount,"/ " + value);
}
}
+ private string trackTitle;
+
+ public string TrackTitle
+ {
+ get => trackTitle;
+ set => SetProperty(ref trackTitle, value);
+ }
+
private string totalCount;
public string TotalCount
public string PlaylistTrackCount
{
get => playlistTrackCount;
- set => SetProperty(ref playlistTrackCount, value);
+ set
+ {
+ string text = string.Equals(value, "1") ? "IDS_TRACK" : "IDS_TRACKS";
+ PlaylistTrackTitle = text;
+ SetProperty(ref playlistTrackCount, value);
+ }
+ }
+
+ private string playlistTrackTitle;
+
+ public string PlaylistTrackTitle
+ {
+ get => playlistTrackTitle;
+ set => SetProperty(ref playlistTrackTitle, value);
}
private string playlistThumbnailPath;
}
catch (Exception ex)
{
- Tizen.Log.Debug(AppConstants.LogTag, "Failed to write app doamin exception message: "+ex.Message);
+ Tizen.Log.Debug(AppConstants.LogTag, "Failed to write app doamin exception message: " +ex.Message);
}
Environment.Exit(1);
}
}
}
+ /// <summary>
+ /// Looks up a localized string similar to Select Items.
+ /// </summary>
+ internal static string IDS_SELECT_ITEMS {
+ get {
+ return ResourceManager.GetString("IDS_SELECT_ITEMS", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Selected.
+ /// </summary>
+ internal static string IDS_SELECTED {
+ get {
+ return ResourceManager.GetString("IDS_SELECTED", resourceCulture);
+ }
+ }
+
/// <summary>
/// Looks up a localized string similar to Share.
/// </summary>
<data name="IDS_SEARCH_MUSIC" xml:space="preserve">
<value>Search music</value>
</data>
+ <data name="IDS_SELECTED" xml:space="preserve">
+ <value>Selected</value>
+ </data>
<data name="IDS_SELECT_ALL" xml:space="preserve">
<value>Select All</value>
</data>
+ <data name="IDS_SELECT_ITEMS" xml:space="preserve">
+ <value>Select Items</value>
+ </data>
<data name="IDS_SHARE" xml:space="preserve">
<value>Share</value>
</data>
<data name="IDS_SEARCH_MUSIC" xml:space="preserve">
<value>음악 검색</value>
</data>
+ <data name="IDS_SELECTED" xml:space="preserve">
+ <value>선택한</value>
+ </data>
<data name="IDS_SELECT_ALL" xml:space="preserve">
<value>전체 선택</value>
</data>
+ <data name="IDS_SELECT_ITEMS" xml:space="preserve">
+ <value>아이템 선택</value>
+ </data>
<data name="IDS_SHARE" xml:space="preserve">
<value>공유</value>
</data>
<data name="IDS_SEARCH_MUSIC" xml:space="preserve">
<value>Search music</value>
</data>
+ <data name="IDS_SELECTED" xml:space="preserve">
+ <value>Selected</value>
+ </data>
<data name="IDS_SELECT_ALL" xml:space="preserve">
<value>Select All</value>
</data>
+ <data name="IDS_SELECT_ITEMS" xml:space="preserve">
+ <value>Select Items</value>
+ </data>
<data name="IDS_SHARE" xml:space="preserve">
<value>Share</value>
</data>
get => totalTracks;\r
set\r
{\r
- string text = string.Equals(value, "1") ? " Track" : " Tracks";\r
- SetProperty(ref totalTracks, value + text);\r
+ string text = string.Equals(value, "1") ? "IDS_TRACK" : "IDS_TRACKS";\r
+ TracksTitle = text;\r
+ SetProperty(ref totalTracks, value);\r
}\r
}\r
\r
+ private string tracksTitle;\r
+\r
+ public string TracksTitle\r
+ {\r
+ get => tracksTitle;\r
+ set => SetProperty(ref tracksTitle, value);\r
+ }\r
+\r
// TODO do we really need this ?\r
public void OnViewDeleted()\r
{\r
set\r
{\r
string text = string.Equals(value, "1") ? " IDS_ALBUM" : "IDS_ALBUM";\r
+ AlbumTitle = text;\r
SetProperty(ref albumCount, value);\r
- SetProperty(ref albumTitle, text);\r
}\r
}\r
\r
public string AlbumTitle\r
{\r
get => albumTitle;\r
+ set =>SetProperty(ref albumTitle, value);\r
}\r
\r
private void CreateAlbumData()\r
set
{
string text = string.Equals(value, "1") ? "IDS_ARTIST" : "IDS_ARTISTS";
+ ArtistTitle = text;
SetProperty(ref artistCount, value);
- SetProperty(ref artistTitle, text);
}
}
public string ArtistTitle
{
get => artistTitle;
+ set => SetProperty(ref artistTitle, value);
}
private void OnCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
set
{
string text = string.Equals(value, "1") ? "IDS_TRACK" : "IDS_TRACKS";
+ PlaylistTrackTitle = text;
SetProperty(ref playlistTrackCount, value);
- SetProperty(ref playlistTrackTitle, text);
}
}
public string PlaylistTrackTitle
{
get => playlistTrackTitle;
+ set => SetProperty(ref playlistTrackTitle, value);
}
private bool isDefaultPlaylist;
private string GetTrackCountForPlaylist(int playlistId)
{
int trackCount = PlaylistManager.Instance.PlaylistTrackCount(playlistId);
- return trackCount > 1 ? trackCount.ToString() + " tracks" : trackCount.ToString() + " track";
+ return trackCount.ToString();
}
private int UpdateLength(int length, int count)
set
{
string text = string.Equals(value, "1") ? "IDS_PLAYLIST" : "IDS_PLAYLISTS";
+ PlaylistTitle = text;
SetProperty(ref playlistCount, value);
- SetProperty(ref playlistTitle, text);
}
}
public string PlaylistTitle
{
get => playlistTitle;
+ set => SetProperty(ref playlistTitle, value);
}
private bool canCreatePlaylist;
private string GetTrackCountText(int trackCount)
{
- return trackCount > 1 ? trackCount.ToString() + " tracks" : trackCount.ToString() + " track";
+ return trackCount.ToString();
}
private void AddDefaultPlaylist(List<PlaylistData> list)
get => selectedCount;
set
{
- string text = string.Equals(value, "0") ? "Select Items" : value + " Selected";
- SetProperty(ref selectedCount, text);
+ string count;
+ string label;
+ if (string.Equals(value, "0"))
+ {
+ count = "";
+ label = "IDS_SELECT_ITEMS";
+ }
+ else
+ {
+ count = value;
+ label = "IDS_SELECTED";
+ }
+ SelectedTitle = label;
+ SetProperty(ref selectedCount, count);
}
}
+ private string selectedTitle;
+ public string SelectedTitle
+ {
+ get => selectedTitle;
+ set => SetProperty(ref selectedTitle, value);
+ }
+
public int TotalCount { get; set; }
public List<string> TrackList { get; set; }
set\r
{\r
string text = string.Equals(value, "1") ? "IDS_TRACK" : "IDS_TRACKS";\r
+ TrackTitle = text;\r
SetProperty(ref trackCount, value);\r
- SetProperty(ref trackTitle, text);\r
}\r
}\r
\r
public string TrackTitle\r
{\r
get => trackTitle;\r
+ set => SetProperty(ref trackTitle, value);\r
}\r
\r
public Track PlayingTrack { get; set; }\r
Layout = baseLayout;\r
albumInfoView = CreateLeftView();\r
countLabel.BindingContext = viewModel;\r
+ countTitleLabel.BindingContext = viewModel;\r
countLabel.SetBinding(TextLabel.TextProperty, "TotalTracks");\r
+ countTitleLabel.SetBinding(TextLabel.TranslatableTextProperty, "TracksTitle");\r
collectionView.BindingContext = viewModel;\r
UpdateCollectionView();\r
Add(listContainer);\r
ListItemLayout layout = new ListItemLayout();
layout.Icon.SetBinding(ImageView.ResourceUrlProperty, "AlbumArtPath");
layout.TitleLabel.SetBinding(TextLabel.TextProperty, "ArtistName");
- layout.SubtitleLabel.SetBinding(TextLabel.TextProperty, "TotalCount");
+ layout.SubtitleLabel.SetBinding(TextLabel.TextProperty, "AlbumCount");
+ layout.SubtitleLabel2.SetBinding(TextLabel.TranslatableTextProperty, "AlbumTitle");
+ layout.SubtitleLabel3.SetBinding(TextLabel.TextProperty, "TrackCount");
+ layout.SubtitleLabel4.SetBinding(TextLabel.TranslatableTextProperty, "TrackTitle");
return layout;
});
collectionView.ScrollingDirection = ScrollableBase.Direction.Vertical;
if (type == DisposeTypes.Explicit)
{
topView.Remove(countLabel);
+ topView.Remove(countTitleLabel);
topView.Remove(playAllWithShuffle);
topView.Remove(playAll);
countLabel.Dispose();
countLabel = null;
+ countTitleLabel.Dispose();
+ countTitleLabel = null;
playAllWithShuffle.Dispose();
playAllWithShuffle = null;
playAll.Dispose();
{\r
private const int IconSize = 70;\r
private const int SeperatorHeight = 2;\r
-\r
private View itemSeperator;\r
private View textView;\r
+ private View subtitleView;\r
private TextLabel titleLabel;\r
private TextLabel subtitleLabel;\r
+ private TextLabel subtitleLabel2;\r
+ private TextLabel subtitleLabel3;\r
+ private TextLabel subtitleLabel4;\r
private ImageView icon;\r
private Button playPauseIcon;\r
private bool isAnimating = false;\r
};\r
textView.Add(titleLabel);\r
\r
- subtitleLabel = new TextLabel()\r
+ subtitleView = new View()\r
{\r
- WidthSpecification = LayoutParamPolicies.MatchParent,\r
+ BackgroundColor = Color.Transparent,\r
HeightSpecification = 36.SpToPx(),\r
- PixelSize = 24.SpToPx(),\r
- FontFamily = "BreezeSans",\r
- HorizontalAlignment = HorizontalAlignment.Begin,\r
- VerticalAlignment = VerticalAlignment.Center,\r
- FontStyle = UIFontStyles.AllNormal,\r
- Ellipsis = true,\r
+ WidthSpecification = LayoutParamPolicies.MatchParent,\r
+ Layout = new LinearLayout()\r
+ {\r
+ LinearOrientation = LinearLayout.Orientation.Horizontal,\r
+ HorizontalAlignment = HorizontalAlignment.Begin,\r
+ VerticalAlignment = VerticalAlignment.Center,\r
+ CellPadding = new Size2D(8, 0),\r
+ }\r
};\r
- textView.Add(subtitleLabel);\r
+ textView.Add(subtitleView);\r
+ AddSubtitlelabels();\r
UpdateLabelColors();\r
\r
itemSeperator = new View()\r
\r
ThemeManager.ThemeChanged += OnThemeUpdated;\r
}\r
+\r
+ void AddSubtitlelabels()\r
+ {\r
+ subtitleLabel = CreateSubtitleLabel();\r
+ subtitleLabel2 = CreateSubtitleLabel();\r
+ subtitleLabel3 = CreateSubtitleLabel();\r
+ subtitleLabel4 = CreateSubtitleLabel();\r
+ subtitleLabel2.WidthSpecification = 102.SpToPx();\r
+ subtitleLabel4.WidthSpecification = 102.SpToPx();\r
+ subtitleView.Add(subtitleLabel);\r
+ subtitleView.Add(subtitleLabel2);\r
+ subtitleView.Add(subtitleLabel3);\r
+ subtitleView.Add(subtitleLabel4);\r
+ }\r
+\r
+ private TextLabel CreateSubtitleLabel()\r
+ {\r
+ TextLabel Label = new TextLabel()\r
+ {\r
+ HeightSpecification = 36.SpToPx(),\r
+ PixelSize = 24.SpToPx(),\r
+ FontFamily = "BreezeSans",\r
+ HorizontalAlignment = HorizontalAlignment.Begin,\r
+ VerticalAlignment = VerticalAlignment.Center,\r
+ FontStyle = UIFontStyles.AllNormal,\r
+ Ellipsis = true,\r
+ };\r
+ return Label;\r
+ }\r
public ImageView Icon\r
{\r
get => icon;\r
{\r
get => titleLabel;\r
}\r
+\r
public TextLabel SubtitleLabel\r
{\r
get => subtitleLabel;\r
}\r
+ public TextLabel SubtitleLabel2\r
+ {\r
+ get => subtitleLabel2;\r
+ }\r
+ public TextLabel SubtitleLabel3\r
+ {\r
+ get => subtitleLabel3;\r
+ }\r
+ public TextLabel SubtitleLabel4\r
+ {\r
+ get => subtitleLabel4;\r
+ }\r
\r
private bool isPlaying = false;\r
\r
}\r
if (type == DisposeTypes.Explicit)\r
{\r
+ ThemeManager.ThemeChanged -= OnThemeUpdated;\r
Remove(itemSeperator);\r
itemSeperator?.Dispose();\r
itemSeperator = null;\r
titleLabel?.Dispose();\r
titleLabel = null;\r
\r
- textView.Remove(subtitleLabel);\r
+ subtitleView.Remove(subtitleLabel);\r
subtitleLabel?.Dispose();\r
subtitleLabel = null;\r
\r
+ subtitleView.Remove(subtitleLabel2);\r
+ subtitleLabel2?.Dispose();\r
+ subtitleLabel2 = null;\r
+\r
+ subtitleView.Remove(subtitleLabel3);\r
+ subtitleLabel3?.Dispose();\r
+ subtitleLabel3 = null;\r
+\r
+ subtitleView.Remove(subtitleLabel4);\r
+ subtitleLabel4?.Dispose();\r
+ subtitleLabel4 = null;\r
+\r
+ textView.Remove(subtitleView);\r
+ subtitleView?.Dispose();\r
+ subtitleView = null;\r
+\r
Remove(textView);\r
textView?.Dispose();\r
textView = null;\r
{\r
titleLabel.TextColor = UIColors.HEX1473E6;\r
}\r
- if(subtitleLabel != null)\r
+ if (subtitleLabel != null)\r
{\r
subtitleLabel.TextColor = UIColors.HEX1473E6;\r
}\r
- if(isAnimationRequired && isAnimating == false)\r
+ if (subtitleLabel2 != null)\r
+ {\r
+ subtitleLabel2.TextColor = UIColors.HEX1473E6;\r
+ }\r
+ if (subtitleLabel3 != null)\r
+ {\r
+ subtitleLabel3.TextColor = UIColors.HEX1473E6;\r
+ }\r
+ if (subtitleLabel4 != null)\r
+ {\r
+ subtitleLabel4.TextColor = UIColors.HEX1473E6;\r
+ }\r
+ if (isAnimationRequired && isAnimating == false)\r
{\r
isAnimating = AddAnimation();\r
}\r
{\r
titleLabel.TextColor = UIColors.HEX001447;\r
}\r
- if(subtitleLabel != null)\r
+ if (subtitleLabel != null)\r
{\r
subtitleLabel.TextColor = UIColors.HEX001447;\r
}\r
+ if (subtitleLabel2 != null)\r
+ {\r
+ subtitleLabel2.TextColor = UIColors.HEX001447;\r
+ }\r
+ if (subtitleLabel3 != null)\r
+ {\r
+ subtitleLabel3.TextColor = UIColors.HEX001447;\r
+ }\r
+ if (subtitleLabel4 != null)\r
+ {\r
+ subtitleLabel4.TextColor = UIColors.HEX001447;\r
+ }\r
}\r
else if(currentPlatformThemeId.Equals(AppConstants.DarkPlatformThemeId))\r
{\r
{\r
titleLabel.TextColor = Color.White;\r
}\r
- if(subtitleLabel != null)\r
+ if (subtitleLabel != null)\r
{\r
subtitleLabel.TextColor = Color.White;\r
}\r
+ if (subtitleLabel2 != null)\r
+ {\r
+ subtitleLabel2.TextColor = Color.White;\r
+ }\r
+ if (subtitleLabel3 != null)\r
+ {\r
+ subtitleLabel3.TextColor = Color.White;\r
+ }\r
+ if (subtitleLabel4 != null)\r
+ {\r
+ subtitleLabel4.TextColor = Color.White;\r
+ }\r
}\r
}\r
\r
layout.Icon.SetBinding(ImageView.ResourceUrlProperty, "PlaylistThumbnailPath");
layout.TitleLabel.SetBinding(TextLabel.TextProperty, "PlaylistName");
layout.SubtitleLabel.SetBinding(TextLabel.TextProperty, "PlaylistTrackCount");
+ layout.SubtitleLabel2.SetBinding(TextLabel.TranslatableTextProperty, "PlaylistTrackTitle");
return layout;
});
collectionView.SelectionChanged += OnPlaylistSelectionChange;
private CheckBox checkBox;
private View itemSeperator;
private View textView;
+ private View subtitleView;
private TextLabel titleLabel;
private TextLabel subtitleLabel;
+ private TextLabel subtitleLabel2;
+ private TextLabel subtitleLabel3;
+ private TextLabel subtitleLabel4;
private ImageView icon;
public SelectListLayout() : base()
};
textView.Add(titleLabel);
- subtitleLabel = new TextLabel()
+ subtitleView = new View()
{
- StyleName = "ItemLabel",
- WidthSpecification = LayoutParamPolicies.MatchParent,
+ BackgroundColor = Color.Transparent,
HeightSpecification = 36.SpToPx(),
- PixelSize = 24.SpToPx(),
- FontFamily = "BreezeSans",
- HorizontalAlignment = HorizontalAlignment.Begin,
- VerticalAlignment = VerticalAlignment.Center,
- FontStyle = UIFontStyles.AllNormal,
- Ellipsis = true,
+ WidthSpecification = LayoutParamPolicies.MatchParent,
+ Layout = new LinearLayout()
+ {
+ LinearOrientation = LinearLayout.Orientation.Horizontal,
+ HorizontalAlignment = HorizontalAlignment.Begin,
+ VerticalAlignment = VerticalAlignment.Center,
+ CellPadding = new Size2D(8, 0),
+ }
};
- textView.Add(subtitleLabel);
+ textView.Add(subtitleView);
+ AddSubtitlelabels();
itemSeperator = new View()
{
IsSelected = false;
}
+ void AddSubtitlelabels()
+ {
+ subtitleLabel = CreateSubtitleLabel();
+ subtitleLabel2 = CreateSubtitleLabel();
+ subtitleLabel3 = CreateSubtitleLabel();
+ subtitleLabel4 = CreateSubtitleLabel();
+ subtitleLabel2.WidthSpecification = 102.SpToPx();
+ subtitleLabel4.WidthSpecification = 102.SpToPx();
+ subtitleView.Add(subtitleLabel);
+ subtitleView.Add(subtitleLabel2);
+ subtitleView.Add(subtitleLabel3);
+ subtitleView.Add(subtitleLabel4);
+ }
+
+ private TextLabel CreateSubtitleLabel()
+ {
+ TextLabel Label = new TextLabel()
+ {
+ HeightSpecification = 36.SpToPx(),
+ PixelSize = 24.SpToPx(),
+ FontFamily = "BreezeSans",
+ HorizontalAlignment = HorizontalAlignment.Begin,
+ VerticalAlignment = VerticalAlignment.Center,
+ FontStyle = UIFontStyles.AllNormal,
+ Ellipsis = true,
+ };
+ return Label;
+ }
+
public ImageView Icon
{
get => icon;
get => subtitleLabel;
}
+ public TextLabel SubtitleLabel2
+ {
+ get => subtitleLabel2;
+ }
+
+ public TextLabel SubtitleLabel3
+ {
+ get => subtitleLabel3;
+ }
+ public TextLabel SubtitleLabel4
+ {
+ get => subtitleLabel4;
+ }
public CheckBox Checkbox
{
get => checkBox;
titleLabel?.Dispose();
titleLabel = null;
- textView.Remove(subtitleLabel);
+ subtitleView.Remove(subtitleLabel);
subtitleLabel?.Dispose();
subtitleLabel = null;
+ subtitleView.Remove(subtitleLabel2);
+ subtitleLabel2?.Dispose();
+ subtitleLabel2 = null;
+
+ subtitleView.Remove(subtitleLabel3);
+ subtitleLabel3?.Dispose();
+ subtitleLabel3 = null;
+
+ subtitleView.Remove(subtitleLabel4);
+ subtitleLabel4?.Dispose();
+ subtitleLabel4 = null;
+
+ textView.Remove(subtitleView);
+ subtitleView?.Dispose();
+ subtitleView = null;
+
Remove(textView);
textView?.Dispose();
textView = null;
private View topView;
private View selAllView;
private TextLabel selectedCountLabel;
+ private TextLabel selectedCountLabel2;
private CheckBox selAllButton;
private Button cancelButton;
private Button doneButton;
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
Ellipsis = true,
+ Margin = new Extents(0, 4, 0, 0).SpToPx(),
};
selectedCountLabel.BindingContext = viewModel;
selectedCountLabel.SetBinding(TextLabel.TextProperty, "SelectedCount");
topView.Add(selectedCountLabel);
- RelativeLayout.SetLeftTarget(selectedCountLabel, topView);
- RelativeLayout.SetLeftRelativeOffset(selectedCountLabel, 0.0f);
- RelativeLayout.SetFillHorizontal(selectedCountLabel, true);
- RelativeLayout.SetVerticalAlignment(selectedCountLabel, RelativeLayout.Alignment.Center);
+ selectedCountLabel2 = new TextLabel()
+ {
+ StyleName = "TitleText",
+ HeightSpecification = 48.SpToPx(),
+ PixelSize = 32.SpToPx(),
+ FontFamily = "BreezeSans",
+ HorizontalAlignment = HorizontalAlignment.Begin,
+ VerticalAlignment = VerticalAlignment.Center,
+ Ellipsis = true,
+ Margin = new Extents(4, 0, 0, 0).SpToPx(),
+ };
+ selectedCountLabel2.BindingContext = viewModel;
+ selectedCountLabel2.SetBinding(TextLabel.TranslatableTextProperty, "SelectedTitle");
+ topView.Add(selectedCountLabel2);
+
+ RelativeLayout.SetLeftTarget(selectedCountLabel2, selectedCountLabel);
+ RelativeLayout.SetLeftRelativeOffset(selectedCountLabel2, 1.0f);
}
private void AddButtons()
SelectListLayout layout = new SelectListLayout();
layout.Icon.SetBinding(ImageView.ResourceUrlProperty, "AlbumArtPath");
layout.TitleLabel.SetBinding(TextLabel.TextProperty, "ArtistName");
- layout.SubtitleLabel.SetBinding(TextLabel.TextProperty, "TotalCount");
+ layout.SubtitleLabel.SetBinding(TextLabel.TextProperty, "AlbumCount");
+ layout.SubtitleLabel2.SetBinding(TextLabel.TranslatableTextProperty, "AlbumTitle");
+ layout.SubtitleLabel3.SetBinding(TextLabel.TextProperty, "TrackCount");
+ layout.SubtitleLabel4.SetBinding(TextLabel.TranslatableTextProperty, "TrackTitle");
layout.Checkbox.SetBinding(Button.IsSelectedProperty, "IsSelected");
return layout;
});
layout.Icon.SetBinding(ImageView.ResourceUrlProperty, "PlaylistThumbnailPath");
layout.TitleLabel.SetBinding(TextLabel.TextProperty, "PlaylistName");
layout.SubtitleLabel.SetBinding(TextLabel.TextProperty, "PlaylistTrackCount");
+ layout.SubtitleLabel2.SetBinding(TextLabel.TranslatableTextProperty, "PlaylistTrackTitle");
layout.Checkbox.SetBinding(Button.IsSelectedProperty, "PlaylistIsSelected");
return layout;
});
{
List<object> oldSel = new List<object>(ev.PreviousSelection);
List<object> newSel = new List<object>(ev.CurrentSelection);
-
foreach (object item in oldSel)
{
if (item != null && !newSel.Contains(item))
}
}
}
-
viewModel.SelectedCount = itemCount.ToString();
doneButton.IsEnabled = itemCount != 0;
Tizen.Log.Debug(AppConstants.LogTag, "Total tracks selected " + selectedItemList.Count);