DpToPx changes for Views, Required for Scalable Support 88/270388/3
authoraman.jeph <aman.jeph@samsung.com>
Mon, 31 Jan 2022 11:40:39 +0000 (17:10 +0530)
committeraman.jeph <aman.jeph@samsung.com>
Tue, 1 Feb 2022 17:10:15 +0000 (22:40 +0530)
Change-Id: I3ed713ee57ef4d9230452a4160e5c6c94eb126a7
Signed-off-by: aman.jeph <aman.jeph@samsung.com>
20 files changed:
music-player/Views/AlbumDetailLayout.cs
music-player/Views/AlbumView.cs
music-player/Views/ArtistDetailGroupLayout.cs
music-player/Views/ArtistDetailItemLayout.cs
music-player/Views/ArtistView.cs
music-player/Views/BaseContentView.cs
music-player/Views/BaseSubContentView.cs
music-player/Views/BaseView.cs
music-player/Views/ListItemLayout.cs
music-player/Views/PlaylistSelectorView.cs
music-player/Views/PlaylistView.cs
music-player/Views/SearchView.cs
music-player/Views/SelectListLayout.cs
music-player/Views/SelectorView.cs
music-player/Views/TrackDetailView.cs
music-player/Views/TrackView.cs
music-player/music-player.csproj
music-player/res/themes/dark.xaml
music-player/res/themes/light.xaml
packaging/org.tizen.MusicPlayer-1.0.0.tpk

index 48fb0270175f50bfddfda6083c680c7e86774ab7..cd6ea4884fe3973c0cd115c87da2c7f1cabfa224 100755 (executable)
@@ -37,10 +37,9 @@ namespace MusicPlayer.Views
         public AlbumDetailLayout(int width = 832, int height = 108) : base()\r
         {\r
             base.OnInitialize();\r
-            base.IsCreateByXaml = true;\r
             WidthSpecification = width;\r
             HeightSpecification = height;\r
-            Size2D = new Size2D(width, height);\r
+            Size2D = new Size2D(width, height).DpToPx();\r
             // to show the rounded rect of the bg\r
             BackgroundColor = Color.Transparent;\r
 \r
@@ -56,14 +55,14 @@ namespace MusicPlayer.Views
         {\r
             TextLabel titleLabel = new TextLabel()\r
             {\r
-                Size2D = new Size2D(596, 40),\r
-                PixelSize = 32,\r
+                Size2D = new Size2D(596, 40).DpToPx(),\r
+                PixelSize = 32.DpToPx(),\r
                 FontFamily = "BreezeSans",\r
                 HorizontalAlignment = HorizontalAlignment.Begin,\r
                 VerticalAlignment = VerticalAlignment.Center,\r
-                Padding=new Extents(LayoutPadding,0,0,0),\r
+                Padding = new Extents(LayoutPadding,0,0,0).DpToPx(),\r
                 FontStyle = UIFontStyles.NormalLight,\r
-                Position2D = new Position2D(X , LayoutMargin),\r
+                Position2D = new Position2D(X , LayoutMargin).DpToPx(),\r
             };\r
             base.Add(titleLabel);\r
             return titleLabel;\r
@@ -73,14 +72,14 @@ namespace MusicPlayer.Views
         {\r
             TextLabel subtitleLabel = new TextLabel()\r
             {\r
-                Size2D= new Size2D(596,36),\r
-                PixelSize = 28,\r
+                Size2D= new Size2D(596,36).DpToPx(),\r
+                PixelSize = 28.DpToPx(),\r
                 FontFamily = "BreezeSans",\r
                 HorizontalAlignment = HorizontalAlignment.Begin,\r
                 VerticalAlignment = VerticalAlignment.Center,\r
-                Padding = new Extents(LayoutPadding, 0, 0, 0),\r
+                Padding = new Extents(LayoutPadding, 0, 0, 0).DpToPx(),\r
                 FontStyle = UIFontStyles.AllNormal,\r
-                Position2D = new Position2D(X , LayoutMargin + 40)\r
+                Position2D = new Position2D(X, LayoutMargin + 40).DpToPx()\r
             };\r
             base.Add(subtitleLabel);\r
             return subtitleLabel;\r
@@ -90,13 +89,13 @@ namespace MusicPlayer.Views
         {\r
             TextLabel additionalLabel = new TextLabel()\r
             {\r
-                Size2D= new Size2D(108,36),\r
-                PixelSize = 28,\r
+                Size2D= new Size2D(108,36).DpToPx(),\r
+                PixelSize = 28.DpToPx(),\r
                 FontFamily = "BreezeSans",\r
                 VerticalAlignment = VerticalAlignment.Center,\r
                 HorizontalAlignment = HorizontalAlignment.End,\r
                 FontStyle = UIFontStyles.AllNormal,\r
-                Position2D = new Position2D(width-LayoutPadding-LeftPadding-108, 36)\r
+                Position2D = new Position2D(width-LayoutPadding-LeftPadding-108, 36).DpToPx()\r
             };\r
             base.Add(additionalLabel);\r
             return additionalLabel;\r
@@ -106,9 +105,9 @@ namespace MusicPlayer.Views
         {\r
             View itemSeperator = new View()\r
             {\r
-                Size2D = new Size2D(width, SeperatorHeight),\r
+                Size2D = new Size2D(width, SeperatorHeight).DpToPx(),\r
                 ExcludeLayouting = true,\r
-                Position2D = new Position2D(X , height - SeperatorHeight),\r
+                Position2D = new Position2D(X , height - SeperatorHeight).DpToPx(),\r
                 BackgroundColor = UIColors.ItemSeperator,\r
             };\r
             base.Add(itemSeperator);\r
index 96d3b68dbf7bc9f6a5e250afb92e4ab5371c7e64..e5cd4bbcc6cfca432c10c56ad4b25e2b5f4cf8f1 100755 (executable)
@@ -37,7 +37,7 @@ namespace MusicPlayer.Views
             {\r
                 StyleName = "LabelText",\r
                 ThemeChangeSensitive = true,\r
-                PixelSize = 28,\r
+                PixelSize = 28.DpToPx(),\r
                 Text = "ALBUM COUNT",\r
                 HorizontalAlignment = HorizontalAlignment.Begin,\r
                 VerticalAlignment = VerticalAlignment.Center,\r
index aeefd2f048b47bffa42c16c4bf81f27f2778de96..b3d75f24b5f15a1d0830b193fc2b2aac5114c50c 100755 (executable)
@@ -28,7 +28,7 @@ namespace MusicPlayer.Views
             Height = height;
             WidthSpecification = Width;
             HeightSpecification = Height;
-            Size2D = new Size2D(Width, Height);
+            Size2D = new Size2D(Width, Height).DpToPx();
             // to show the rounded rect of the bg
             BackgroundColor = Color.Transparent;
             ThemeChangeSensitive = true;
@@ -43,9 +43,8 @@ namespace MusicPlayer.Views
         {
             ImageView icon = new ImageView()
             {
-                Size2D = new Size2D(IconSize, IconSize),
-                IsCreateByXaml = true,
-                Position2D = new Position2D(x, (Height / 2) - (IconSize / 2)),
+                Size2D = new Size2D(IconSize, IconSize).DpToPx(),
+                Position2D = new Position2D(x, (Height / 2) - (IconSize / 2)).DpToPx(),
             };
             base.Add(icon);
             return icon;
@@ -55,9 +54,9 @@ namespace MusicPlayer.Views
         {
             View itemSeperator = new View()
             {
-                Size2D = new Size2D((Width - (2 * LeftPadding)), SeperatorHeight),
+                Size2D = new Size2D((Width - (2 * LeftPadding)), SeperatorHeight).DpToPx(),
                 ExcludeLayouting = true,
-                Position2D = new Position2D(x, Height - SeperatorHeight),
+                Position2D = new Position2D(x, Height - SeperatorHeight).DpToPx(),
                 BackgroundColor = UIColors.ItemSeperator,
             };
             base.Add(itemSeperator);
@@ -70,12 +69,11 @@ namespace MusicPlayer.Views
             {
                 StyleName = "ItemLabel",
                 ThemeChangeSensitive = true,
-                Size2D = new Size2D((Width - (2 * LeftPadding) - IconSize - LayoutPadding), 40),
-                PixelSize = 32,
+                Size2D = new Size2D((Width - (2 * LeftPadding) - IconSize - LayoutPadding), 40).DpToPx(),
+                PixelSize = 32.DpToPx(),
                 FontFamily = "BreezeSans",
                 VerticalAlignment = VerticalAlignment.Center,
-                IsCreateByXaml = true,
-                Position2D = new Position2D(x + IconSize + LayoutPadding, 34),
+                Position2D = new Position2D(x + IconSize + LayoutPadding, 34).DpToPx(),
             };
             base.Add(titleLabel);
             return titleLabel;
index 884dc45c0975e7cb15c0bd4f8f6efc82f5aae198..8ca7839fff0ca8b51e0b8f279f22391afc69234e 100755 (executable)
@@ -42,7 +42,7 @@ namespace MusicPlayer.Views
             Height = height;
             WidthSpecification = Width;
             HeightSpecification = Height;
-            Size2D = new Size2D(Width, Height);
+            Size2D = new Size2D(Width, Height).DpToPx();
             // to show the rounded rect of the bg
             BackgroundColor = Color.Transparent;
 
@@ -57,9 +57,9 @@ namespace MusicPlayer.Views
         {
             View itemSeperator = new View()
             {
-                Size2D = new Size2D((Width - (2 * LeftPadding)), SeperatorHeight),
+                Size2D = new Size2D((Width - (2 * LeftPadding)), SeperatorHeight).DpToPx(),
                 ExcludeLayouting = true,
-                Position2D = new Position2D(x, Height - SeperatorHeight),
+                Position2D = new Position2D(x, Height - SeperatorHeight).DpToPx(),
                 BackgroundColor = UIColors.ItemSeperator,
             };
             base.Add(itemSeperator);
@@ -70,13 +70,13 @@ namespace MusicPlayer.Views
         {
             TextLabel titleLabel = new TextLabel()
             {
-                Size2D = new Size2D(1272, 40),
-                PixelSize = 32,
+                Size2D = new Size2D(1272, 40).DpToPx(),
+                PixelSize = 32.DpToPx(),
                 FontFamily = "BreezeSans",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
                 FontStyle = UIFontStyles.NormalLight,
-                Position2D = new Position2D(x, 34),
+                Position2D = new Position2D(x, 34).DpToPx(),
             };
             base.Add(titleLabel);
             return titleLabel;
@@ -86,13 +86,13 @@ namespace MusicPlayer.Views
         {
             TextLabel extraLabel = new TextLabel()
             {
-                Size2D = new Size2D(360, 36),
-                PixelSize = 28,
+                Size2D = new Size2D(360, 36).DpToPx(),
+                PixelSize = 28.DpToPx(),
                 FontFamily = "BreezeSans",
                 VerticalAlignment = VerticalAlignment.Center,
                 HorizontalAlignment = HorizontalAlignment.End,
                 FontStyle = UIFontStyles.AllNormal,
-                Position2D = new Position2D((x + 1272 + LayoutPadding), 36)
+                Position2D = new Position2D((x + 1272 + LayoutPadding), 36).DpToPx()
             };
             base.Add(extraLabel);
             return extraLabel;
index 1e7341ac9cdb5883acdc6a1be1f16e641913d66b..c498cb3a4ac58a67d69b707864a57005adfacd9d 100755 (executable)
@@ -39,7 +39,7 @@ namespace MusicPlayer.Views
             {
                 StyleName = "LabelText",
                 ThemeChangeSensitive = true,
-                PixelSize = 28,
+                PixelSize = 28.DpToPx(),
                 Text = "ARTIST COUNT",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
index edb9cd9c035ba840c2f95c5e3253e3aa09da3fa3..9708f76d7fd3ef874ceaeb7c4ef20941ebf94e8a 100755 (executable)
@@ -35,10 +35,10 @@ namespace MusicPlayer.Views
                 HeightResizePolicy = ResizePolicyType.FillToParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                Layout = new FlexLayout()
+                Layout = new LinearLayout()
                 {
-                    Direction = FlexLayout.FlexDirection.Column,
-                    Padding = new Extents(64, 64, 0, 0),
+                    LinearOrientation = LinearLayout.Orientation.Vertical,
+                    Padding = new Extents(64, 64, 0, 0).DpToPx(),
                 },
             };
             base.Add(contentViewContainer);
@@ -47,21 +47,19 @@ namespace MusicPlayer.Views
             {
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 60,
+                HeightSpecification = 60.DpToPx(),
                 Layout = new RelativeLayout()
                 {
-                    Padding = new Extents(0, 0, 6, 6),
+                    Padding = new Extents(0, 0, 6, 6).DpToPx(),
                 },
             };
             contentViewContainer.Add(titleView);
-            FlexLayout.SetFlexGrow(titleView, 0);
-            FlexLayout.SetFlexShrink(titleView, 0);
 
             collectionView = new CollectionView()
             {
                 ThemeChangeSensitive = true,
                 StyleName = "ListBackground",
-                Size2D = new Size2D(1792, 108),
+                Size2D = new Size2D(1792, 108).DpToPx(),
                 Margin = new Extents(0, 0, 0, 2),
                 ItemsLayouter = new LinearLayouter(),
                 ScrollingDirection = ScrollableBase.Direction.Vertical,
@@ -78,8 +76,6 @@ namespace MusicPlayer.Views
                 collectionView.HideScrollbar = true;
             };
             contentViewContainer.Add(collectionView);
-            FlexLayout.SetFlexGrow(collectionView, 1);
-            FlexLayout.SetFlexShrink(collectionView, 1);
 
             subContentViewContainer = new View()
             {
index c2c65b0a8300616e5509e67a9467e415af57422e..364a76a3c5e59c4c85e5736979083810b1e16a3c 100755 (executable)
@@ -34,8 +34,8 @@ namespace MusicPlayer.Views
                 Layout = new LinearLayout()
                 {
                     LinearOrientation = LinearLayout.Orientation.Vertical,
-                    LinearAlignment = LinearLayout.Alignment.Top,
-                    Padding = new Extents(64, 64, 0, 0),
+                    VerticalAlignment = VerticalAlignment.Top,
+                    Padding = new Extents(64, 64, 0, 0).DpToPx(),
                 },
                 BackgroundColor = Color.Transparent,
                 WidthResizePolicy = ResizePolicyType.FillToParent,
@@ -46,10 +46,10 @@ namespace MusicPlayer.Views
             topView = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 60,
+                HeightSpecification = 60.DpToPx(),
                 Layout = new RelativeLayout()
                 {
-                    Padding = new Extents(0, 0, 6, 6),
+                    Padding = new Extents(0, 0, 6, 6).DpToPx(),
                 },
             };
             listContainer.Add(topView);
@@ -58,7 +58,7 @@ namespace MusicPlayer.Views
             {
                 StyleName = "LabelText",
                 ThemeChangeSensitive = true,
-                PixelSize = 28,
+                PixelSize = 28.DpToPx(),
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
                 FontFamily = "BreezeSans",
@@ -86,7 +86,7 @@ namespace MusicPlayer.Views
             playAllWithShuffle = new Button("ShuffleButton")
             {
                 ThemeChangeSensitive = true,
-                Margin = new Extents(32, 40, 0, 0),
+                Margin = new Extents(32, 40, 0, 0).DpToPx(),
             };
             topView.Add(playAllWithShuffle);
             playAllWithShuffle.Clicked += (object sender, ClickedEventArgs e) =>
index bc4526114019b8defa9841c448b13c2080e24d7a..b1fbfdfa93edc5b5c4013a50bee36bace8fbe1f5 100755 (executable)
@@ -42,10 +42,10 @@ namespace MusicPlayer.Views
             {
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 120,
+                HeightSpecification = 120.DpToPx(),
                 Layout = new RelativeLayout()
                 {
-                    Padding = new Extents(64, 64, 30, 30),
+                    Padding = new Extents(64, 64, 30, 30).DpToPx(),
                 },
             };
             base.Add(topView);
@@ -56,7 +56,7 @@ namespace MusicPlayer.Views
                 StyleName = "PageLabel",
                 ThemeChangeSensitive = true,
                 Text = "Music",
-                PixelSize = 40,
+                PixelSize = 40.DpToPx(),
                 FontFamily = "BreezeSans",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
@@ -84,9 +84,9 @@ namespace MusicPlayer.Views
             tabs = new Tab("Tabs")
             {
                 ThemeChangeSensitive = true,
-                Size2D = new Size2D(Window.Instance.Size.Width, 84),
+                Size2D = new Size2D(Window.Instance.Size.Width, 84).DpToPx(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 84,
+                HeightSpecification = 84.DpToPx(),
             };
             base.Add(tabs);
             for(int i = 0; i<4; ++i)
@@ -125,8 +125,8 @@ namespace MusicPlayer.Views
                         backButton = new Button("BackButton")
                         {
                             ThemeChangeSensitive = true,
-                            Size2D = new Size2D(48, 48),
-                            Margin = new Extents(0, 24, 6, 6),
+                            Size2D = new Size2D(48, 48).DpToPx(),
+                            Margin = new Extents(0, 24, 6, 6).DpToPx(),
                         };
 
                         backButton.Clicked += OnBackButtonClicked;
@@ -160,7 +160,7 @@ namespace MusicPlayer.Views
                 moreButton = new Button("MoreButton")
                 {
                     ThemeChangeSensitive = true,
-                    Margin = new Extents(32, 0, 6, 6),
+                    Margin = new Extents(32, 0, 6, 6).DpToPx(),
                 };
                 topView.Add(moreButton);
                 RelativeLayout.SetLeftRelativeOffset(moreButton, 1.0f);
@@ -182,7 +182,7 @@ namespace MusicPlayer.Views
                     searchButton = new Button("SearchButton")
                     {
                         ThemeChangeSensitive = true,
-                        Margin = new Extents(24, 0, 0, 0),
+                        Margin = new Extents(24, 0, 0, 0).DpToPx(),
                     };
                     topView.Add(searchButton);
                     RelativeLayout.SetRightTarget(searchButton, moreButton);
index 1fe5f06c4285e7d54d3f1dfabad6267649af4fa0..584248408c5dce6852c9f4a2b210f7f72739b179 100755 (executable)
@@ -66,44 +66,44 @@ defaultValueCreator: (bindable) => ((ListItemLayout)bindable).playingStatus);
             AnimationRequired = animationRequired;\r
             WidthSpecification = Width;\r
             HeightSpecification = Height;\r
-            Size2D = new Size2D(Width, Height);\r
+            Size2D = new Size2D(Width, Height).DpToPx();\r
             // to show the rounded rect of the bg\r
             BackgroundColor = Color.Transparent;\r
 \r
             icon = new ImageView()\r
             {\r
-                Size2D = new Size2D(IconSize, IconSize),\r
-                Position2D = new Position2D(x, ((Height / 2) - (IconSize / 2))),\r
+                Size2D = new Size2D(IconSize, IconSize).DpToPx(),\r
+                Position2D = new Position2D(x, ((Height / 2) - (IconSize / 2))).DpToPx(),\r
             };\r
             base.Add(icon);\r
 \r
             itemSeperator = new View()\r
             {\r
-                Size2D = new Size2D((Width - (2 * LeftPadding)), SeperatorHeight),\r
+                Size2D = new Size2D((Width - (2 * LeftPadding)), SeperatorHeight).DpToPx(),\r
                 ExcludeLayouting = true,\r
-                Position2D = new Position2D(x, Height - SeperatorHeight),\r
+                Position2D = new Position2D(x, Height - SeperatorHeight).DpToPx(),\r
                 BackgroundColor = UIColors.ItemSeperator,\r
             };\r
             base.Add(itemSeperator);\r
 \r
             titleLabel = new TextLabel()\r
             {\r
-                Size2D = new Size2D((Width - (2 * LeftPadding) - IconSize - LayoutPadding), 40),\r
-                PixelSize = 32,\r
+                Size2D = new Size2D((Width - (2 * LeftPadding) - IconSize - LayoutPadding), 40).DpToPx(),\r
+                PixelSize = 32.DpToPx(),\r
                 FontFamily = "BreezeSans",\r
                 VerticalAlignment = VerticalAlignment.Center,\r
-                Position2D = new Position2D((x + IconSize + LayoutPadding), LayoutMargin),\r
+                Position2D = new Position2D((x + IconSize + LayoutPadding), LayoutMargin).DpToPx(),\r
             };\r
             titleLabel.FontStyle = UIFontStyles.NormalLight;\r
             base.Add(titleLabel);\r
 \r
             subtitleLabel = new TextLabel()\r
             {\r
-                Size2D = new Size2D((Width - (2 * LeftPadding) - IconSize - LayoutPadding), 36),\r
-                PixelSize = 28,\r
+                Size2D = new Size2D((Width - (2 * LeftPadding) - IconSize - LayoutPadding), 36).DpToPx(),\r
+                PixelSize = 28.DpToPx(),\r
                 FontFamily = "BreezeSans",\r
                 VerticalAlignment = VerticalAlignment.Center,\r
-                Position2D = new Position2D((x + IconSize + LayoutPadding), LayoutMargin + 40)\r
+                Position2D = new Position2D((x + IconSize + LayoutPadding), LayoutMargin + 40).DpToPx(),\r
             };\r
             subtitleLabel.FontStyle = UIFontStyles.AllNormal;\r
             base.Add(subtitleLabel);\r
@@ -172,10 +172,13 @@ defaultValueCreator: (bindable) => ((ListItemLayout)bindable).playingStatus);
         {\r
             if(currentValue)\r
             {\r
-                Tizen.Log.Error(AppConstants.LogTag, "Adding animation/play-pause icon and setting highlight color");\r
-                if(titleLabel != null && subtitleLabel != null)\r
+                Tizen.Log.Debug(AppConstants.LogTag, "Adding animation/play-pause icon and setting highlight color");\r
+                if(titleLabel != null)\r
                 {\r
                     titleLabel.TextColor = UIColors.HEX1473E6;\r
+                }\r
+                if(subtitleLabel != null)\r
+                {\r
                     subtitleLabel.TextColor = UIColors.HEX1473E6;\r
                 }\r
                 if(AnimationRequired == true && isAnimating == false)\r
@@ -189,7 +192,7 @@ defaultValueCreator: (bindable) => ((ListItemLayout)bindable).playingStatus);
             }\r
             else\r
             {\r
-                Tizen.Log.Error(AppConstants.LogTag, "Remove animation/play-pause icon and setting normal color");\r
+                Tizen.Log.Debug(AppConstants.LogTag, "Remove animation/play-pause icon and setting normal color");\r
                 UpdateLabelColors();\r
                 if(AnimationRequired == true && isAnimating)\r
                 {\r
@@ -227,17 +230,23 @@ defaultValueCreator: (bindable) => ((ListItemLayout)bindable).playingStatus);
             string currentPlatformThemeId = ThemeManager.PlatformThemeId;\r
             if (currentPlatformThemeId.Equals(AppConstants.LightPlatformThemeId))\r
             {\r
-                if(titleLabel != null && subtitleLabel != null)\r
+                if(titleLabel != null)\r
                 {\r
                     titleLabel.TextColor = UIColors.HEX001447;\r
+                }\r
+                if(subtitleLabel != null)\r
+                {\r
                     subtitleLabel.TextColor = UIColors.HEX001447;\r
                 }\r
             }\r
             else if(currentPlatformThemeId.Equals(AppConstants.DarkPlatformThemeId))\r
             {\r
-                if(titleLabel != null && subtitleLabel != null)\r
+                if(titleLabel != null)\r
                 {\r
                     titleLabel.TextColor = Color.White;\r
+                }\r
+                if(subtitleLabel != null)\r
+                {\r
                     subtitleLabel.TextColor = Color.White;\r
                 }\r
             }\r
index 42f22139c3936504650659bfb41c266580b7d85c..cd29472a619692d11d9b4c9a6110261521573e97 100755 (executable)
@@ -49,12 +49,12 @@ namespace MusicPlayer.Views
             AddSelectPlaylistCancelButton();
             selectPlaylistDialog = new AlertDialog()
             {
-                Size2D = new Size2D(1184, 660),
+                Size2D = new Size2D(1184, 660).DpToPx(),
                 Title = "Add to playlist",
                 Content = selectPlaylistContentArea,
                 Actions = new List<View> { selectPlaylistCancelButton },
-                Padding = new Extents(0, 0, 0, 0),
-                Margin = new Extents(0, 0, 0, 0),
+                Padding = new Extents(0, 0, 0, 0).DpToPx(),
+                Margin = new Extents(0, 0, 0, 0).DpToPx(),
             };
             TextLabel textLabel = (TextLabel)selectPlaylistDialog.TitleContent;
             textLabel.FontStyle = UIFontStyles.AllNormal;
@@ -72,7 +72,7 @@ namespace MusicPlayer.Views
             selectPlaylistContentArea = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 340,
+                HeightSpecification = 340.DpToPx(),
                 BackgroundColor = Color.Transparent,
                 Layout = new FlexLayout()
                 {
@@ -95,9 +95,9 @@ namespace MusicPlayer.Views
             createNewPlaylistButton = new Button("PlaylistCreate")
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 108,
+                HeightSpecification = 108.DpToPx(),
                 TextAlignment = HorizontalAlignment.Begin,
-                Padding = new Extents(64, 64, 0, 0),
+                Padding = new Extents(64, 64, 0, 0).DpToPx(),
                 IsEnabled = true,
                 IsSelectable = false,
                 ItemAlignment = LinearLayout.Alignment.CenterVertical,
@@ -109,9 +109,9 @@ namespace MusicPlayer.Views
             View itemSeperator = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 2,
+                HeightSpecification = 2.DpToPx(),
                 BackgroundColor = UIColors.ItemSeperator,
-                Margin = new Extents(64, 64, 0, 0),
+                Margin = new Extents(64, 64, 0, 0).DpToPx(),
             };
             selectPlaylistContentArea.Add(itemSeperator);
             createNewPlaylistButton.Clicked += CreateNewPlaylistButtonClicked;
@@ -124,12 +124,12 @@ namespace MusicPlayer.Views
             AddCreatePlaylistButtons();
             createPlaylistDialog = new AlertDialog()
             {
-                Size2D = new Size2D(1184, 465),
+                Size2D = new Size2D(1184, 465).DpToPx(),
                 Title = "Create playlist",
                 Content = createPlaylistContentArea,
                 Actions = new List<View> { createPlaylistCancelButton, createPlaylistCreateButton },
-                Padding = new Extents(0, 0, 0, 0),
-                Margin = new Extents(0, 0, 0, 0),
+                Padding = new Extents(0, 0, 0, 0).DpToPx(),
+                Margin = new Extents(0, 0, 0, 0).DpToPx(),
             };
             TextLabel textLabel = (TextLabel)selectPlaylistDialog.TitleContent;
             textLabel.FontStyle = UIFontStyles.AllNormal;
@@ -148,7 +148,7 @@ namespace MusicPlayer.Views
             {
                 ThemeChangeSensitive = true,
                 StyleName = "ListBackground",
-                Size2D = new Size2D(1184, 108),
+                Size2D = new Size2D(1184, 108).DpToPx(),
                 ItemsLayouter = new LinearLayouter(),
                 ScrollingDirection = ScrollableBase.Direction.Vertical,
                 HeightSpecification = LayoutParamPolicies.WrapContent,
@@ -170,16 +170,16 @@ namespace MusicPlayer.Views
                 DefaultLinearItem layout = new DefaultLinearItem("LinearItem")
                 {
                     WidthSpecification = LayoutParamPolicies.MatchParent,
-                    HeightSpecification = 108
+                    HeightSpecification = 108.DpToPx(),
                 };
                 layout.Seperator.BackgroundColor = UIColors.ItemSeperator;
-                layout.Seperator.Padding = new Extents(0, 0, 0, 0);
-                layout.Seperator.Margin = new Extents(0, 0, 0, 0);
+                layout.Seperator.Padding = new Extents(0, 0, 0, 0).DpToPx();
+                layout.Seperator.Margin = new Extents(0, 0, 0, 0).DpToPx();
                 layout.Seperator.WidthSpecification = LayoutParamPolicies.MatchParent;
                 layout.Label.SetBinding(TextLabel.TextProperty, "PlaylistName");
                 layout.Label.FontStyle = UIFontStyles.NormalLight;
-                layout.Padding = new Extents(0, 0, 0, 0);
-                layout.Margin = new Extents(0, 0, 0, 0);
+                layout.Padding = new Extents(0, 0, 0, 0).DpToPx();
+                layout.Margin = new Extents(0, 0, 0, 0).DpToPx();
                 return layout;
             });
             collectionView.ItemsSource = viewModel.ListViewModel;
@@ -224,14 +224,14 @@ namespace MusicPlayer.Views
                 StyleName = "ItemLabel",
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 108,
-                PixelSize = 32,
+                HeightSpecification = 108.DpToPx(),
+                PixelSize = 32.DpToPx(),
                 Text = "No playlists available",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
                 FontFamily = "BreezeSans",
                 FontStyle = UIFontStyles.NormalLight,
-                Padding = new Extents(64, 64, 0, 0),
+                Padding = new Extents(64, 64, 0, 0).DpToPx(),
             };
             selectPlaylistContentArea.Add(noListText);
         }
@@ -239,6 +239,7 @@ namespace MusicPlayer.Views
         {
             selectPlaylistCancelButton = new Button()
             {
+                Size2D = new Size2D(336, 96).DpToPx(),
                 Text = "Cancel",
             };
             selectPlaylistCancelButton.TextLabel.FontStyle = UIFontStyles.AllNormal;
@@ -263,29 +264,29 @@ namespace MusicPlayer.Views
             createPlaylistContentArea = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 169,
+                HeightSpecification = 169.DpToPx(),
                 BackgroundColor = Color.Transparent,
                 Layout = new FlexLayout()
                 {
                     Direction = FlexLayout.FlexDirection.Column,
                     ItemsAlignment = FlexLayout.AlignmentType.FlexStart,
                     Justification = FlexLayout.FlexJustification.FlexStart,
-                    Padding = new Extents(64, 64, 0, 0),
+                    Padding = new Extents(64, 64, 0, 0).DpToPx(),
                 },
             };
             TextLabel textLabel = new TextLabel()
             {
-                StyleName = "TitleText",
+                StyleName = "ItemLabel",
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 40,
-                PixelSize = 32,
+                HeightSpecification = 40.DpToPx(),
+                PixelSize = 32.DpToPx(),
                 Text = "Add playlist name.",
                 HorizontalAlignment = HorizontalAlignment.Center,
                 VerticalAlignment = VerticalAlignment.Center,
                 FontFamily = "BreezeSans",
                 FontStyle = UIFontStyles.NormalLight,
-                Margin = new Extents(0, 0, 0, 24),
+                Margin = new Extents(0, 0, 0, 24).DpToPx(),
             };
             createPlaylistContentArea.Add(textLabel);
             AddInputArea();
@@ -293,7 +294,7 @@ namespace MusicPlayer.Views
             {
                 BackgroundColor = UIColors.ItemSeperator,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 1,
+                HeightSpecification = 1.DpToPx(),
             };
             createPlaylistContentArea.Add(itemSeperator);
             underText = new TextLabel()
@@ -301,8 +302,8 @@ namespace MusicPlayer.Views
                 StyleName = "ItemLabel",
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 32,
-                PixelSize = 24,
+                HeightSpecification = 32.DpToPx(),
+                PixelSize = 24.DpToPx(),
                 Text = "Can't enter more than 64 characters.",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
@@ -316,7 +317,7 @@ namespace MusicPlayer.Views
         {
             inputArea = new View()
             {
-                Size2D = new Size2D(1024, 48),
+                Size2D = new Size2D(1024, 48).DpToPx(),
                 Layout = new FlexLayout()
                 {
                     Direction = FlexLayout.FlexDirection.Row,
@@ -328,10 +329,10 @@ namespace MusicPlayer.Views
             {
                 ThemeChangeSensitive = true,
                 StyleName = "TextField",
-                PixelSize = 32,
-                Size2D = new Size2D(928, 48),
-                Position2D = new Position2D(0, 0),
-                Margin = new Extents(0, 48, 0, 0),
+                PixelSize = 32.DpToPx(),
+                Size2D = new Size2D(928, 48).DpToPx(),
+                Position2D = new Position2D(0, 0).DpToPx(),
+                Margin = new Extents(0, 48, 0, 0).DpToPx(),
                 FontStyle = UIFontStyles.NormalLight,
                 MaxLength = 65,
             };
@@ -341,7 +342,7 @@ namespace MusicPlayer.Views
             crossButton = new Button("ClearButton")
             {
                 ThemeChangeSensitive = true,
-                Position2D = new Position2D(976, 6),
+                Position2D = new Position2D(976, 6).DpToPx(),
             };
             crossButton.Clicked += (object o, ClickedEventArgs e) =>
             {
@@ -390,6 +391,7 @@ namespace MusicPlayer.Views
 
             createPlaylistCreateButton = new Button()
             {
+                Size2D = new Size2D(336, 96).DpToPx(),
                 Text = "Create",
             };
             createPlaylistCreateButton.TextLabel.FontStyle = UIFontStyles.AllNormal;
index 4c02601110bb5706d44d94ad9f215050dbd9748a..b4657cdd7c0a7236ed5003021e442cd3f412e354 100755 (executable)
@@ -38,7 +38,7 @@ namespace MusicPlayer.Views
             {
                 StyleName = "LabelText",
                 ThemeChangeSensitive = true,
-                PixelSize = 28,
+                PixelSize = 28.DpToPx(),
                 Text = "Playlist COUNT",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
@@ -56,7 +56,7 @@ namespace MusicPlayer.Views
             playlistCreateButton = new Button("PlaylistAdd")
             {
                 ThemeChangeSensitive = true,
-                Margin = new Extents(40, 0, 0, 0),
+                Margin = new Extents(40, 0, 0, 0).DpToPx(),
             };
             playlistCreateButton.BindingContext = viewModel;
             playlistCreateButton.SetBinding(Button.IsEnabledProperty, "CanCreatePlaylist");
@@ -121,7 +121,7 @@ namespace MusicPlayer.Views
                 Name = "AlertDialogTitle",
                 StyleName = "LabelText",
                 ThemeChangeSensitive = true,
-                PixelSize = 40,
+                PixelSize = 40.DpToPx(),
                 FontFamily = "BreezeSans",
                 FontStyle = UIFontStyles.AllNormal,
                 Text = "Create playlist",
@@ -136,12 +136,12 @@ namespace MusicPlayer.Views
                 Name = "AlertDialogContentMessage",
                 StyleName = "LabelText",
                 ThemeChangeSensitive = true,
-                PixelSize = 32,
+                PixelSize = 32.DpToPx(),
                 FontFamily = "BreezeSans",
                 FontStyle = UIFontStyles.NormalLight,
                 Text = "Create a playlist",
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 40,
+                HeightSpecification = 40.DpToPx(),
                 HorizontalAlignment = HorizontalAlignment.Center,
             };
             return contentLabel;
@@ -155,6 +155,7 @@ namespace MusicPlayer.Views
                 PlaceholderText = "Enter Playlist Name",
                 Text = DefaultPlaylistName,
                 HorizontalAlignment = HorizontalAlignment.Begin,
+                PixelSize = 32.DpToPx(),
             };
             return inputTextField;
         }
@@ -165,7 +166,7 @@ namespace MusicPlayer.Views
             {
                 Name = "AlertDialogClearButton",
                 ThemeChangeSensitive = true,
-                Margin = new Extents(48, 0, 0, 0),
+                Margin = new Extents(48, 0, 0, 0).DpToPx(),
             };
             return clearButton;
         }
@@ -177,8 +178,8 @@ namespace MusicPlayer.Views
                 Name = "AlertDialogInputArea",
                 BackgroundColor = Color.Transparent,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 48,
-                Margin = new Extents(0, 0, 24, 0),
+                HeightSpecification = 48.DpToPx(),
+                Margin = new Extents(0, 0, 24, 0).DpToPx(),
                 Layout = new RelativeLayout()
             };
             return inputArea;
@@ -189,16 +190,16 @@ namespace MusicPlayer.Views
             View contentArea = new View()
             {
                 Name = "AlertDialogContent",
-                SizeWidth = 1024,
-                WidthSpecification = 1024,
-                SizeHeight = 240,
-                HeightSpecification = 240,
+                SizeWidth = 1024.DpToPx(),
+                WidthSpecification = 1024.DpToPx(),
+                SizeHeight = 240.DpToPx(),
+                HeightSpecification = 240.DpToPx(),
                 BackgroundColor = Color.Transparent,
                 Layout = new LinearLayout()
                 {
                     LinearOrientation = LinearLayout.Orientation.Vertical,
                     LinearAlignment = LinearLayout.Alignment.Center,
-                    Margin = new Extents(0, 0, 0, 24),
+                    Margin = new Extents(0, 0, 0, 24).DpToPx(),
                 }
             };
             return contentArea;
@@ -219,6 +220,7 @@ namespace MusicPlayer.Views
         {
             Button createButton = new Button()
             {
+                Size2D = new Size2D(336, 96).DpToPx(),
                 Name = "AlertDialogCreateButton",
                 Text = "Create",
             };
@@ -275,8 +277,8 @@ namespace MusicPlayer.Views
         {
             View buttonArea = new View()
             {
-                HeightSpecification = 136,
-                WidthSpecification = 1024,
+                HeightSpecification = 136.DpToPx(),
+                WidthSpecification = 1024.DpToPx(),
                 Layout = new RelativeLayout(),
             };
             return buttonArea;
index f99453b4a1910b0791a217f55acad8d2063d7410..0ce951ccadb96bdb7a0775bf61fcfe178b59803c 100755 (executable)
@@ -40,7 +40,7 @@ namespace MusicPlayer.Views
             Layout = new FlexLayout()
             {
                 Direction = FlexLayout.FlexDirection.Column,
-                Padding = new Extents(64, 64, 0, 0),
+                Padding = new Extents(64, 64, 0, 0).DpToPx(),
             };
             AddTopView();
             AddTopViewElements();
@@ -62,8 +62,8 @@ namespace MusicPlayer.Views
             topView = new View()
             {
                 BackgroundColor = Color.Transparent,
-                Size2D = new Size2D(Window.Instance.WindowSize.Width - 128, 120),
-                Position2D = new Position2D(64, 0),
+                Size2D = new Size2D(Window.Instance.WindowSize.Width - 128, 120).DpToPx(),
+                Position2D = new Position2D(64, 0).DpToPx(),
                 Layout = new FlexLayout
                 {
                     Direction = FlexLayout.FlexDirection.Row,
@@ -80,8 +80,8 @@ namespace MusicPlayer.Views
             backButton = new Button("BackButton")
             {
                 ThemeChangeSensitive = true,
-                Size2D = new Size2D(48, 48),
-                Margin = new Extents(0, 24, 0, 0),
+                Size2D = new Size2D(48, 48).DpToPx(),
+                Margin = new Extents(0, 24, 0, 0).DpToPx(),
             };
             topView.Add(backButton);
             backButton.Clicked += BackButtonClicked;
@@ -90,11 +90,11 @@ namespace MusicPlayer.Views
             {
                 StyleName = "PageLabel",
                 ThemeChangeSensitive = true,
-                Size2D = new Size2D(960, 48),
+                Size2D = new Size2D(960, 48).DpToPx(),
                 Text = "Search",
-                PixelSize = 36,
+                PixelSize = 36.DpToPx(),
                 FontFamily = "BreezeSans",
-                Margin = new Extents(0, 32, 0, 0),
+                Margin = new Extents(0, 32, 0, 0).DpToPx(),
                 FontStyle = UIFontStyles.NormalLight,
             };
             topView.Add(searchLabel);
@@ -106,8 +106,8 @@ namespace MusicPlayer.Views
             {
                 StyleName = "SearchBox",
                 ThemeChangeSensitive = true,
-                Size2D = new Size2D(648, 60),
-                Margin = new Extents(0, 32, 0, 0),
+                Size2D = new Size2D(648, 60).DpToPx(),
+                Margin = new Extents(0, 32, 0, 0).DpToPx(),
                 Layout = new FlexLayout()
                 {
                     Direction = FlexLayout.FlexDirection.Row,
@@ -120,19 +120,19 @@ namespace MusicPlayer.Views
             {
                 ThemeChangeSensitive = true,
                 Name = "searchbutton",
-                Margin = new Extents(24, 0, 10, 10),
-                Position2D = new Position2D(24, 10),
+                Margin = new Extents(24, 0, 10, 10).DpToPx(),
+                Position2D = new Position2D(24, 10).DpToPx(),
             };
             textField = new TextField()
             {
                 StyleName = "TextField",
                 ThemeChangeSensitive = true,
                 Name ="Textfield",
-                Size2D = new Size2D(460, 40),
+                Size2D = new Size2D(460, 40).DpToPx(),
                 BackgroundColor = Color.Transparent,
-                Position2D = new Position2D(88, 10),
-                Margin = new Extents(24, 0, 10, 10),
-                PixelSize = 32,
+                Position2D = new Position2D(88, 10).DpToPx(),
+                Margin = new Extents(24, 0, 10, 10).DpToPx(),
+                PixelSize = 32.DpToPx(),
                 PlaceholderText = "Type Here",
                 PlaceholderTextFocused = "Search music",
             };
@@ -142,8 +142,8 @@ namespace MusicPlayer.Views
             {
                 ThemeChangeSensitive = true,
                 Name = "crossButton",
-                Margin = new Extents(24, 0, 6, 6),
-                Position2D = new Position2D(572, 6),
+                Margin = new Extents(24, 0, 6, 6).DpToPx(),
+                Position2D = new Position2D(572, 6).DpToPx(),
             };
             crossButton.Clicked += CrossButtonClicked;
 
@@ -188,14 +188,14 @@ namespace MusicPlayer.Views
                 ThemeChangeSensitive = true,
                 StyleName = "ListBackground",
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                Padding = new Extents(0, 0, 0, 0),
+                Padding = new Extents(0, 0, 0, 0).DpToPx(),
                 ItemsLayouter = new LinearLayouter(),
                 ItemTemplate = new DataTemplate(() =>
                 {
                     ListItemLayout layout = new ListItemLayout()
                     {
-                        Padding = new Extents(0, 0, 0, 0),
-                        Margin = new Extents(0, 0, 0, 0)
+                        Padding = new Extents(0, 0, 0, 0).DpToPx(),
+                        Margin = new Extents(0, 0, 0, 0).DpToPx()
                     };
                     layout.Icon.SetBinding(ImageView.ResourceUrlProperty, "Thumbnail");
                     layout.TitleLabel.SetBinding(TextLabel.TextProperty, "Title");
@@ -206,8 +206,8 @@ namespace MusicPlayer.Views
                 {
                     DefaultTitleItem group = new DefaultTitleItem("DefaultTitle")
                     {
-                        Padding = new Extents(0, 0, 0, 0),
-                        Margin = new Extents(0, 0, 0, 0)
+                        Padding = new Extents(0, 0, 0, 0).DpToPx(),
+                        Margin = new Extents(0, 0, 0, 0).DpToPx()
                     };
                     group.Label.FontStyle = UIFontStyles.AllNormal;
                     group.Label.SetBinding(TextLabel.TextProperty, "DataCount");
@@ -287,13 +287,13 @@ namespace MusicPlayer.Views
                             Direction = FlexLayout.FlexDirection.Column,
                             ItemsAlignment = FlexLayout.AlignmentType.Center,
                             Justification = FlexLayout.FlexJustification.FlexStart,
-                            Padding = new Extents(0, 0, 40, 0),
+                            Padding = new Extents(0, 0, 40, 0).DpToPx(),
                         }
                     };
                     noItemsAnimation = new LottieAnimationView()
                     {
                         URL = Resources.GetLottiePath() + "search_no_result.json",
-                        Size2D = new Size2D(264, 292),
+                        Size2D = new Size2D(264, 292).DpToPx(),
                         LoopCount = -1,
                         BackgroundColor = Color.Transparent,
                     };
@@ -301,12 +301,12 @@ namespace MusicPlayer.Views
                     TextLabel textLabel = new TextLabel()
                     {
                         StyleName = "TitleText",
-                        Size2D = new Size2D(1124, 36),
+                        Size2D = new Size2D(1124, 36).DpToPx(),
                         Text = "No results found",
-                        PixelSize = 28,
+                        PixelSize = 28.DpToPx(),
                         FontFamily = "BreezeSans",
                         HorizontalAlignment = HorizontalAlignment.Center,
-                        Margin = new Extents(0, 0, 32, 0),
+                        Margin = new Extents(0, 0, 32, 0).DpToPx(),
                     };
                     noItemView.Add(textLabel);
                 }
index 778ad03c5d88e9a02a093a50cd0e2d795dbdfb2e..c76adabdcc7a121e4bc092d61cda2bff0f1f894e 100755 (executable)
@@ -27,11 +27,10 @@ namespace MusicPlayer.Views
         public SelectListLayout(int width = 1792, int height = 108) : base()
         {
             base.OnInitialize();
-            base.IsCreateByXaml = true;
             Width = width;
             Height = height;
-            WidthSpecification = Width;
-            HeightSpecification = Height;
+            WidthSpecification = Width.DpToPx();
+            HeightSpecification = Height.DpToPx();
 
             // to show the rounded rect of the bg
             BackgroundColor = Color.Transparent;
@@ -44,29 +43,27 @@ namespace MusicPlayer.Views
 
             checkBox = new CheckBox("CheckBox")
             {
-                IsCreateByXaml = true,
-                Position2D = new Position2D(x, BoxSize),
+                Position2D = new Position2D(x, BoxSize).DpToPx(),
             };
 
             checkBox.Icon.Opacity = 1.0f;
-            checkBox.Icon.Size = new Size2D(BoxSize, BoxSize);
+            checkBox.Icon.Size = new Size2D(BoxSize, BoxSize).DpToPx();
             base.Add(checkBox);
 
             icon = new ImageView()
             {
-                WidthSpecification = IconSize,
-                HeightSpecification = IconSize,
-                IsCreateByXaml = true,
-                Position2D = new Position2D(x + BoxSize + LayoutPadding, ((Height / 2) - (IconSize / 2))),
+                WidthSpecification = IconSize.DpToPx(),
+                HeightSpecification = IconSize.DpToPx(),
+                Position2D = new Position2D(x + BoxSize + LayoutPadding, ((Height / 2) - (IconSize / 2))).DpToPx(),
             };
             base.Add(icon);
 
             itemSeperator = new View()
             {
-                WidthSpecification = (Width - (2 * LeftPadding)),
-                HeightSpecification = SeperatorHeight,
+                WidthSpecification = (Width - (2 * LeftPadding)).DpToPx(),
+                HeightSpecification = SeperatorHeight.DpToPx(),
                 ExcludeLayouting = true,
-                Position2D = new Position2D(x, Height - SeperatorHeight),
+                Position2D = new Position2D(x, Height - SeperatorHeight).DpToPx(),
                 BackgroundColor = UIColors.ItemSeperator,
             };
             base.Add(itemSeperator);
@@ -74,29 +71,26 @@ namespace MusicPlayer.Views
             titleLabel = new TextLabel()
             {
                 StyleName = "ItemLabel",
-                WidthSpecification = (Width - (2 * LeftPadding) - IconSize - 2 * LayoutPadding - BoxSize),
-                HeightSpecification = 40,
-                PixelSize = 32,
+                WidthSpecification = (Width - (2 * LeftPadding) - IconSize - 2 * LayoutPadding - BoxSize).DpToPx(),
+                HeightSpecification = 40.DpToPx(),
+                PixelSize = 32.DpToPx(),
                 FontFamily = "BreezeSans",
                 VerticalAlignment = VerticalAlignment.Center,
-                IsCreateByXaml = true,
-                Position2D = new Position2D((x + IconSize + 2 * LayoutPadding + BoxSize), LayoutMargin),
+                Position2D = new Position2D((x + IconSize + 2 * LayoutPadding + BoxSize), LayoutMargin).DpToPx(),
             };
             base.Add(titleLabel);
 
             subtitleLabel = new TextLabel()
             {
                 StyleName = "ItemLabel",
-                WidthSpecification = (Width - (2 * LeftPadding) - IconSize - 2* LayoutPadding - BoxSize),
-                HeightSpecification = 36,
-                PixelSize = 28,
+                WidthSpecification = (Width - (2 * LeftPadding) - IconSize - 2* LayoutPadding - BoxSize).DpToPx(),
+                HeightSpecification = 36.DpToPx(),
+                PixelSize = 28.DpToPx(),
                 FontFamily = "BreezeSans",
                 VerticalAlignment = VerticalAlignment.Center,
-                IsCreateByXaml = true,
-                Position2D = new Position2D((x + IconSize + 2 * LayoutPadding + BoxSize), LayoutMargin + 40)
+                Position2D = new Position2D((x + IconSize + 2 * LayoutPadding + BoxSize), LayoutMargin + 40).DpToPx(),
             };
             base.Add(subtitleLabel);
-            IsCreateByXaml = true;
             IsSelected = false;
         }
 
index d47796c7aa3b381c6becec06e7afbbf27d9e2b6e..e3aba09ebaa0f7af4bbc92260946d697350c782d 100755 (executable)
@@ -79,7 +79,7 @@ namespace MusicPlayer.Views
             Button button = new Button("TextButton")
             {
                 Text = url,
-                Position2D = new Position2D(x, y),
+                Position2D = new Position2D(x, y).DpToPx(),
                 IsEnabled = false,
             };
             return button;
@@ -90,12 +90,12 @@ namespace MusicPlayer.Views
             View topView = new View()
             {
                 BackgroundColor = Color.Transparent,
-                WidthSpecification = Window.Instance.WindowSize.Width,
-                HeightSpecification = 120,
+                WidthSpecification = Window.Instance.WindowSize.Width.DpToPx(),
+                HeightSpecification = 120.DpToPx(),
                 Layout = new FlexLayout()
                 {
                     Direction = FlexLayout.FlexDirection.Row,
-                    Padding = new Extents(LayoutPadding, LayoutPadding, LayoutMargin, LayoutMargin),
+                    Padding = new Extents(LayoutPadding, LayoutPadding, LayoutMargin, LayoutMargin).DpToPx(),
                 },
             };
             base.Add(topView);
@@ -107,9 +107,9 @@ namespace MusicPlayer.Views
             selectedCountLabel = new TextLabel()
             {
                 StyleName = "TitleText",
-                Size2D = new Size2D(1192, TextLabelHeight),
-                Position2D = new Position2D(LayoutPadding, 0),
-                PixelSize = 36,
+                Size2D = new Size2D(1192, TextLabelHeight).DpToPx(),
+                Position2D = new Position2D(LayoutPadding, 0).DpToPx(),
+                PixelSize = 36.DpToPx(),
                 FontFamily = "BreezeSans",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
@@ -123,7 +123,7 @@ namespace MusicPlayer.Views
         private void AddButtons()
         {
             cancelButton = CreateButton("Cancel", Window.Instance.WindowSize.Width - LayoutPadding - 2 * TextButtonWidth -40, LayoutMargin);
-            cancelButton.Margin = new Extents(40, 0, 0, 0);
+            cancelButton.Margin = new Extents(40, 0, 0, 0).DpToPx();
             cancelButton.IsEnabled = true;
             topView.Add(cancelButton);
             cancelButton.Clicked += (object o, ClickedEventArgs args) =>
@@ -132,7 +132,7 @@ namespace MusicPlayer.Views
             };
 
             doneButton = CreateButton("Done", Window.Instance.WindowSize.Width - LayoutPadding - TextButtonWidth, LayoutMargin);
-            doneButton.Margin = new Extents(40, 0, 0, 0);
+            doneButton.Margin = new Extents(40, 0, 0, 0).DpToPx();
             topView.Add(doneButton);
             doneButton.Clicked += (object o, ClickedEventArgs args) =>
             {
@@ -204,10 +204,10 @@ namespace MusicPlayer.Views
             {
                 StyleName = "SelectAllBg",
                 ThemeChangeSensitive = true,
-                WidthSpecification = Window.Instance.WindowSize.Width - 2 * LayoutPadding,
-                HeightSpecification = 108,
-                Position2D = new Position2D(LayoutPadding,120),
-                Margin = new Extents(LayoutPadding,LayoutPadding,0,40),
+                WidthSpecification = (Window.Instance.WindowSize.Width - 2 * LayoutPadding).DpToPx(),
+                HeightSpecification = 108.DpToPx(),
+                Position2D = new Position2D(LayoutPadding,120).DpToPx(),
+                Margin = new Extents(LayoutPadding,LayoutPadding,0,40).DpToPx(),
             };
             base.Add(selAllView);
             return selAllView;
@@ -217,9 +217,9 @@ namespace MusicPlayer.Views
         {
             selAllButton = new CheckBox()
             {
-                Size2D = new Size2D(36, 36),
-                Position2D = new Position2D(LayoutPadding, LayoutMargin),
-                Margin = new Extents(LayoutPadding, 32, LayoutMargin, LayoutMargin),
+                Size2D = new Size2D(36, 36).DpToPx(),
+                Position2D = new Position2D(LayoutPadding, LayoutMargin).DpToPx(),
+                Margin = new Extents(LayoutPadding, 32, LayoutMargin, LayoutMargin).DpToPx(),
             };
             selAllView.Add(selAllButton);
             selAllButton.Clicked += OnSelAllClicked;
@@ -228,10 +228,10 @@ namespace MusicPlayer.Views
             {
                 StyleName ="LabelText",
                 Text = "Select All",
-                Size2D = new Size2D(1596, 40),
-                Margin = new Extents(0,LayoutPadding,34,34),
-                Position2D = new Position2D(LayoutPadding+36+32, 34),
-                PixelSize = 32,
+                Size2D = new Size2D(1596, 40).DpToPx(),
+                Margin = new Extents(0,LayoutPadding,34,34).DpToPx(),
+                Position2D = new Position2D(LayoutPadding+36+32, 34).DpToPx(),
+                PixelSize = 32.DpToPx(),
                 FontFamily = "BreezeSans",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
@@ -283,8 +283,8 @@ namespace MusicPlayer.Views
             {
                 ThemeChangeSensitive = true,
                 StyleName = "ListBackground",
-                Size2D = new Size2D(1792, 108),
-                Margin = new Extents(LayoutPadding, LayoutPadding, 0, 0),
+                Size2D = new Size2D(1792, 108).DpToPx(),
+                Margin = new Extents(LayoutPadding, LayoutPadding, 0, 0).DpToPx(),
                 ItemsLayouter = new LinearLayouter(),
                 ScrollingDirection = ScrollableBase.Direction.Vertical,
                 HeightSpecification = LayoutParamPolicies.WrapContent,
index b37670a75f5895339a61ebbf5bb2e9cb4eef8808..b442e65d79bec45cbe6554125edff1e184f771a8 100755 (executable)
@@ -90,8 +90,8 @@ namespace MusicPlayer.Views
                 ThemeChangeSensitive = true,
                 StyleName = "ListBackground",
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 836,
-                Margin = new Extents(64, 64, 0, 0),
+                HeightSpecification = 836.DpToPx(),
+                Margin = new Extents(64, 64, 0, 0).DpToPx(),
                 ScrollingDirection = ScrollableBase.Direction.Vertical,
             };
             return scrollableBase;
@@ -102,7 +102,7 @@ namespace MusicPlayer.Views
             View view = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 124,
+                HeightSpecification = 124.DpToPx(),
                 BackgroundColor = Color.Magenta,
             };
             return view;
@@ -142,7 +142,7 @@ namespace MusicPlayer.Views
             View view = new View()
             {
                 BackgroundColor = Color.Transparent,
-                Size2D = new Size2D(1664, 108),
+                Size2D = new Size2D(1664, 108).DpToPx(),
                 BindingContext = viewModel.Model,
             };
 
@@ -167,8 +167,8 @@ namespace MusicPlayer.Views
             View itemSaperator = new View()
             {
                 BackgroundColor = UIColors.HEXC3CAD2,
-                Size2D = new Size2D(1664, 1),
-                Position2D = new Position2D(0, 107),
+                Size2D = new Size2D(1664.DpToPx(), 1),
+                Position2D = new Position2D(0, 107).DpToPx(),
             };
             view.Add(itemSaperator);
 
@@ -177,7 +177,7 @@ namespace MusicPlayer.Views
 
         private void AddItem(View item, int x, int y)
         {
-            item.Position2D = new Position2D(x, y);
+            item.Position2D = new Position2D(x, y).DpToPx();
             itemRootView.Add(item);
         }
 
index 07d38fe137a1b0e15c2bf5846430edac6d68cf8a..762dfb3b0441b6cf0e3318bacd33f19cfc436835 100755 (executable)
@@ -42,7 +42,7 @@ namespace MusicPlayer.Views
             {\r
                 StyleName = "LabelText",\r
                 ThemeChangeSensitive = true,\r
-                PixelSize = 28,\r
+                PixelSize = 28.DpToPx(),\r
                 Text = "TRACK COUNT",\r
                 HorizontalAlignment = HorizontalAlignment.Begin,\r
                 VerticalAlignment = VerticalAlignment.Center,\r
@@ -72,7 +72,7 @@ namespace MusicPlayer.Views
             playAllWithShuffle = new Button("ShuffleButton")\r
             {\r
                 ThemeChangeSensitive = true,\r
-                Margin = new Extents(32, 40, 0, 0),\r
+                Margin = new Extents(32, 40, 0, 0).DpToPx(),\r
             };\r
             titleView.Add(playAllWithShuffle);\r
             playAllWithShuffle.Clicked += (object sender, ClickedEventArgs e) =>\r
index 400a82793caa62a1f5c6c28af7500f54418ebf6a..4929997004f46df5e7020d6690b9f0dd350bd964 100755 (executable)
@@ -2,7 +2,7 @@
 \r
   <PropertyGroup>\r
     <OutputType>Exe</OutputType>\r
-    <TargetFramework>tizen90</TargetFramework>\r
+    <TargetFramework>tizen10.0</TargetFramework>\r
     <LangVersion>8.0</LangVersion>\r
     <TargetFrameworkIdentifier>Tizen</TargetFrameworkIdentifier>\r
   </PropertyGroup>\r
@@ -22,7 +22,7 @@
     <PackageReference Include="Tizen.NET" Version="10.0.0.16872">\r
       <ExcludeAssets>Runtime</ExcludeAssets>\r
     </PackageReference>\r
-    <PackageReference Include="Tizen.NET.Sdk" Version="1.1.6" />\r
+    <PackageReference Include="Tizen.NET.Sdk" Version="1.1.7" />\r
   </ItemGroup>\r
 \r
 </Project>\r
index d02b5cb060f4ad7104e265acca81557a224a04a2..c10e78b7c9b1e7a79ddce41ba2fa35a2c81fe071 100755 (executable)
@@ -15,13 +15,13 @@ Id="DarkTheme">
 
   <TextFieldStyle x:Key="TextField" TextColor ="#FFFFFF" />
 
-  <c:DefaultTitleItemStyle x:Key="DefaultTitle" Size="1920, 60" BackgroundColor="#0E1017">
+  <c:DefaultTitleItemStyle x:Key="DefaultTitle" Size="1920dp, 60dp" BackgroundColor="#0E1017">
     <c:DefaultTitleItemStyle.Label>
-      <TextLabelStyle PixelSize ="28" TextColor ="#FFFFFF" />
+      <TextLabelStyle PixelSize ="28dp" TextColor ="#FFFFFF" />
     </c:DefaultTitleItemStyle.Label>
   </c:DefaultTitleItemStyle>
 
-  <c:ButtonStyle x:Key="PrevButton" Size="48, 48" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="PrevButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -31,7 +31,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="NextButton" Size="48, 48" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="NextButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -41,7 +41,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="ShuffleButton" Size="48, 48" Position="0, 196" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="ShuffleButton" Size="48dp, 48dp" Position="0dp, 196dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -51,7 +51,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="RepeatButton" Size="48, 48" Position="592, 196" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="RepeatButton" Size="48dp, 48dp" Position="592dp, 196dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -61,7 +61,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="ListButton" Size="48, 48" Position="0, 0" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="ListButton" Size="48dp, 48dp" Position="0dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -71,7 +71,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="PlaylistButton" Size="48, 48" Position="88, 0" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="PlaylistButton" Size="48dp, 48dp" Position="88dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -81,7 +81,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="FavouriteButton" Size="48, 48" Position="176, 0" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="FavouriteButton" Size="48dp, 48dp" Position="176dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -91,7 +91,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="PlayAll" Size="48, 48" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="PlayAll" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -101,7 +101,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="PlaylistAdd" Size="48, 48" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="PlaylistAdd" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -111,7 +111,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:SliderStyle x:Key="Slider" TrackThickness="8" IndicatorType="Image">
+  <c:SliderStyle x:Key="Slider" TrackThickness="8dp" IndicatorType="Image">
     <c:SliderStyle.Track>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>*Resource*/images/empty_track.png</ImageViewStyle.ResourceUrl>
@@ -131,7 +131,7 @@ Id="DarkTheme">
     </c:SliderStyle.Thumb>
   </c:SliderStyle>
 
-  <c:ButtonStyle x:Key="BackButton" Size="48, 48" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="BackButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -141,7 +141,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="MoreButton" Size="48, 48" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="MoreButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -151,7 +151,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="SearchIcon" Size="40, 40" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="SearchIcon" Size="40dp, 40dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>*Resource*/images/dark/search_icon.png</ImageViewStyle.ResourceUrl>
@@ -159,11 +159,11 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <ImageViewStyle x:Key="LeftVolume" Size="48, 48" Position="0, 336">
+  <ImageViewStyle x:Key="LeftVolume" Size="48dp, 48dp" Position="0dp, 336dp">
     <ImageViewStyle.ResourceUrl>*Resource*/images/dark/left_sound_icon.png</ImageViewStyle.ResourceUrl>
   </ImageViewStyle>
 
-  <ImageViewStyle x:Key="RightVolume" Size="48, 48" Position="592, 336">
+  <ImageViewStyle x:Key="RightVolume" Size="48dp, 48dp" Position="592dp, 336dp">
     <ImageViewStyle.ResourceUrl>*Resource*/images/dark/right_sound_icon.png</ImageViewStyle.ResourceUrl>
   </ImageViewStyle>
 
@@ -179,16 +179,16 @@ Id="DarkTheme">
 
   <TextLabelStyle x:Key="TitleText" TextColor="#FFFFFF"/>
 
-  <c:ButtonStyle x:Key="CancelButton" Size="336, 96" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
+  <c:ButtonStyle x:Key="CancelButton" Size="336dp, 96dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
     <c:ButtonStyle.BackgroundImage>*Resource*/images/dark/cancel_button_bg.png</c:ButtonStyle.BackgroundImage>
     <c:ButtonStyle.Text>
-      <TextLabelStyle TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="32" Text="Cancel"/>
+      <TextLabelStyle TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="32dp" Text="Cancel"/>
     </c:ButtonStyle.Text>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="TextButton" Size="260, 64" BackgroundColor="Transparent" >
+  <c:ButtonStyle x:Key="TextButton" Size="260dp, 64dp" BackgroundColor="Transparent" >
     <c:ButtonStyle.Text>
-      <TextLabelStyle FontFamily="BreezeSans" PixelSize="28">
+      <TextLabelStyle FontFamily="BreezeSans" PixelSize="28dp">
         <TextLabelStyle.TextColor>
           <Selector x:TypeArguments="Color" Normal="#FFFFFF" Pressed="#1473E6" Disabled="#B2B7BE" />
         </TextLabelStyle.TextColor>
@@ -196,7 +196,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Text>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="ClearButton" Size="48, 48" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="ClearButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>*Resource*/images/dark/cross_button.png</ImageViewStyle.ResourceUrl>
@@ -204,7 +204,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="CheckBox" Size="36, 36" IsSelected="false" IsEnabled="false" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="CheckBox" Size="36dp, 36dp" IsSelected="false" IsEnabled="false" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -216,14 +216,14 @@ Id="DarkTheme">
 
   <c:TabStyle x:Key="Tabs" BackgroundColor="#000209">
     <c:TabStyle.Text>
-      <TextLabelStyle TextColor="#FFFFFF" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="28"/>
+      <TextLabelStyle TextColor="#FFFFFF" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="28dp"/>
     </c:TabStyle.Text>
     <c:TabStyle.UnderLine>
-      <ViewStyle BackgroundColor="#FFFFFF" SizeHeight="8"/>
+      <ViewStyle BackgroundColor="#FFFFFF" SizeHeight="8dp"/>
     </c:TabStyle.UnderLine>
   </c:TabStyle>
 
-  <c:ButtonStyle x:Key="SearchButton" Size="96, 60" IsSelectable="false" IsEnabled="true" BackgroundImage="*Resource*/images/dark/search_button_bg.png">
+  <c:ButtonStyle x:Key="SearchButton" Size="96dp, 60dp" IsSelectable="false" IsEnabled="true" BackgroundImage="*Resource*/images/dark/search_button_bg.png">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>*Resource*/images/dark/search_icon.png</ImageViewStyle.ResourceUrl>
@@ -233,13 +233,13 @@ Id="DarkTheme">
 
   <c:DefaultLinearItemStyle x:Key="LinearItem" BackgroundColor="Transparent">
     <c:DefaultLinearItemStyle.Label>
-      <TextLabelStyle TextColor="#FFFFFF" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="32"/>
+      <TextLabelStyle TextColor="#FFFFFF" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="32dp"/>
     </c:DefaultLinearItemStyle.Label>
   </c:DefaultLinearItemStyle>
 
   <c:ButtonStyle x:Key="PlaylistCreate" BackgroundColor="Transparent" >
     <c:ButtonStyle.Text>
-      <TextLabelStyle FontFamily="BreezeSans" PixelSize="32" Text="+ Create new playlist">
+      <TextLabelStyle FontFamily="BreezeSans" PixelSize="32dp" Text="+ Create new playlist">
         <TextLabelStyle.TextColor>
           <Selector x:TypeArguments="Color" Normal="#FFFFFF" Pressed="#1473E6" Disabled="#C3CAD2" />
         </TextLabelStyle.TextColor>
@@ -247,7 +247,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Text>
   </c:ButtonStyle>
 
-  <TextLabelStyle x:Key="DetailTitle" Position="0, 16" Size="1664, 108" TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="32"/>
-  <TextLabelStyle x:Key="DetailSubTitle" Position="0, 56" Size="1664, 108" TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="28"/>
+    <TextLabelStyle x:Key="DetailTitle" Position="0dp, 16dp" Size="1664dp, 108dp" TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="32dp"/>
+    <TextLabelStyle x:Key="DetailSubTitle" Position="0dp, 56dp" Size="1664dp, 108dp" TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="28dp"/>
 
 </Theme>
\ No newline at end of file
index 8b11e4a3b27525a0f74166d22a6108154287c94a..893046b222f4f58d3e1a40449f0d2e21b86e3103 100755 (executable)
@@ -15,13 +15,13 @@ Id="LightTheme">
 
   <TextFieldStyle x:Key="TextField" TextColor ="#001447" />
 
-  <c:DefaultTitleItemStyle x:Key="DefaultTitle" Size="1920, 60" BackgroundColor="#EEEFF1">
+  <c:DefaultTitleItemStyle x:Key="DefaultTitle" Size="1920dp, 60dp" BackgroundColor="#EEEFF1">
     <c:DefaultTitleItemStyle.Label>
-      <TextLabelStyle PixelSize ="28" TextColor ="#001447" />
+      <TextLabelStyle PixelSize ="28dp" TextColor ="#001447" />
     </c:DefaultTitleItemStyle.Label>
   </c:DefaultTitleItemStyle>
 
-  <c:ButtonStyle x:Key="PrevButton" Size="48, 48" BackgroundColor="Transparent" >
+  <c:ButtonStyle x:Key="PrevButton" Size="48dp, 48dp" BackgroundColor="Transparent" >
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -31,7 +31,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="NextButton" Size="48, 48" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
+  <c:ButtonStyle x:Key="NextButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -41,7 +41,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="ShuffleButton" Size="48, 48" Position="0, 196" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="ShuffleButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -51,7 +51,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="RepeatButton" Size="48, 48" Position="592, 196" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="RepeatButton" Size="48dp, 48dp" Position="592dp, 196dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -61,7 +61,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="ListButton" Size="48, 48" Position="0, 0" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="ListButton" Size="48dp, 48dp" Position="0dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -71,7 +71,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="PlaylistButton" Size="48, 48" Position="88, 0" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="PlaylistButton" Size="48dp, 48dp" Position="88dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -81,7 +81,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="FavouriteButton" Size="48, 48" Position="176, 0" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="FavouriteButton" Size="48dp, 48dp" Position="176dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -91,7 +91,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="PlayAll" Size="48, 48" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="PlayAll" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -101,7 +101,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="PlaylistAdd" Size="48, 48" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="PlaylistAdd" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -111,7 +111,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:SliderStyle x:Key="Slider" TrackThickness="8" IndicatorType="Image">
+  <c:SliderStyle x:Key="Slider" TrackThickness="8dp" IndicatorType="Image">
     <c:SliderStyle.Track>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>*Resource*/images/empty_track.png</ImageViewStyle.ResourceUrl>
@@ -131,7 +131,7 @@ Id="LightTheme">
     </c:SliderStyle.Thumb>
   </c:SliderStyle>
 
-  <c:ButtonStyle x:Key="BackButton" Size="48, 48" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="BackButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -141,7 +141,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="MoreButton" Size="48, 48" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="MoreButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -151,7 +151,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="SearchIcon" Size="40, 40" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="SearchIcon" Size="40dp, 40dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>*Resource*/images/light/search_icon.png</ImageViewStyle.ResourceUrl>
@@ -159,11 +159,11 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <ImageViewStyle x:Key="LeftVolume" Size="48, 48" Position="0, 336">
+  <ImageViewStyle x:Key="LeftVolume" Size="48dp, 48dp" Position="0dp, 336dp">
     <ImageViewStyle.ResourceUrl>*Resource*/images/light/left_sound_icon.png</ImageViewStyle.ResourceUrl>
   </ImageViewStyle>
 
-  <ImageViewStyle x:Key="RightVolume" Size="48, 48" Position="592, 336">
+  <ImageViewStyle x:Key="RightVolume" Size="48dp, 48dp" Position="592dp, 336dp">
     <ImageViewStyle.ResourceUrl>*Resource*/images/light/right_sound_icon.png</ImageViewStyle.ResourceUrl>
   </ImageViewStyle>
 
@@ -179,16 +179,16 @@ Id="LightTheme">
 
   <TextLabelStyle x:Key="TitleText" TextColor="#000C2B"/>
 
-  <c:ButtonStyle x:Key="CancelButton" Size="336, 96" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
+  <c:ButtonStyle x:Key="CancelButton" Size="336dp, 96dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
     <c:ButtonStyle.BackgroundImage>*Resource*/images/light/cancel_button_bg.png</c:ButtonStyle.BackgroundImage>
     <c:ButtonStyle.Text>
-      <TextLabelStyle TextColor="#000C2B" FontFamily="BreezeSans" PixelSize="32" Text="Cancel"/>
+      <TextLabelStyle TextColor="#000C2B" FontFamily="BreezeSans" PixelSize="32dp" Text="Cancel"/>
     </c:ButtonStyle.Text>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="TextButton" Size="260, 64" BackgroundColor="Transparent" >
+  <c:ButtonStyle x:Key="TextButton" Size="260dp, 64dp" BackgroundColor="Transparent" >
     <c:ButtonStyle.Text>
-      <TextLabelStyle FontFamily="BreezeSans" PixelSize="28">
+      <TextLabelStyle FontFamily="BreezeSans" PixelSize="28dp">
         <TextLabelStyle.TextColor>
           <Selector x:TypeArguments="Color" Normal="#000C2B" Pressed="#1473E6" Disabled="#B2B7BE" />
         </TextLabelStyle.TextColor>
@@ -196,7 +196,7 @@ Id="LightTheme">
     </c:ButtonStyle.Text>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="ClearButton" Size="48, 48" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="ClearButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>*Resource*/images/light/cross_button.png</ImageViewStyle.ResourceUrl>
@@ -204,7 +204,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="CheckBox" Size="36, 36" IsSelected="false" IsEnabled="false" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="CheckBox" Size="36dp, 36dp" IsSelected="false" IsEnabled="false" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -216,14 +216,14 @@ Id="LightTheme">
 
   <c:TabStyle x:Key="Tabs" BackgroundColor="White">
     <c:TabStyle.Text>
-      <TextLabelStyle TextColor="#000C2B" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="28"/>
+      <TextLabelStyle TextColor="#000C2B" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="28dp"/>
     </c:TabStyle.Text>
     <c:TabStyle.UnderLine>
-      <ViewStyle BackgroundColor="#0A0E4A" SizeHeight="8"/>
+      <ViewStyle BackgroundColor="#0A0E4A" SizeHeight="8dp"/>
     </c:TabStyle.UnderLine>
   </c:TabStyle>
 
-  <c:ButtonStyle x:Key="SearchButton" Size="96, 60" IsSelectable="false" IsEnabled="true" BackgroundImage="*Resource*/images/light/search_button_bg.png">
+  <c:ButtonStyle x:Key="SearchButton" Size="96dp, 60dp" IsSelectable="false" IsEnabled="true" BackgroundImage="*Resource*/images/light/search_button_bg.png">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>*Resource*/images/light/search_icon.png</ImageViewStyle.ResourceUrl>
@@ -233,13 +233,13 @@ Id="LightTheme">
 
   <c:DefaultLinearItemStyle x:Key="LinearItem" BackgroundColor="Transparent">
     <c:DefaultLinearItemStyle.Label>
-      <TextLabelStyle TextColor="#001447" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="32"/>
+      <TextLabelStyle TextColor="#001447" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="32dp"/>
     </c:DefaultLinearItemStyle.Label>
   </c:DefaultLinearItemStyle>
 
   <c:ButtonStyle x:Key="PlaylistCreate" BackgroundColor="Transparent" >
     <c:ButtonStyle.Text>
-      <TextLabelStyle FontFamily="BreezeSans" PixelSize="32" Text="+ Create new playlist">
+      <TextLabelStyle FontFamily="BreezeSans" PixelSize="32dp" Text="+ Create new playlist">
         <TextLabelStyle.TextColor>
           <Selector x:TypeArguments="Color" Normal="#001447" Pressed="#1473E6" Disabled="#C3CAD2" />
         </TextLabelStyle.TextColor>
@@ -247,7 +247,7 @@ Id="LightTheme">
     </c:ButtonStyle.Text>
   </c:ButtonStyle>
 
-  <TextLabelStyle x:Key="DetailTitle" Position="0, 16" Size="1664, 108" TextColor="#001447" FontFamily="BreezeSans" PixelSize="32"/>
-  <TextLabelStyle x:Key="DetailSubTitle" Position="0, 56" Size="1664, 108" TextColor="#001447" FontFamily="BreezeSans" PixelSize="28"/>
+  <TextLabelStyle x:Key="DetailTitle" Position="0dp, 16dp" Size="1664dp, 108dp" TextColor="#001447" FontFamily="BreezeSans" PixelSize="32dp"/>
+  <TextLabelStyle x:Key="DetailSubTitle" Position="0dp, 56dp" Size="1664dp, 108dp" TextColor="#001447" FontFamily="BreezeSans" PixelSize="28dp"/>
 
 </Theme>
\ No newline at end of file
index 592e63f3ca7c1c6887ec61026c12b5b1ff493345..d9c1e48a1133868244f6af2393df799034c2544d 100755 (executable)
Binary files a/packaging/org.tizen.MusicPlayer-1.0.0.tpk and b/packaging/org.tizen.MusicPlayer-1.0.0.tpk differ