music-player/.vs/
music-player/bin/
music-player/obj/
+music-player/music-player.csproj.user
window.BackgroundColor = Color.White;
Size2D size = window.Size;
Tizen.Log.Info(AppConstants.LogTag, "Window Size: " + size.Width + "x" + size.Height);
+ Tizen.Log.Info(AppConstants.LogTag, "Scaled DPI: " + GraphicsTypeManager.Instance.ScaledDpi + ", Scale Factor" + GraphicsTypeManager.Instance.ScalingFactor);
ViewManager manager = new ViewManager(Window.Instance);
}
{\r
OnInitialize();\r
WidthSpecification = LayoutParamPolicies.MatchParent;\r
- HeightSpecification = 108.DpToPx();\r
+ HeightSpecification = 108.SpToPx();\r
\r
Layout = new RelativeLayout()\r
{\r
- Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),\r
+ Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),\r
};\r
BackgroundColor = Color.Transparent;\r
\r
{\r
textView = new View()\r
{\r
- HeightSpecification = 76.DpToPx(),\r
- WidthSpecification = (DeviceInfo.IsPortrait ? 748 : 564).DpToPx(),\r
+ HeightSpecification = 76.SpToPx(),\r
+ WidthSpecification = (DeviceInfo.IsPortrait ? 748 : 564).SpToPx(),\r
BackgroundColor = Color.Transparent,\r
Layout = new LinearLayout()\r
{\r
titleLabel = new TextLabel()\r
{\r
WidthSpecification = LayoutParamPolicies.MatchParent,\r
- HeightSpecification = 40.DpToPx(),\r
- PixelSize = 32.DpToPx(),\r
+ HeightSpecification = 40.SpToPx(),\r
+ PixelSize = 32.SpToPx(),\r
FontFamily = "BreezeSans",\r
HorizontalAlignment = HorizontalAlignment.Begin,\r
VerticalAlignment = VerticalAlignment.Center,\r
subtitleLabel = new TextLabel()\r
{\r
WidthSpecification = LayoutParamPolicies.MatchParent,\r
- HeightSpecification = 36.DpToPx(),\r
- PixelSize = 28.DpToPx(),\r
+ HeightSpecification = 36.SpToPx(),\r
+ PixelSize = 28.SpToPx(),\r
FontFamily = "BreezeSans",\r
HorizontalAlignment = HorizontalAlignment.Begin,\r
VerticalAlignment = VerticalAlignment.Center,\r
{\r
additionalLabel = new TextLabel()\r
{\r
- WidthSpecification = 108.DpToPx(),\r
- HeightSpecification = 36.DpToPx(),\r
- PixelSize = 28.DpToPx(),\r
+ WidthSpecification = 108.SpToPx(),\r
+ HeightSpecification = 36.SpToPx(),\r
+ PixelSize = 28.SpToPx(),\r
FontFamily = "BreezeSans",\r
VerticalAlignment = VerticalAlignment.Center,\r
HorizontalAlignment = HorizontalAlignment.End,\r
FontStyle = UIFontStyles.AllNormal,\r
- Margin = new Extents(32, 0, 0, 0).DpToPx(),\r
+ Margin = new Extents(32, 0, 0, 0).SpToPx(),\r
Ellipsis = true,\r
};\r
Add(additionalLabel);\r
itemSeperator = new View()\r
{\r
WidthSpecification = LayoutParamPolicies.MatchParent,\r
- HeightSpecification = 2.DpToPx(),\r
+ HeightSpecification = 2.SpToPx(),\r
BackgroundColor = UIColors.ItemSeperator,\r
};\r
Add(itemSeperator);\r
albumArtIcon = new ImageView()\r
{\r
BackgroundColor = UIColors.HEXEEEFF1,\r
- Size2D = new Size2D(AlbumArtSize, AlbumArtSize).DpToPx(),\r
+ Size2D = new Size2D(AlbumArtSize, AlbumArtSize).SpToPx(),\r
};\r
albumArtIcon.BindingContext = viewModel;\r
albumArtIcon.SetBinding(ImageView.ResourceUrlProperty, "AlbumArtPath");\r
{\r
StyleName = "LabelText",\r
ThemeChangeSensitive = true,\r
- WidthSpecification = (DeviceInfo.IsPortrait ? 508 : 640).DpToPx(),\r
- HeightSpecification = 48.DpToPx(),\r
- PixelSize = 36.DpToPx(),\r
- Margin = new Extents(0, 0, 32, 14).DpToPx(),\r
+ WidthSpecification = (DeviceInfo.IsPortrait ? 508 : 640).SpToPx(),\r
+ HeightSpecification = 48.SpToPx(),\r
+ PixelSize = 36.SpToPx(),\r
+ Margin = new Extents(0, 0, 32, 14).SpToPx(),\r
FontFamily = "BreezeSans",\r
HorizontalAlignment = HorizontalAlignment.Center,\r
VerticalAlignment = VerticalAlignment.Center,\r
{\r
StyleName = "LabelText",\r
ThemeChangeSensitive = true,\r
- WidthSpecification = (DeviceInfo.IsPortrait ? 508 : 640).DpToPx(),\r
- HeightSpecification = 36.DpToPx(),\r
- PixelSize = 28.DpToPx(),\r
+ WidthSpecification = (DeviceInfo.IsPortrait ? 508 : 640).SpToPx(),\r
+ HeightSpecification = 36.SpToPx(),\r
+ PixelSize = 28.SpToPx(),\r
FontFamily = "BreezeSans",\r
HorizontalAlignment = HorizontalAlignment.Center,\r
VerticalAlignment = VerticalAlignment.Center,\r
{\r
StyleName = "LabelText",\r
ThemeChangeSensitive = true,\r
- PixelSize = 28.DpToPx(),\r
+ PixelSize = 28.SpToPx(),\r
Text = "ALBUM COUNT",\r
HorizontalAlignment = HorizontalAlignment.Begin,\r
VerticalAlignment = VerticalAlignment.Center,\r
{
OnInitialize();
WidthSpecification = LayoutParamPolicies.MatchParent;
- HeightSpecification = 108.DpToPx();
+ HeightSpecification = 108.SpToPx();
Layout = new RelativeLayout()
{
- Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
};
BackgroundColor = Color.Transparent;
{
ImageView icon = new ImageView()
{
- WidthSpecification = IconSize.DpToPx(),
- HeightSpecification = IconSize.DpToPx(),
+ WidthSpecification = IconSize.SpToPx(),
+ HeightSpecification = IconSize.SpToPx(),
};
Add(icon);
RelativeLayout.SetVerticalAlignment(icon, RelativeLayout.Alignment.Center);
View itemSeperator = new View()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 2.DpToPx(),
+ HeightSpecification = 2.SpToPx(),
BackgroundColor = UIColors.ItemSeperator,
};
Add(itemSeperator);
TextLabel titleLabel = new TextLabel()
{
StyleName = "ItemLabel",
- HeightSpecification = 40.DpToPx(),
- PixelSize = 32.DpToPx(),
+ HeightSpecification = 40.SpToPx(),
+ PixelSize = 32.SpToPx(),
FontFamily = "BreezeSans",
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
FontStyle = UIFontStyles.NormalLight,
- Margin = new Extents(32, 0, 0, 0).DpToPx(),
+ Margin = new Extents(32, 0, 0, 0).SpToPx(),
Ellipsis = true,
};
Add(titleLabel);
{
OnInitialize();
WidthSpecification = LayoutParamPolicies.MatchParent;
- HeightSpecification = 108.DpToPx();
+ HeightSpecification = 108.SpToPx();
Layout = new RelativeLayout()
{
- Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
};
BackgroundColor = Color.Transparent;
itemSeperator = new View()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 2.DpToPx(),
+ HeightSpecification = 2.SpToPx(),
BackgroundColor = UIColors.ItemSeperator,
};
Add(itemSeperator);
{
titleLabel = new TextLabel()
{
- HeightSpecification = 40.DpToPx(),
- PixelSize = 32.DpToPx(),
+ HeightSpecification = 40.SpToPx(),
+ PixelSize = 32.SpToPx(),
FontFamily = "BreezeSans",
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
{
extraLabel = new TextLabel()
{
- WidthSpecification = 160.DpToPx(),
- HeightSpecification = 36.DpToPx(),
- PixelSize = 28.DpToPx(),
+ WidthSpecification = 160.SpToPx(),
+ HeightSpecification = 36.SpToPx(),
+ PixelSize = 28.SpToPx(),
FontFamily = "BreezeSans",
VerticalAlignment = VerticalAlignment.Center,
HorizontalAlignment = HorizontalAlignment.End,
FontStyle = UIFontStyles.AllNormal,
- Margin = new Extents(32, 0, 0, 0).DpToPx(),
+ Margin = new Extents(32, 0, 0, 0).SpToPx(),
Ellipsis = true,
};
Add(extraLabel);
{
StyleName = "LabelText",
ThemeChangeSensitive = true,
- PixelSize = 28.DpToPx(),
+ PixelSize = 28.SpToPx(),
Text = "ARTIST COUNT",
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
Layout = new LinearLayout()
{
LinearOrientation = LinearLayout.Orientation.Vertical,
- Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
},
};
base.Add(contentViewContainer);
{
ThemeChangeSensitive = true,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 60.DpToPx(),
+ HeightSpecification = 60.SpToPx(),
Layout = new RelativeLayout()
{
- Padding = new Extents(0, 0, 6, 6).DpToPx(),
+ Padding = new Extents(0, 0, 6, 6).SpToPx(),
},
};
contentViewContainer.Add(titleView);
Direction = FlexLayout.FlexDirection.Column,
ItemsAlignment = FlexLayout.AlignmentType.Center,
Justification = FlexLayout.FlexJustification.FlexStart,
- Padding = (DeviceInfo.IsPortrait ? new Extents(0, 0, 343, 0) : new Extents(0, 0, 24, 0)).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(0, 0, 343, 0) : new Extents(0, 0, 24, 0)).SpToPx(),
}
};
noItemsAnimation = new LottieAnimationView()
{
URL = Resources.GetLottiePath() + "no_items_folder.json",
- Size2D = new Size2D(700, 560).DpToPx(),
+ Size2D = new Size2D(700, 560).SpToPx(),
LoopCount = -1,
BackgroundColor = Color.Transparent,
};
TextLabel textLabel = new TextLabel()
{
StyleName = "TitleText",
- Size2D = new Size2D(234, 36).DpToPx(),
+ Size2D = new Size2D(234, 36).SpToPx(),
Text = "No items in folder",
- PixelSize = 28.DpToPx(),
+ PixelSize = 28.SpToPx(),
FontFamily = "BreezeSans",
HorizontalAlignment = HorizontalAlignment.Center,
- Margin = new Extents(0, 0, 8, 0).DpToPx(),
+ Margin = new Extents(0, 0, 8, 0).SpToPx(),
};
noItemView.Add(textLabel);
}
public event EventHandler<OperationViewAddEventArgs> SubContentOperationViewAdd;
- public BaseSubContentView():base()
+ public BaseSubContentView() : base()
{
WidthResizePolicy = ResizePolicyType.FillToParent;
HeightResizePolicy = ResizePolicyType.FillToParent;
{
LinearOrientation = LinearLayout.Orientation.Vertical,
VerticalAlignment = VerticalAlignment.Top,
- Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx()
+ Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx()
},
BackgroundColor = Color.Transparent,
WidthResizePolicy = ResizePolicyType.FillToParent,
topView = new View()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 60.DpToPx(),
+ HeightSpecification = 60.SpToPx(),
Layout = new RelativeLayout()
{
- Padding = new Extents(0, 0, 6, 6).DpToPx(),
+ Padding = new Extents(0, 0, 6, 6).SpToPx(),
},
};
listContainer.Add(topView);
{
StyleName = "LabelText",
ThemeChangeSensitive = true,
- PixelSize = 28.DpToPx(),
+ PixelSize = 28.SpToPx(),
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
FontFamily = "BreezeSans",
playAllWithShuffle = new Button("ShuffleButton")
{
ThemeChangeSensitive = true,
- Margin = new Extents(32, 40, 0, 0).DpToPx(),
+ Margin = new Extents(32, 40, 0, 0).SpToPx(),
};
topView.Add(playAllWithShuffle);
playAllWithShuffle.Clicked += (object sender, ClickedEventArgs e) =>
Direction = FlexLayout.FlexDirection.Column,
ItemsAlignment = FlexLayout.AlignmentType.Center,
Justification = FlexLayout.FlexJustification.FlexStart,
- Padding = (DeviceInfo.IsPortrait ? new Extents(0, 0, 343, 0) : new Extents(0, 0, 24, 0)).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(0, 0, 343, 0) : new Extents(0, 0, 24, 0)).SpToPx(),
}
};
noItemsAnimation = new LottieAnimationView()
{
URL = Resources.GetLottiePath() + "no_items_folder.json",
- Size2D = new Size2D(700, 560).DpToPx(),
+ Size2D = new Size2D(700, 560).SpToPx(),
LoopCount = -1,
BackgroundColor = Color.Transparent,
};
TextLabel textLabel = new TextLabel()
{
StyleName = "TitleText",
- Size2D = new Size2D(234, 36).DpToPx(),
+ Size2D = new Size2D(234, 36).SpToPx(),
Text = "No items in folder",
- PixelSize = 28.DpToPx(),
+ PixelSize = 28.SpToPx(),
FontFamily = "BreezeSans",
HorizontalAlignment = HorizontalAlignment.Center,
- Margin = new Extents(0, 0, 8, 0).DpToPx(),
+ Margin = new Extents(0, 0, 8, 0).SpToPx(),
};
noItemView.Add(textLabel);
listContainer.Add(noItemView);
{
ThemeChangeSensitive = true,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 120.DpToPx(),
+ HeightSpecification = 120.SpToPx(),
Layout = new RelativeLayout()
{
- Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 30, 30) : new Extents(64, 64, 30, 30)).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 30, 30) : new Extents(64, 64, 30, 30)).SpToPx(),
},
};
base.Add(topView);
StyleName = "PageLabel",
ThemeChangeSensitive = true,
Text = "Music",
- PixelSize = 40.DpToPx(),
+ PixelSize = 40.SpToPx(),
FontFamily = "BreezeSans",
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
tabs = new Tab("Tabs")
{
ThemeChangeSensitive = true,
- Size2D = new Size2D(Window.Instance.Size.Width, 84).DpToPx(),
+ Size2D = new Size2D(Window.Instance.Size.Width, 84).SpToPx(),
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 84.DpToPx(),
+ HeightSpecification = 84.SpToPx(),
};
base.Add(tabs);
for(int i = 0; i<4; ++i)
backButton = new Button("BackButton")
{
ThemeChangeSensitive = true,
- Size2D = new Size2D(48, 48).DpToPx(),
- Margin = new Extents(0, 24, 6, 6).DpToPx(),
+ Size2D = new Size2D(48, 48).SpToPx(),
+ Margin = new Extents(0, 24, 6, 6).SpToPx(),
};
backButton.Clicked += OnBackButtonClicked;
moreButton = new Button("MoreButton")
{
ThemeChangeSensitive = true,
- Margin = new Extents(32, 0, 6, 6).DpToPx(),
+ Margin = new Extents(32, 0, 6, 6).SpToPx(),
};
topView.Add(moreButton);
RelativeLayout.SetLeftRelativeOffset(moreButton, 1.0f);
searchButton = new Button("SearchButton")
{
ThemeChangeSensitive = true,
- Margin = new Extents(24, 0, 0, 0).DpToPx(),
+ Margin = new Extents(24, 0, 0, 0).SpToPx(),
};
topView.Add(searchButton);
RelativeLayout.SetRightTarget(searchButton, moreButton);
OnInitialize();\r
AnimationRequired = animationRequired;\r
WidthSpecification = LayoutParamPolicies.MatchParent;\r
- HeightSpecification = height.DpToPx();\r
+ HeightSpecification = height.SpToPx();\r
BackgroundColor = Color.Transparent;\r
Layout = new RelativeLayout()\r
{\r
- Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),\r
+ Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),\r
};\r
\r
icon = new ImageView()\r
{\r
- WidthSpecification = IconSize.DpToPx(),\r
- HeightSpecification = IconSize.DpToPx(),\r
+ WidthSpecification = IconSize.SpToPx(),\r
+ HeightSpecification = IconSize.SpToPx(),\r
};\r
Add(icon);\r
RelativeLayout.SetVerticalAlignment(icon, RelativeLayout.Alignment.Center);\r
textView = new View()\r
{\r
BackgroundColor = Color.Transparent,\r
- HeightSpecification = 76.DpToPx(),\r
+ HeightSpecification = 76.SpToPx(),\r
Layout = new LinearLayout()\r
{\r
LinearOrientation = LinearLayout.Orientation.Vertical,\r
HorizontalAlignment = HorizontalAlignment.Begin,\r
VerticalAlignment = VerticalAlignment.Top,\r
- Margin = new Extents(32, 0, 0, 0).DpToPx(),\r
+ Margin = new Extents(32, 0, 0, 0).SpToPx(),\r
}\r
};\r
Add(textView);\r
titleLabel = new TextLabel()\r
{\r
WidthSpecification = LayoutParamPolicies.MatchParent,\r
- HeightSpecification = 40.DpToPx(),\r
- PixelSize = 32.DpToPx(),\r
+ HeightSpecification = 40.SpToPx(),\r
+ PixelSize = 32.SpToPx(),\r
FontFamily = "BreezeSans",\r
HorizontalAlignment = HorizontalAlignment.Begin,\r
VerticalAlignment = VerticalAlignment.Center,\r
subtitleLabel = new TextLabel()\r
{\r
WidthSpecification = LayoutParamPolicies.MatchParent,\r
- HeightSpecification = 36.DpToPx(),\r
- PixelSize = 28.DpToPx(),\r
+ HeightSpecification = 36.SpToPx(),\r
+ PixelSize = 28.SpToPx(),\r
FontFamily = "BreezeSans",\r
HorizontalAlignment = HorizontalAlignment.Begin,\r
VerticalAlignment = VerticalAlignment.Center,\r
itemSeperator = new View()\r
{\r
WidthSpecification = LayoutParamPolicies.MatchParent,\r
- HeightSpecification = SeperatorHeight.DpToPx(),\r
+ HeightSpecification = SeperatorHeight.SpToPx(),\r
BackgroundColor = UIColors.ItemSeperator,\r
};\r
Add(itemSeperator);\r
Direction = FlexLayout.FlexDirection.Column,
Alignment = FlexLayout.AlignmentType.Center,
Justification = FlexLayout.FlexJustification.Center,
- Margin = new Extents(24, 24, 0, 46).DpToPx(),
+ Margin = new Extents(24, 24, 0, 46).SpToPx(),
};
isAnimating = false;
AddThumbnail();
{
Direction = FlexLayout.FlexDirection.Column,
ItemsAlignment = FlexLayout.AlignmentType.Center,
- Padding = new Extents(40, 40, 40, 40).DpToPx(),
+ Padding = new Extents(40, 40, 40, 40).SpToPx(),
},
};
FlexLayout.SetFlexPositionType(lyricsScrollBaseView, FlexLayout.PositionType.Absolute);
StyleName = "MiniPlayer";\r
ThemeChangeSensitive = true;\r
WidthSpecification = LayoutParamPolicies.MatchParent;\r
- HeightSpecification = (DeviceInfo.IsPortrait ? 170 : 124).DpToPx();\r
+ HeightSpecification = (DeviceInfo.IsPortrait ? 170 : 124).SpToPx();\r
\r
Layout = new LinearLayout()\r
{\r
baseView = new View()\r
{\r
WidthSpecification = LayoutParamPolicies.MatchParent,\r
- HeightSpecification = 123.DpToPx(),\r
+ HeightSpecification = 123.SpToPx(),\r
BackgroundColor = Color.Transparent,\r
Layout = new LinearLayout()\r
{\r
LinearOrientation = LinearLayout.Orientation.Horizontal,\r
VerticalAlignment = VerticalAlignment.Center,\r
},\r
- Padding = new Extents(64, 64, 24, 19).DpToPx(),\r
+ Padding = new Extents(64, 64, 24, 19).SpToPx(),\r
};\r
if(DeviceInfo.IsPortrait)\r
{\r
- baseView.Padding = new Extents(33, 33, 24, 8).DpToPx();\r
- baseView.HeightSpecification = 108.DpToPx();\r
+ baseView.Padding = new Extents(33, 33, 24, 8).SpToPx();\r
+ baseView.HeightSpecification = 108.SpToPx();\r
}\r
Add(baseView);\r
AddTrackDetails();\r
View separator = new View()\r
{\r
WidthSpecification = LayoutParamPolicies.MatchParent,\r
- HeightSpecification = 1.DpToPx(),\r
+ HeightSpecification = 1.SpToPx(),\r
StyleName = "InputLine",\r
};\r
Add(separator);\r
},\r
BackgroundColor = Color.Transparent,\r
};\r
- trackInfo.WidthSpecification = (DeviceInfo.IsPortrait ? 536 : 622).DpToPx();\r
- trackInfo.HeightSpecification = 76.DpToPx();\r
+ trackInfo.WidthSpecification = (DeviceInfo.IsPortrait ? 536 : 622).SpToPx();\r
+ trackInfo.HeightSpecification = 76.SpToPx();\r
baseView.Add(trackInfo);\r
AddThumbnail();\r
AddTrackTextLabels();\r
{\r
LinearOrientation = LinearLayout.Orientation.Vertical,\r
},\r
- HeightSpecification = 76.DpToPx(),\r
+ HeightSpecification = 76.SpToPx(),\r
};\r
if(DeviceInfo.IsPortrait)\r
{\r
- trackTextView.WidthSpecification = 436.DpToPx();\r
+ trackTextView.WidthSpecification = 436.SpToPx();\r
trackTextView.Margin = new Extents(24, 0, 0, 0);\r
}\r
else\r
{\r
- trackTextView.WidthSpecification = 516.DpToPx();\r
+ trackTextView.WidthSpecification = 516.SpToPx();\r
trackTextView.Margin = new Extents(30, 0, 0, 0);\r
}\r
trackInfo.Add(trackTextView);\r
thumbnail = new ImageView()\r
{\r
BackgroundColor = UIColors.HEXEEEFF1,\r
- Size2D = new Size2D(76, 76).DpToPx(),\r
+ Size2D = new Size2D(76, 76).SpToPx(),\r
};\r
thumbnail.SetBinding(ImageView.ResourceUrlProperty, "ThumbnailPath");\r
thumbnail.TouchEvent += (object source, TouchEventArgs e) =>\r
StyleName = "TitleText",\r
ThemeChangeSensitive = true,\r
WidthSpecification = LayoutParamPolicies.MatchParent,\r
- HeightSpecification = 48.DpToPx(),\r
- PixelSize = 36.DpToPx(),\r
+ HeightSpecification = 48.SpToPx(),\r
+ PixelSize = 36.SpToPx(),\r
FontFamily = "BreezeSans",\r
HorizontalAlignment = HorizontalAlignment.Begin,\r
VerticalAlignment = VerticalAlignment.Center,\r
StyleName = "TitleText",\r
ThemeChangeSensitive = true,\r
WidthSpecification = LayoutParamPolicies.MatchParent,\r
- HeightSpecification = 28.DpToPx(),\r
- PixelSize = 22.DpToPx(),\r
+ HeightSpecification = 28.SpToPx(),\r
+ PixelSize = 22.SpToPx(),\r
FontFamily = "BreezeSans",\r
HorizontalAlignment = HorizontalAlignment.Begin,\r
VerticalAlignment = VerticalAlignment.Center,\r
{\r
controlsView = new View()\r
{\r
- WidthSpecification = 304.DpToPx(),\r
+ WidthSpecification = 304.SpToPx(),\r
Layout = new LinearLayout()\r
{\r
LinearOrientation = LinearLayout.Orientation.Horizontal,\r
HorizontalAlignment = HorizontalAlignment.Begin,\r
VerticalAlignment = VerticalAlignment.Center,\r
- CellPadding = new Size2D(80, 0).DpToPx(),\r
+ CellPadding = new Size2D(80, 0).SpToPx(),\r
},\r
- Margin = new Extents(120, 120, 0, 0).DpToPx(),\r
+ Margin = new Extents(120, 120, 0, 0).SpToPx(),\r
BackgroundColor = Color.Transparent,\r
};\r
baseView.Add(controlsView);\r
{\r
playButton = new MultiStateButton()\r
{\r
- Size2D = new Size2D(48, 48).DpToPx(),\r
+ Size2D = new Size2D(48, 48).SpToPx(),\r
BackgroundColor = Color.Transparent,\r
IconResources = new Dictionary<ThemeType, Dictionary<string, StringSelector>>()\r
{\r
{\r
LinearOrientation = LinearLayout.Orientation.Horizontal,\r
VerticalAlignment = VerticalAlignment.Center,\r
- Padding = new Extents(33, 33, 0, 8).DpToPx(),\r
+ Padding = new Extents(33, 33, 0, 8).SpToPx(),\r
};\r
- sliderView.SizeHeight = 61.DpToPx();\r
+ sliderView.SizeHeight = 61.SpToPx();\r
base.Add(sliderView);\r
- currentTime.WidthSpecification = 72.DpToPx();\r
+ currentTime.WidthSpecification = 72.SpToPx();\r
sliderView.Add(currentTime);\r
- playbackSlider.WidthSpecification = 872.DpToPx();\r
+ playbackSlider.WidthSpecification = 872.SpToPx();\r
sliderView.Add(playbackSlider);\r
- totalTime.WidthSpecification = 72.DpToPx();\r
+ totalTime.WidthSpecification = 72.SpToPx();\r
sliderView.Add(totalTime);\r
}\r
else\r
{\r
- sliderView.SizeHeight = 24.DpToPx();\r
+ sliderView.SizeHeight = 24.SpToPx();\r
baseView.Add(playbackSlider);\r
sliderView.Layout = new RelativeLayout();\r
- sliderView.Position2D = new Position2D(0, SliderHeight).DpToPx();\r
+ sliderView.Position2D = new Position2D(0, SliderHeight).SpToPx();\r
playbackSlider.Add(sliderView);\r
sliderView.Add(currentTime);\r
RelativeLayout.SetHorizontalAlignment(currentTime, RelativeLayout.Alignment.Start);\r
ThemeChangeSensitive = true,\r
MinValue = 0.0f,\r
MaxValue = 1.0f,\r
- WidthSpecification = 626.DpToPx(),\r
- HeightSpecification = SliderHeight.DpToPx(),\r
- ThumbSize = new Tizen.NUI.Size(30, 30).DpToPx(),\r
+ WidthSpecification = 626.SpToPx(),\r
+ HeightSpecification = SliderHeight.SpToPx(),\r
+ ThumbSize = new Tizen.NUI.Size(30, 30).SpToPx(),\r
Direction = Slider.DirectionType.Horizontal,\r
};\r
playbackSlider.SetBinding(Slider.CurrentValueProperty, "ElapsedTime");\r
{\r
StyleName = "TitleText",\r
ThemeChangeSensitive = true,\r
- Size2D = new Size2D(180, 24).DpToPx(),\r
- PixelSize = 18.DpToPx(),\r
+ Size2D = new Size2D(180, 24).SpToPx(),\r
+ PixelSize = 18.SpToPx(),\r
FontFamily = "BreezeSans",\r
Text = "00::00:00",\r
HorizontalAlignment = HorizontalAlignment.Begin,\r
{\r
StyleName = "TitleText",\r
ThemeChangeSensitive = true,\r
- Size2D = new Size2D(180, 24).DpToPx(),\r
- PixelSize = 18.DpToPx(),\r
+ Size2D = new Size2D(180, 24).SpToPx(),\r
+ PixelSize = 18.SpToPx(),\r
FontFamily = "BreezeSans",\r
HorizontalAlignment = HorizontalAlignment.End,\r
Text = "59:59:59",\r
Direction = FlexLayout.FlexDirection.Column,
Justification = FlexLayout.FlexJustification.FlexStart,
ItemsAlignment = FlexLayout.AlignmentType.Center,
- Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
},
};
Add(playerContentView);
if (viewState == PlayerViewState.AlbumArt)
{
leftView.Add(topRightView);
- topRightView.HeightSpecification = 48.DpToPx();
+ topRightView.HeightSpecification = 48.SpToPx();
}
}
else
{
- leftView.Layout.Padding = (new Extents(0, 64, 0, 0)).DpToPx();
+ leftView.Layout.Padding = (new Extents(0, 64, 0, 0)).SpToPx();
}
AddLyricsView();
}
if (DeviceInfo.IsPortrait == false || viewState == PlayerViewState.TrackList)
{
rightView.Add(topRightView);
- topRightView.HeightSpecification = 200.DpToPx();
+ topRightView.HeightSpecification = 200.SpToPx();
AddThumbnail();
}
AddControlView();
{
Layout = new RelativeLayout(),
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 120.DpToPx(),
+ HeightSpecification = 120.SpToPx(),
MaximumSize = new Size2D(Window.Instance.WindowSize.Width, (int)(Window.Instance.WindowSize.Height*0.111f))
};
playerContentView.Add(topView);
StyleName = "LabelText",
ThemeChangeSensitive = true,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 48.DpToPx(),
- PixelSize = 40.DpToPx(),
+ HeightSpecification = 48.SpToPx(),
+ PixelSize = 40.SpToPx(),
FontFamily = "BreezeSans",
FontStyle = UIFontStyles.AllNormal,
Text = "Delete",
StyleName = "LabelText",
ThemeChangeSensitive = true,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 40.DpToPx(),
- PixelSize = 32.DpToPx(),
+ HeightSpecification = 40.SpToPx(),
+ PixelSize = 32.SpToPx(),
FontFamily = "BreezeSans",
FontStyle = UIFontStyles.NormalLight,
Text = "This track will be deleted.",
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
- Margin = new Extents(0, 0, 40, 64).DpToPx(),
+ Margin = new Extents(0, 0, 40, 64).SpToPx(),
};
return titleLabel;
}
View buttonArea = new View()
{
BackgroundColor = Color.Transparent,
- HeightSpecification = 96.DpToPx(),
+ HeightSpecification = 96.SpToPx(),
WidthSpecification = LayoutParamPolicies.MatchParent,
Layout = new RelativeLayout()
};
Button deleteButton = new Button()
{
- WidthSpecification = 336.DpToPx(),
- HeightSpecification = 96.DpToPx(),
+ WidthSpecification = 336.SpToPx(),
+ HeightSpecification = 96.SpToPx(),
Text = "Delete",
};
buttonArea.Add(deleteButton);
{
ThemeChangeSensitive = true,
StyleName = "Dialogs",
- WidthSpecification = (DeviceInfo.IsPortrait ? 952 : 1184).DpToPx(),
- HeightSpecification = 368.DpToPx(),
+ WidthSpecification = (DeviceInfo.IsPortrait ? 952 : 1184).SpToPx(),
+ HeightSpecification = 368.SpToPx(),
Layout = new LinearLayout()
{
- Padding = new Extents(80, 80, 40, 40).DpToPx(),
- Margin = new Extents(32, 32, 0, 0).DpToPx(),
+ Padding = new Extents(80, 80, 40, 40).SpToPx(),
+ Margin = new Extents(32, 32, 0, 0).SpToPx(),
LinearOrientation = LinearLayout.Orientation.Vertical,
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Top,
{
controlsView = new View()
{
- WidthSpecification = 640.DpToPx(),
- HeightSpecification = (DeviceInfo.IsPortrait ? ControlViewHeightPortrait : ControlViewHeightLandscape).DpToPx(),
+ WidthSpecification = 640.SpToPx(),
+ HeightSpecification = (DeviceInfo.IsPortrait ? ControlViewHeightPortrait : ControlViewHeightLandscape).SpToPx(),
Layout = new LinearLayout()
{
LinearOrientation = LinearLayout.Orientation.Vertical,
- Margin = (new Extents(0, 0, 115, 0)).DpToPx(),
+ Margin = (new Extents(0, 0, 115, 0)).SpToPx(),
}
};
rightView.Add(controlsView);
StyleName = "LabelText",
ThemeChangeSensitive = true,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = TitleLabelHeight.DpToPx(),
- PixelSize = 36.DpToPx(),
+ HeightSpecification = TitleLabelHeight.SpToPx(),
+ PixelSize = 36.SpToPx(),
FontFamily = "BreezeSans",
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
StyleName = "LabelText",
ThemeChangeSensitive = true,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = ArtistLabelHeight.DpToPx(),
- PixelSize = 28.DpToPx(),
+ HeightSpecification = ArtistLabelHeight.SpToPx(),
+ PixelSize = 28.SpToPx(),
FontFamily = "BreezeSans",
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
{
shuffleButton = new MultiStateButton()
{
- Size2D = new Size2D(IconSize, IconSize).DpToPx(),
- Margin = new Extents(0, 40, 0, 0).DpToPx(),
+ Size2D = new Size2D(IconSize, IconSize).SpToPx(),
+ Margin = new Extents(0, 40, 0, 0).SpToPx(),
IconResources = new Dictionary<ThemeType, Dictionary<string, StringSelector>>()
{
{
{
playButton = new MultiStateButton()
{
- Size2D = new Size2D(IconSize, IconSize).DpToPx(),
+ Size2D = new Size2D(IconSize, IconSize).SpToPx(),
BackgroundColor = Color.Transparent,
IconResources = new Dictionary<ThemeType, Dictionary<string, StringSelector>>()
{
{
repeatButton = new MultiStateButton()
{
- Size2D = new Size2D(IconSize, IconSize).DpToPx(),
- Margin = new Extents(40, 0, 0, 0).DpToPx(),
+ Size2D = new Size2D(IconSize, IconSize).SpToPx(),
+ Margin = new Extents(40, 0, 0, 0).SpToPx(),
IconResources = new Dictionary<ThemeType, Dictionary<string, StringSelector>>()
{
{
playbackButtonsView = new View()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 48.DpToPx(),
+ HeightSpecification = 48.SpToPx(),
Layout = new LinearLayout()
{
LinearOrientation = LinearLayout.Orientation.Horizontal,
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
- Margin = (DeviceInfo.IsPortrait ? new Extents(0, 0, 140, 104) : new Extents(0, 0, 100, 92)).DpToPx(),
- CellPadding = new Size2D(80, 0).DpToPx(),
+ Margin = (DeviceInfo.IsPortrait ? new Extents(0, 0, 140, 104) : new Extents(0, 0, 100, 92)).SpToPx(),
+ CellPadding = new Size2D(80, 0).SpToPx(),
},
};
controlsView.Add(playbackButtonsView);
volumeSlider = new Slider("Slider")
{
ThemeChangeSensitive = true,
- Size2D = new Size2D(496, 48).DpToPx(),
- ThumbSize = new Tizen.NUI.Size(36, 36).DpToPx(),
+ Size2D = new Size2D(496, 48).SpToPx(),
+ ThumbSize = new Tizen.NUI.Size(36, 36).SpToPx(),
Direction = Slider.DirectionType.Horizontal,
MinValue = 0,
MaxValue = AudioManager.VolumeController.MaxLevel[AudioVolumeType.Media],
volumeSliderView = new View()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 48.DpToPx(),
+ HeightSpecification = 48.SpToPx(),
Layout = new LinearLayout()
{
- CellPadding = (new Size2D(24, 0)).DpToPx(),
+ CellPadding = (new Size2D(24, 0)).SpToPx(),
LinearOrientation = LinearLayout.Orientation.Horizontal,
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
MinValue = 0.0f,
MaxValue = 1.0f,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 44.DpToPx(),
- ThumbSize = new Tizen.NUI.Size(36, 36).DpToPx(),
+ HeightSpecification = 44.SpToPx(),
+ ThumbSize = new Tizen.NUI.Size(36, 36).SpToPx(),
Direction = Slider.DirectionType.Horizontal,
};
playbackSlider.SetBinding(Slider.CurrentValueProperty, "ElapsedTime");
{
StyleName = "LabelText",
ThemeChangeSensitive = true,
- Size2D = new Size2D(400, 32).DpToPx(),
- PixelSize = 24.DpToPx(),
+ Size2D = new Size2D(400, 32).SpToPx(),
+ PixelSize = 24.SpToPx(),
FontFamily = "BreezeSans",
Text = "00::00:00",
HorizontalAlignment = HorizontalAlignment.Begin,
{
StyleName = "LabelText",
ThemeChangeSensitive = true,
- Size2D = new Size2D(400, 32).DpToPx(),
- PixelSize = 24.DpToPx(),
+ Size2D = new Size2D(400, 32).SpToPx(),
+ PixelSize = 24.SpToPx(),
FontFamily = "BreezeSans",
HorizontalAlignment = HorizontalAlignment.End,
Text = "59:59:59",
sliderView = new View()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 84.DpToPx(),
+ HeightSpecification = 84.SpToPx(),
Layout = new LinearLayout()
{
LinearOrientation = LinearLayout.Orientation.Vertical,
playbackSliderTextView = new View()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 32.DpToPx(),
+ HeightSpecification = 32.SpToPx(),
Layout = new RelativeLayout()
{
- Margin = (new Extents(0, 0, 8, 0)).DpToPx(),
+ Margin = (new Extents(0, 0, 8, 0)).SpToPx(),
},
};
sliderView.Add(playbackSliderTextView);
LinearOrientation = LinearLayout.Orientation.Horizontal,
HorizontalAlignment = HorizontalAlignment.End,
VerticalAlignment = VerticalAlignment.Top,
- CellPadding = new Size2D(92, 0).DpToPx(),
+ CellPadding = new Size2D(92, 0).SpToPx(),
},
};
if (DeviceInfo.IsPortrait)
{
- topRightView.Margin = new Extents(0, 46, 0, 0).DpToPx();
+ topRightView.Margin = new Extents(0, 46, 0, 0).SpToPx();
}
}
{
actionButtonView = new View()
{
- WidthSpecification = 224.DpToPx(),
- HeightSpecification = 48.DpToPx(),
+ WidthSpecification = 224.SpToPx(),
+ HeightSpecification = 48.SpToPx(),
Layout = new LinearLayout()
{
LinearOrientation = LinearLayout.Orientation.Horizontal,
- CellPadding = new Size2D(40, 0).DpToPx(),
+ CellPadding = new Size2D(40, 0).SpToPx(),
},
BackgroundColor = Color.Transparent,
};
favouriteButton = new MultiStateButton()
{
- Size2D = new Size2D(IconSize, IconSize).DpToPx(),
+ Size2D = new Size2D(IconSize, IconSize).SpToPx(),
IconResources = new Dictionary<ThemeType, Dictionary<string, StringSelector>>()
{
{
playerContentView.Remove(sliderView);
if (DeviceInfo.IsPortrait)
{
- sliderView.Margin = new Extents(32, 32, 0, 0).DpToPx();
+ sliderView.Margin = new Extents(32, 32, 0, 0).SpToPx();
rightView.Remove(controlsView);
contentView.Remove(rightView);
contentView.Remove(leftView);
contentView.Add(rightView);
contentView.Add(leftView);
topRightView.Remove(actionButtonView);
- topRightView.HeightSpecification = 200.DpToPx();
+ topRightView.HeightSpecification = 200.SpToPx();
AddThumbnail();
topRightView.Add(actionButtonView);
rightView.Add(topRightView);
- controlsView.Margin = new Extents(0, 0, 40, 0).DpToPx();
+ controlsView.Margin = new Extents(0, 0, 40, 0).SpToPx();
rightView.Add(controlsView);
}
else
{
- leftView.Padding = new Extents(0, 64, 0, 64).DpToPx();
- sliderView.Margin = new Extents(0, 0, 84, 0).DpToPx();
- sliderView.WidthSpecification = 640.DpToPx();
+ leftView.Padding = new Extents(0, 64, 0, 64).SpToPx();
+ sliderView.Margin = new Extents(0, 0, 84, 0).SpToPx();
+ sliderView.WidthSpecification = 640.SpToPx();
}
rightView.Add(sliderView);
AddPlayingListView();
rightView.Remove(sliderView);
if (DeviceInfo.IsPortrait)
{
- controlsView.Margin = new Extents(0, 0, 115, 0).DpToPx();
- sliderView.Margin = new Extents(0, 0, 0, 0).DpToPx();
+ controlsView.Margin = new Extents(0, 0, 115, 0).SpToPx();
+ sliderView.Margin = new Extents(0, 0, 0, 0).SpToPx();
contentView.Remove(leftView);
contentView.Remove(rightView);
contentView.Add(leftView);
contentView.Add(rightView);
topRightView.Remove(thumb);
- topRightView.HeightSpecification = 48.DpToPx();
+ topRightView.HeightSpecification = 48.SpToPx();
leftView.Add(topRightView);
}
else
{
- leftView.Padding = new Extents(0, 64, 0, 0).DpToPx();
- sliderView.Margin = new Extents(0, 0, 0, 0).DpToPx();
+ leftView.Padding = new Extents(0, 64, 0, 0).SpToPx();
+ sliderView.Margin = new Extents(0, 0, 0, 0).SpToPx();
sliderView.WidthSpecification = LayoutParamPolicies.MatchParent;
}
playerContentView.Add(sliderView);
thumb = new ImageView()
{
BackgroundColor = Color.Cyan,
- Size2D = new Size2D(200, 200).DpToPx(),
+ Size2D = new Size2D(200, 200).SpToPx(),
BoxShadow = new Shadow(6.0f, Color.Black, new Vector2(0, 3)),
};
thumb.SetBinding(ImageView.ResourceUrlProperty, "ThumbnailPath");
AddSelectPlaylistCancelButton();
selectPlaylistDialog = new AlertDialog()
{
- Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 660).DpToPx(),
+ Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 660).SpToPx(),
Title = "Add to playlist",
Content = selectPlaylistContentArea,
Actions = new List<View> { selectPlaylistCancelButton },
- Padding = new Extents(0, 0, 0, 0).DpToPx(),
- Margin = new Extents(32, 32, 0, 0).DpToPx(),
+ Padding = new Extents(0, 0, 0, 0).SpToPx(),
+ Margin = new Extents(32, 32, 0, 0).SpToPx(),
};
TextLabel textLabel = (TextLabel)selectPlaylistDialog.TitleContent;
textLabel.FontStyle = UIFontStyles.AllNormal;
selectPlaylistContentArea = new View()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 340.DpToPx(),
+ HeightSpecification = 340.SpToPx(),
BackgroundColor = Color.Transparent,
Layout = new FlexLayout()
{
createNewPlaylistButton = new Button("PlaylistCreate")
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 108.DpToPx(),
+ HeightSpecification = 108.SpToPx(),
TextAlignment = HorizontalAlignment.Begin,
- Padding = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
IsEnabled = true,
IsSelectable = false,
ItemAlignment = LinearLayout.Alignment.CenterVertical,
View itemSeperator = new View()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 2.DpToPx(),
+ HeightSpecification = 2.SpToPx(),
BackgroundColor = UIColors.ItemSeperator,
- Margin = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+ Margin = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
};
selectPlaylistContentArea.Add(itemSeperator);
createNewPlaylistButton.Clicked += CreateNewPlaylistButtonClicked;
AddCreatePlaylistButtons();
createPlaylistDialog = new AlertDialog()
{
- Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 465).DpToPx(),
+ Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 465).SpToPx(),
Title = "Create playlist",
Content = createPlaylistContentArea,
Actions = new List<View> { createPlaylistCancelButton, createPlaylistCreateButton },
- Padding = new Extents(0, 0, 0, 0).DpToPx(),
- Margin = new Extents(32, 32, 0, 0).DpToPx(),
+ Padding = new Extents(0, 0, 0, 0).SpToPx(),
+ Margin = new Extents(32, 32, 0, 0).SpToPx(),
};
TextLabel textLabel = (TextLabel)selectPlaylistDialog.TitleContent;
textLabel.FontStyle = UIFontStyles.AllNormal;
{
ThemeChangeSensitive = true,
StyleName = "ListBackground",
- Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 108).DpToPx(),
+ Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 108).SpToPx(),
ItemsLayouter = new LinearLayouter(),
ScrollingDirection = ScrollableBase.Direction.Vertical,
HeightSpecification = LayoutParamPolicies.WrapContent,
DefaultLinearItem layout = new DefaultLinearItem("LinearItem")
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 108.DpToPx(),
+ HeightSpecification = 108.SpToPx(),
};
layout.Seperator.BackgroundColor = UIColors.ItemSeperator;
- layout.Seperator.Padding = new Extents(0, 0, 0, 0).DpToPx();
- layout.Seperator.Margin = new Extents(0, 0, 0, 0).DpToPx();
+ layout.Seperator.Padding = new Extents(0, 0, 0, 0).SpToPx();
+ layout.Seperator.Margin = new Extents(0, 0, 0, 0).SpToPx();
layout.Seperator.WidthSpecification = LayoutParamPolicies.MatchParent;
layout.Label.SetBinding(TextLabel.TextProperty, "PlaylistName");
layout.Label.FontStyle = UIFontStyles.NormalLight;
- layout.Padding = new Extents(0, 0, 0, 0).DpToPx();
- layout.Margin = new Extents(0, 0, 0, 0).DpToPx();
+ layout.Padding = new Extents(0, 0, 0, 0).SpToPx();
+ layout.Margin = new Extents(0, 0, 0, 0).SpToPx();
return layout;
});
collectionView.ItemsSource = viewModel.ListViewModel;
StyleName = "ItemLabel",
ThemeChangeSensitive = true,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 108.DpToPx(),
- PixelSize = 32.DpToPx(),
+ HeightSpecification = 108.SpToPx(),
+ PixelSize = 32.SpToPx(),
Text = "No playlists available",
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
FontFamily = "BreezeSans",
FontStyle = UIFontStyles.NormalLight,
- Padding = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
};
selectPlaylistContentArea.Add(noListText);
}
{
selectPlaylistCancelButton = new Button()
{
- Size2D = new Size2D(336, 96).DpToPx(),
+ Size2D = new Size2D(336, 96).SpToPx(),
Text = "Cancel",
};
selectPlaylistCancelButton.TextLabel.FontStyle = UIFontStyles.AllNormal;
createPlaylistContentArea = new View()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 169.DpToPx(),
+ HeightSpecification = 169.SpToPx(),
BackgroundColor = Color.Transparent,
Layout = new FlexLayout()
{
Direction = FlexLayout.FlexDirection.Column,
ItemsAlignment = FlexLayout.AlignmentType.FlexStart,
Justification = FlexLayout.FlexJustification.FlexStart,
- Padding = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
},
};
TextLabel textLabel = new TextLabel()
StyleName = "TitleText",
ThemeChangeSensitive = true,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 40.DpToPx(),
- PixelSize = 32.DpToPx(),
+ HeightSpecification = 40.SpToPx(),
+ PixelSize = 32.SpToPx(),
Text = "Add playlist name.",
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
FontFamily = "BreezeSans",
FontStyle = UIFontStyles.NormalLight,
- Margin = new Extents(0, 0, 0, 24).DpToPx(),
+ Margin = new Extents(0, 0, 0, 24).SpToPx(),
};
createPlaylistContentArea.Add(textLabel);
AddInputArea();
{
BackgroundColor = UIColors.ItemSeperator,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 1.DpToPx(),
+ HeightSpecification = 1.SpToPx(),
};
createPlaylistContentArea.Add(itemSeperator);
underText = new TextLabel()
StyleName = "ItemLabel",
ThemeChangeSensitive = true,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 32.DpToPx(),
- PixelSize = 24.DpToPx(),
+ HeightSpecification = 32.SpToPx(),
+ PixelSize = 24.SpToPx(),
Text = "Can't enter more than 64 characters.",
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
{
inputArea = new View()
{
- Size2D = new Size2D((DeviceInfo.IsPortrait ? 856 : 1024), 48).DpToPx(),
+ Size2D = new Size2D((DeviceInfo.IsPortrait ? 856 : 1024), 48).SpToPx(),
Layout = new FlexLayout()
{
Direction = FlexLayout.FlexDirection.Row,
{
ThemeChangeSensitive = true,
StyleName = "TextField",
- PixelSize = 32.DpToPx(),
- Size2D = new Size2D((DeviceInfo.IsPortrait ? 808 : 928), 48).DpToPx(),
- Position2D = new Position2D(0, 0).DpToPx(),
- Margin = new Extents(0, (ushort)(DeviceInfo.IsPortrait ? 0 : 48), 0, 0).DpToPx(),
+ PixelSize = 32.SpToPx(),
+ Size2D = new Size2D((DeviceInfo.IsPortrait ? 808 : 928), 48).SpToPx(),
+ Position2D = new Position2D(0, 0).SpToPx(),
+ Margin = new Extents(0, (ushort)(DeviceInfo.IsPortrait ? 0 : 48), 0, 0).SpToPx(),
FontStyle = UIFontStyles.NormalLight,
MaxLength = 65,
};
crossButton = new Button("ClearButton")
{
ThemeChangeSensitive = true,
- Position2D = new Position2D((DeviceInfo.IsPortrait ? 808 : 976), 6).DpToPx(),
+ Position2D = new Position2D((DeviceInfo.IsPortrait ? 808 : 976), 6).SpToPx(),
};
crossButton.Clicked += (object o, ClickedEventArgs e) =>
{
createPlaylistCreateButton = new Button()
{
- Size2D = new Size2D(336, 96).DpToPx(),
+ Size2D = new Size2D(336, 96).SpToPx(),
Text = "Create",
};
createPlaylistCreateButton.TextLabel.FontStyle = UIFontStyles.AllNormal;
{
StyleName = "LabelText",
ThemeChangeSensitive = true,
- PixelSize = 28.DpToPx(),
+ PixelSize = 28.SpToPx(),
Text = "Playlist COUNT",
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
playlistCreateButton = new Button("PlaylistAdd")
{
ThemeChangeSensitive = true,
- Margin = new Extents(40, 0, 0, 0).DpToPx(),
+ Margin = new Extents(40, 0, 0, 0).SpToPx(),
};
playlistCreateButton.BindingContext = viewModel;
playlistCreateButton.SetBinding(Button.IsEnabledProperty, "CanCreatePlaylist");
Name = "AlertDialogTitle",
StyleName = "LabelText",
ThemeChangeSensitive = true,
- PixelSize = 40.DpToPx(),
+ PixelSize = 40.SpToPx(),
FontFamily = "BreezeSans",
FontStyle = UIFontStyles.AllNormal,
Text = "Create playlist",
Name = "AlertDialogContentMessage",
StyleName = "LabelText",
ThemeChangeSensitive = true,
- PixelSize = 32.DpToPx(),
+ PixelSize = 32.SpToPx(),
FontFamily = "BreezeSans",
FontStyle = UIFontStyles.NormalLight,
Text = "Add playlist name",
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 40.DpToPx(),
+ HeightSpecification = 40.SpToPx(),
HorizontalAlignment = HorizontalAlignment.Center,
};
return contentLabel;
PlaceholderText = "Enter Playlist Name",
Text = DefaultPlaylistName,
HorizontalAlignment = HorizontalAlignment.Begin,
- PixelSize = 32.DpToPx(),
+ PixelSize = 32.SpToPx(),
};
return inputTextField;
}
{
Name = "AlertDialogClearButton",
ThemeChangeSensitive = true,
- Margin = new Extents(48, 0, 0, 0).DpToPx(),
+ Margin = new Extents(48, 0, 0, 0).SpToPx(),
};
return clearButton;
}
Name = "AlertDialogInputArea",
BackgroundColor = Color.Transparent,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 48.DpToPx(),
- Margin = new Extents(0, 0, 24, 0).DpToPx(),
+ HeightSpecification = 48.SpToPx(),
+ Margin = new Extents(0, 0, 24, 0).SpToPx(),
Layout = new RelativeLayout()
};
return inputArea;
{
Name = "AlertDialogContent",
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 116.DpToPx(),
+ HeightSpecification = 116.SpToPx(),
BackgroundColor = Color.Transparent,
Layout = new LinearLayout()
{
LinearOrientation = LinearLayout.Orientation.Vertical,
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Top,
- Margin = new Extents(0, 0, 40, 24).DpToPx(),
+ Margin = new Extents(0, 0, 40, 24).SpToPx(),
}
};
return contentArea;
{
Button createButton = new Button()
{
- Size2D = new Size2D(336, 96).DpToPx(),
+ Size2D = new Size2D(336, 96).SpToPx(),
Name = "AlertDialogCreateButton",
Text = "Create",
};
{
Name = "InputLineView",
StyleName = "InputLine",
- HeightSpecification = 2.DpToPx(),
+ HeightSpecification = 2.SpToPx(),
WidthSpecification = LayoutParamPolicies.MatchParent,
};
return view;
View buttonArea = new View()
{
BackgroundColor = Color.Transparent,
- HeightSpecification = 96.DpToPx(),
+ HeightSpecification = 96.SpToPx(),
WidthSpecification = LayoutParamPolicies.MatchParent,
Layout = new RelativeLayout()
{
- Margin = new Extents(0, 0, 64, 0).DpToPx(),
+ Margin = new Extents(0, 0, 64, 0).SpToPx(),
}
};
return buttonArea;
StyleName = "Dialogs",
//FixMe : Here WidthSpecification in portrait mode should be 1016 but that cause the
// AlertDialog to fill Full width of window but keeping width 952 is showing correclty
- WidthSpecification = (DeviceInfo.IsPortrait ? 952 : 1184).DpToPx(),
- HeightSpecification = 466.DpToPx(),
+ WidthSpecification = (DeviceInfo.IsPortrait ? 952 : 1184).SpToPx(),
+ HeightSpecification = 466.SpToPx(),
Layout = new LinearLayout()
{
- Padding = new Extents(80, 80, 40, 40).DpToPx(),
- Margin = new Extents(32, 32, 0, 0).DpToPx(),
+ Padding = new Extents(80, 80, 40, 40).SpToPx(),
+ Margin = new Extents(32, 32, 0, 0).SpToPx(),
LinearOrientation = LinearLayout.Orientation.Vertical,
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Top,
Direction = FlexLayout.FlexDirection.Column,
ItemsAlignment = FlexLayout.AlignmentType.FlexStart,
Justification = FlexLayout.FlexJustification.FlexStart,
- Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
};
AddTopView();
AddTopViewElements();
{
BackgroundColor = Color.Transparent,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 120.DpToPx(),
+ HeightSpecification = 120.SpToPx(),
Layout = new RelativeLayout(),
};
base.Add(topView);
backButton = new Button("BackButton")
{
ThemeChangeSensitive = true,
- Size2D = new Size2D(48, 48).DpToPx(),
- Margin = new Extents(0, 24, 0, 0).DpToPx(),
+ Size2D = new Size2D(48, 48).SpToPx(),
+ Margin = new Extents(0, 24, 0, 0).SpToPx(),
};
topView.Add(backButton);
RelativeLayout.SetLeftTarget(backButton, topView);
{
StyleName = "PageLabel",
ThemeChangeSensitive = true,
- HeightSpecification = 48.DpToPx(),
+ HeightSpecification = 48.SpToPx(),
Text = "Search",
- PixelSize = 36.DpToPx(),
+ PixelSize = 36.SpToPx(),
FontFamily = "BreezeSans",
- Margin = new Extents(0, 32, 0, 0).DpToPx(),
+ Margin = new Extents(0, 32, 0, 0).SpToPx(),
VerticalAlignment = VerticalAlignment.Center,
FontStyle = UIFontStyles.NormalLight,
};
{
StyleName = "SearchBox",
ThemeChangeSensitive = true,
- Size2D = new Size2D(648, 60).DpToPx(),
- Margin = new Extents(0, 32, 0, 0).DpToPx(),
+ Size2D = new Size2D(648, 60).SpToPx(),
+ Margin = new Extents(0, 32, 0, 0).SpToPx(),
Layout = new FlexLayout()
{
Direction = FlexLayout.FlexDirection.Row,
{
ThemeChangeSensitive = true,
Name = "searchbutton",
- Margin = new Extents(24, 0, 10, 10).DpToPx(),
- Position2D = new Position2D(24, 10).DpToPx(),
+ Margin = new Extents(24, 0, 10, 10).SpToPx(),
+ Position2D = new Position2D(24, 10).SpToPx(),
};
textField = new TextField()
{
StyleName = "TextField",
ThemeChangeSensitive = true,
Name ="Textfield",
- Size2D = new Size2D(460, 40).DpToPx(),
+ Size2D = new Size2D(460, 40).SpToPx(),
BackgroundColor = Color.Transparent,
- Position2D = new Position2D(88, 10).DpToPx(),
- Margin = new Extents(24, 0, 10, 10).DpToPx(),
- PixelSize = 32.DpToPx(),
+ Position2D = new Position2D(88, 10).SpToPx(),
+ Margin = new Extents(24, 0, 10, 10).SpToPx(),
+ PixelSize = 32.SpToPx(),
PlaceholderText = "Type Here",
PlaceholderTextFocused = "Search music",
};
{
ThemeChangeSensitive = true,
Name = "crossButton",
- Margin = new Extents(24, 0, 6, 6).DpToPx(),
- Position2D = new Position2D(572, 6).DpToPx(),
+ Margin = new Extents(24, 0, 6, 6).SpToPx(),
+ Position2D = new Position2D(572, 6).SpToPx(),
};
crossButton.Clicked += CrossButtonClicked;
Direction = FlexLayout.FlexDirection.Column,
ItemsAlignment = FlexLayout.AlignmentType.Center,
Justification = FlexLayout.FlexJustification.FlexStart,
- Padding = (DeviceInfo.IsPortrait ? new Extents(0, 0, 482, 0) : new Extents(0, 0, 40, 0)).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(0, 0, 482, 0) : new Extents(0, 0, 40, 0)).SpToPx(),
}
};
noItemsAnimation = new LottieAnimationView()
{
URL = Resources.GetLottiePath() + "search_no_result.json",
- Size2D = new Size2D(264, 292).DpToPx(),
+ Size2D = new Size2D(264, 292).SpToPx(),
LoopCount = -1,
BackgroundColor = Color.Transparent,
};
{
StyleName = "TitleText",
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 36.DpToPx(),
+ HeightSpecification = 36.SpToPx(),
Text = "No results found",
- PixelSize = 28.DpToPx(),
+ PixelSize = 28.SpToPx(),
FontFamily = "BreezeSans",
HorizontalAlignment = HorizontalAlignment.Center,
- Margin = new Extents(0, 0, 32, 0).DpToPx(),
+ Margin = new Extents(0, 0, 32, 0).SpToPx(),
};
noItemView.Add(textLabel);
}
{
OnInitialize();
WidthSpecification = LayoutParamPolicies.MatchParent;
- HeightSpecification = 108.DpToPx();
+ HeightSpecification = 108.SpToPx();
Layout = new RelativeLayout()
{
- Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
};
BackgroundColor = Color.Transparent;
checkBox = new CheckBox("CheckBox");
checkBox.Icon.Opacity = 1.0f;
- checkBox.Icon.Size = new Size2D(BoxSize, BoxSize).DpToPx();
+ checkBox.Icon.Size = new Size2D(BoxSize, BoxSize).SpToPx();
Add(checkBox);
RelativeLayout.SetVerticalAlignment(checkBox, RelativeLayout.Alignment.Center);
RelativeLayout.SetHorizontalAlignment(checkBox, RelativeLayout.Alignment.Start);
icon = new ImageView()
{
- WidthSpecification = IconSize.DpToPx(),
- HeightSpecification = IconSize.DpToPx(),
- Margin = new Extents(32, 0, 0, 0).DpToPx(),
+ WidthSpecification = IconSize.SpToPx(),
+ HeightSpecification = IconSize.SpToPx(),
+ Margin = new Extents(32, 0, 0, 0).SpToPx(),
};
Add(icon);
RelativeLayout.SetLeftTarget(icon, checkBox);
textView = new View()
{
BackgroundColor = Color.Transparent,
- HeightSpecification = 76.DpToPx(),
+ HeightSpecification = 76.SpToPx(),
Layout = new LinearLayout()
{
LinearOrientation = LinearLayout.Orientation.Vertical,
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Top,
- Margin = new Extents(32, 0, 0, 0).DpToPx(),
+ Margin = new Extents(32, 0, 0, 0).SpToPx(),
}
};
Add(textView);
{
StyleName = "ItemLabel",
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 40.DpToPx(),
- PixelSize = 32.DpToPx(),
+ HeightSpecification = 40.SpToPx(),
+ PixelSize = 32.SpToPx(),
FontFamily = "BreezeSans",
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
{
StyleName = "ItemLabel",
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 36.DpToPx(),
- PixelSize = 28.DpToPx(),
+ HeightSpecification = 36.SpToPx(),
+ PixelSize = 28.SpToPx(),
FontFamily = "BreezeSans",
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
itemSeperator = new View()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 2.DpToPx(),
+ HeightSpecification = 2.SpToPx(),
BackgroundColor = UIColors.ItemSeperator,
};
Add(itemSeperator);
Direction = FlexLayout.FlexDirection.Column,
ItemsAlignment = FlexLayout.AlignmentType.FlexStart,
Justification = FlexLayout.FlexJustification.FlexStart,
- Padding = (DeviceInfo.IsPortrait ? new Extents(PortraitPadding ,PortraitPadding, 0, 0) : new Extents(LayoutPadding, LayoutPadding, 0, 0)).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(PortraitPadding ,PortraitPadding, 0, 0) : new Extents(LayoutPadding, LayoutPadding, 0, 0)).SpToPx(),
};
topView = AddTopView();
{
BackgroundColor = Color.Transparent,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 120.DpToPx(),
+ HeightSpecification = 120.SpToPx(),
Layout = new RelativeLayout(),
};
base.Add(topView);
selectedCountLabel = new TextLabel()
{
StyleName = "TitleText",
- HeightSpecification = 48.DpToPx(),
- PixelSize = 36.DpToPx(),
+ HeightSpecification = 48.SpToPx(),
+ PixelSize = 36.SpToPx(),
FontFamily = "BreezeSans",
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
private void AddButtons()
{
doneButton = CreateButton("Done");
- doneButton.Margin = new Extents(40, 0, 0, 0).DpToPx();
+ doneButton.Margin = new Extents(40, 0, 0, 0).SpToPx();
topView.Add(doneButton);
doneButton.Clicked += (object o, ClickedEventArgs args) =>
{
RelativeLayout.SetVerticalAlignment(doneButton, RelativeLayout.Alignment.Center);
cancelButton = CreateButton("Cancel");
- cancelButton.Margin = new Extents(40, 0, 0, 0).DpToPx();
+ cancelButton.Margin = new Extents(40, 0, 0, 0).SpToPx();
cancelButton.IsEnabled = true;
topView.Add(cancelButton);
cancelButton.Clicked += (object o, ClickedEventArgs args) =>
StyleName = "SelectAllBg",
ThemeChangeSensitive = true,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 108.DpToPx(),
- Margin = new Extents(0, 0, 0, 40).DpToPx(),
+ HeightSpecification = 108.SpToPx(),
+ Margin = new Extents(0, 0, 0, 40).SpToPx(),
Layout = new LinearLayout
{
LinearOrientation= LinearLayout.Orientation.Horizontal,
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
- Padding = (DeviceInfo.IsPortrait ? new Extents(PortraitPadding, PortraitPadding, 34, 34) : new Extents(LayoutPadding, LayoutPadding, 34, 34)).DpToPx()
+ Padding = (DeviceInfo.IsPortrait ? new Extents(PortraitPadding, PortraitPadding, 34, 34) : new Extents(LayoutPadding, LayoutPadding, 34, 34)).SpToPx()
},
};
base.Add(selAllView);
{
selAllButton = new CheckBox()
{
- Size2D = new Size2D(36, 36).DpToPx(),
- Margin = new Extents(0, 32, 2, 2).DpToPx(),
+ Size2D = new Size2D(36, 36).SpToPx(),
+ Margin = new Extents(0, 32, 2, 2).SpToPx(),
};
selAllView.Add(selAllButton);
selAllButton.Clicked += OnSelAllClicked;
{
StyleName ="LabelText",
Text = "Select All",
- HeightSpecification = 40.DpToPx(),
- PixelSize = 32.DpToPx(),
+ HeightSpecification = 40.SpToPx(),
+ PixelSize = 32.SpToPx(),
FontFamily = "BreezeSans",
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
BackgroundColor = Color.Transparent,
WidthSpecification = LayoutParamPolicies.MatchParent,
HeightSpecification = LayoutParamPolicies.MatchParent,
- Margin = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 64) : new Extents(64, 64, 0, 32)).DpToPx(),
+ Margin = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 64) : new Extents(64, 64, 0, 32)).SpToPx(),
ScrollingDirection = ScrollableBase.Direction.Vertical,
Layout = new LinearLayout(),
};
navigationContent = new View()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 120.DpToPx(),
+ HeightSpecification = 120.SpToPx(),
BackgroundColor = Color.Transparent,
Layout = new LinearLayout()
{
LinearOrientation = LinearLayout.Orientation.Horizontal,
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
- CellPadding = new Size2D(24, 0).DpToPx()
+ CellPadding = new Size2D(24, 0).SpToPx()
},
};
backButton = new Button("BackButton");
StyleName = "PageLabel",
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Center,
- PixelSize = 40.DpToPx(),
+ PixelSize = 40.SpToPx(),
FontFamily = "BreezeSans",
FontStyle = UIFontStyles.AllNormal,
Text = "Details",
{
BackgroundColor = Color.Transparent,
NavigationContent = CreateNavigationContent(),
- Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+ Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
},
Content = CreateContent(),
};
{
BackgroundColor = Color.Transparent,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 108.DpToPx(),
+ HeightSpecification = 108.SpToPx(),
BindingContext = viewModel.Model,
Layout = new RelativeLayout()
{
- Margin = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+ Margin = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
}
};
View textArea = new View()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 76.DpToPx(),
+ HeightSpecification = 76.SpToPx(),
Layout = new LinearLayout()
{
LinearOrientation = LinearLayout.Orientation.Vertical,
HorizontalAlignment = HorizontalAlignment.Begin,
VerticalAlignment = VerticalAlignment.Top,
- Margin = new Extents(0, 0, 16, 16).DpToPx(),
+ Margin = new Extents(0, 0, 16, 16).SpToPx(),
},
};
view.Add(textArea);
{
ThemeChangeSensitive = true,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 40.DpToPx(),
+ HeightSpecification = 40.SpToPx(),
StyleName = "DetailTitle",
FontStyle = UIFontStyles.NormalLight,
Text = title,
{
ThemeChangeSensitive = true,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 36.DpToPx(),
+ HeightSpecification = 36.SpToPx(),
StyleName = "DetailSubTitle",
FontStyle = UIFontStyles.AllNormal,
HorizontalAlignment = HorizontalAlignment.Begin,
{
BackgroundColor = UIColors.HEXC3CAD2,
WidthSpecification = LayoutParamPolicies.MatchParent,
- HeightSpecification = 2.DpToPx(),
+ HeightSpecification = 2.SpToPx(),
};
view.Add(itemSeparator);
RelativeLayout.SetVerticalAlignment(itemSeparator, RelativeLayout.Alignment.End);
{\r
StyleName = "LabelText",\r
ThemeChangeSensitive = true,\r
- PixelSize = 28.DpToPx(),\r
+ PixelSize = 28.SpToPx(),\r
Text = "TRACK COUNT",\r
HorizontalAlignment = HorizontalAlignment.Begin,\r
VerticalAlignment = VerticalAlignment.Center,\r
playAllWithShuffle = new Button("ShuffleButton")\r
{\r
ThemeChangeSensitive = true,\r
- Margin = new Extents(32, 40, 0, 0).DpToPx(),\r
+ Margin = new Extents(32, 40, 0, 0).SpToPx(),\r
};\r
titleView.Add(playAllWithShuffle);\r
playAllWithShuffle.Clicked += (object sender, ClickedEventArgs e) =>\r
AddOkButton();
errorDialog = new AlertDialog()
{
- Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 368).DpToPx(),
+ Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 368).SpToPx(),
Title = "Unable to play track",
Message = "",
Actions = new List<View> { okButton },
- Margin = new Extents(32, 32, 0, 0).DpToPx(),
+ Margin = new Extents(32, 32, 0, 0).SpToPx(),
};
TextLabel textLabel = (TextLabel)errorDialog.TitleContent;
private readonly ViewLibrary viewLibrary;
private View rootView;
private BaseView baseView;
- private View miniPlayer;
private static readonly string[] TabNames = new string[]
{
"Playlists",
<TextFieldStyle x:Key="TextField" TextColor ="#FFFFFF" />
- <c:DefaultTitleItemStyle x:Key="DefaultTitle" Size="1920dp, 60dp" BackgroundColor="#0E1017">
+ <c:DefaultTitleItemStyle x:Key="DefaultTitle" Size="1920sp, 60sp" BackgroundColor="#0E1017">
<c:DefaultTitleItemStyle.Label>
- <TextLabelStyle PixelSize ="28dp" TextColor ="#FFFFFF" />
+ <TextLabelStyle PixelSize ="28sp" TextColor ="#FFFFFF" />
</c:DefaultTitleItemStyle.Label>
</c:DefaultTitleItemStyle>
- <c:ButtonStyle x:Key="PrevButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="PrevButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="NextButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="NextButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="ShuffleButton" Size="48dp, 48dp" Position="0dp, 196dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="ShuffleButton" Size="48sp, 48sp" Position="0sp, 196sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="RepeatButton" Size="48dp, 48dp" Position="592dp, 196dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="RepeatButton" Size="48sp, 48sp" Position="592sp, 196sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="ListButton" Size="48dp, 48dp" Position="0dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="ListButton" Size="48sp, 48sp" Position="0sp, 0sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="PlaylistButton" Size="48dp, 48dp" Position="88dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="PlaylistButton" Size="48sp, 48sp" Position="88sp, 0sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="FavouriteButton" Size="48dp, 48dp" Position="176dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="FavouriteButton" Size="48sp, 48sp" Position="176sp, 0sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="PlayAll" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="PlayAll" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="PlaylistAdd" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="PlaylistAdd" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:SliderStyle x:Key="Slider" TrackThickness="8dp" IndicatorType="Image">
+ <c:SliderStyle x:Key="Slider" TrackThickness="8sp" IndicatorType="Image">
<c:SliderStyle.Track>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>*Resource*/images/empty_track.png</ImageViewStyle.ResourceUrl>
</c:SliderStyle.Thumb>
</c:SliderStyle>
- <c:ButtonStyle x:Key="BackButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="BackButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="MoreButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="MoreButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="SearchIcon" Size="40dp, 40dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="SearchIcon" Size="40sp, 40sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>*Resource*/images/dark/search_icon.png</ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <ImageViewStyle x:Key="LeftVolume" Size="48dp, 48dp" Position="0dp, 336dp">
+ <ImageViewStyle x:Key="LeftVolume" Size="48sp, 48sp" Position="0sp, 336sp">
<ImageViewStyle.ResourceUrl>*Resource*/images/dark/left_sound_icon.png</ImageViewStyle.ResourceUrl>
</ImageViewStyle>
- <ImageViewStyle x:Key="RightVolume" Size="48dp, 48dp" Position="592dp, 336dp">
+ <ImageViewStyle x:Key="RightVolume" Size="48sp, 48sp" Position="592sp, 336sp">
<ImageViewStyle.ResourceUrl>*Resource*/images/dark/right_sound_icon.png</ImageViewStyle.ResourceUrl>
</ImageViewStyle>
<TextLabelStyle x:Key="TitleText" TextColor="#FFFFFF"/>
- <c:ButtonStyle x:Key="CancelButton" Size="336dp, 96dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
+ <c:ButtonStyle x:Key="CancelButton" Size="336sp, 96sp" 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="32dp" Text="Cancel"/>
+ <TextLabelStyle TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="32sp" Text="Cancel"/>
</c:ButtonStyle.Text>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="TextButton" Size="260dp, 64dp" BackgroundColor="Transparent" >
+ <c:ButtonStyle x:Key="TextButton" Size="260sp, 64sp" BackgroundColor="Transparent" >
<c:ButtonStyle.Text>
- <TextLabelStyle FontFamily="BreezeSans" PixelSize="28dp" VerticalAlignment ="Center" >
+ <TextLabelStyle FontFamily="BreezeSans" PixelSize="28sp" VerticalAlignment ="Center" >
<TextLabelStyle.TextColor>
<Selector x:TypeArguments="Color" Normal="#FFFFFF" Pressed="#1473E6" Disabled="#B2B7BE" />
</TextLabelStyle.TextColor>
</c:ButtonStyle.Text>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="ClearButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="ClearButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>*Resource*/images/dark/cross_button.png</ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="CheckBox" Size="36dp, 36dp" IsSelected="false" IsEnabled="false" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="CheckBox" Size="36sp, 36sp" IsSelected="false" IsEnabled="false" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
<c:TabStyle x:Key="Tabs" BackgroundColor="#000209">
<c:TabStyle.Text>
- <TextLabelStyle TextColor="#FFFFFF" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="28dp"/>
+ <TextLabelStyle TextColor="#FFFFFF" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="28sp"/>
</c:TabStyle.Text>
<c:TabStyle.UnderLine>
- <ViewStyle BackgroundColor="#FFFFFF" SizeHeight="8dp"/>
+ <ViewStyle BackgroundColor="#FFFFFF" SizeHeight="8sp"/>
</c:TabStyle.UnderLine>
</c:TabStyle>
- <c:ButtonStyle x:Key="SearchButton" Size="96dp, 60dp" IsSelectable="false" IsEnabled="true" BackgroundImage="*Resource*/images/dark/search_button_bg.png">
+ <c:ButtonStyle x:Key="SearchButton" Size="96sp, 60sp" 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>
<c:DefaultLinearItemStyle x:Key="LinearItem" BackgroundColor="Transparent">
<c:DefaultLinearItemStyle.Label>
- <TextLabelStyle TextColor="#FFFFFF" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="32dp"/>
+ <TextLabelStyle TextColor="#FFFFFF" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="32sp"/>
</c:DefaultLinearItemStyle.Label>
</c:DefaultLinearItemStyle>
<c:ButtonStyle x:Key="PlaylistCreate" BackgroundColor="Transparent" >
<c:ButtonStyle.Text>
- <TextLabelStyle FontFamily="BreezeSans" PixelSize="32dp" Text="+ Create new playlist">
+ <TextLabelStyle FontFamily="BreezeSans" PixelSize="32sp" Text="+ Create new playlist">
<TextLabelStyle.TextColor>
<Selector x:TypeArguments="Color" Normal="#FFFFFF" Pressed="#1473E6" Disabled="#C3CAD2" />
</TextLabelStyle.TextColor>
</c:ButtonStyle.Text>
</c:ButtonStyle>
- <TextLabelStyle x:Key="DetailTitle" TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="32dp"/>
- <TextLabelStyle x:Key="DetailSubTitle" TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="28dp"/>
+ <TextLabelStyle x:Key="DetailTitle" TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="32sp"/>
+ <TextLabelStyle x:Key="DetailSubTitle" TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="28sp"/>
<c:AlertDialogStyle x:Key="Dialogs" BackgroundImage="*Resource*/images/dark/alert_dialog_bg.png" />
<TextFieldStyle x:Key="TextField" TextColor ="#001447" />
- <c:DefaultTitleItemStyle x:Key="DefaultTitle" Size="1920dp, 60dp" BackgroundColor="#EEEFF1">
+ <c:DefaultTitleItemStyle x:Key="DefaultTitle" Size="1920sp, 60sp" BackgroundColor="#EEEFF1">
<c:DefaultTitleItemStyle.Label>
- <TextLabelStyle PixelSize ="28dp" TextColor ="#001447" />
+ <TextLabelStyle PixelSize ="28sp" TextColor ="#001447" />
</c:DefaultTitleItemStyle.Label>
</c:DefaultTitleItemStyle>
- <c:ButtonStyle x:Key="PrevButton" Size="48dp, 48dp" BackgroundColor="Transparent" >
+ <c:ButtonStyle x:Key="PrevButton" Size="48sp, 48sp" BackgroundColor="Transparent" >
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="NextButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
+ <c:ButtonStyle x:Key="NextButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="ShuffleButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="ShuffleButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="RepeatButton" Size="48dp, 48dp" Position="592dp, 196dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="RepeatButton" Size="48sp, 48sp" Position="592sp, 196sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="ListButton" Size="48dp, 48dp" Position="0dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="ListButton" Size="48sp, 48sp" Position="0sp, 0sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="PlaylistButton" Size="48dp, 48dp" Position="88dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="PlaylistButton" Size="48sp, 48sp" Position="88sp, 0sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="FavouriteButton" Size="48dp, 48dp" Position="176dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="FavouriteButton" Size="48sp, 48sp" Position="176sp, 0sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="PlayAll" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="PlayAll" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="PlaylistAdd" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="PlaylistAdd" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:SliderStyle x:Key="Slider" TrackThickness="8dp" IndicatorType="Image">
+ <c:SliderStyle x:Key="Slider" TrackThickness="8sp" IndicatorType="Image">
<c:SliderStyle.Track>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>*Resource*/images/empty_track.png</ImageViewStyle.ResourceUrl>
</c:SliderStyle.Thumb>
</c:SliderStyle>
- <c:ButtonStyle x:Key="BackButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="BackButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="MoreButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="MoreButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="SearchIcon" Size="40dp, 40dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="SearchIcon" Size="40sp, 40sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>*Resource*/images/light/search_icon.png</ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <ImageViewStyle x:Key="LeftVolume" Size="48dp, 48dp" Position="0dp, 336dp">
+ <ImageViewStyle x:Key="LeftVolume" Size="48sp, 48sp" Position="0sp, 336sp">
<ImageViewStyle.ResourceUrl>*Resource*/images/light/left_sound_icon.png</ImageViewStyle.ResourceUrl>
</ImageViewStyle>
- <ImageViewStyle x:Key="RightVolume" Size="48dp, 48dp" Position="592dp, 336dp">
+ <ImageViewStyle x:Key="RightVolume" Size="48sp, 48sp" Position="592sp, 336sp">
<ImageViewStyle.ResourceUrl>*Resource*/images/light/right_sound_icon.png</ImageViewStyle.ResourceUrl>
</ImageViewStyle>
<TextLabelStyle x:Key="TitleText" TextColor="#000C2B"/>
- <c:ButtonStyle x:Key="CancelButton" Size="336dp, 96dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
+ <c:ButtonStyle x:Key="CancelButton" Size="336sp, 96sp" 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="32dp" Text="Cancel"/>
+ <TextLabelStyle TextColor="#000C2B" FontFamily="BreezeSans" PixelSize="32sp" Text="Cancel"/>
</c:ButtonStyle.Text>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="TextButton" Size="260dp, 64dp" BackgroundColor="Transparent" >
+ <c:ButtonStyle x:Key="TextButton" Size="260sp, 64sp" BackgroundColor="Transparent" >
<c:ButtonStyle.Text>
- <TextLabelStyle FontFamily="BreezeSans" PixelSize="28dp" VerticalAlignment ="Center" >
+ <TextLabelStyle FontFamily="BreezeSans" PixelSize="28sp" VerticalAlignment ="Center" >
<TextLabelStyle.TextColor>
<Selector x:TypeArguments="Color" Normal="#000C2B" Pressed="#1473E6" Disabled="#B2B7BE" />
</TextLabelStyle.TextColor>
</c:ButtonStyle.Text>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="ClearButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="ClearButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>*Resource*/images/light/cross_button.png</ImageViewStyle.ResourceUrl>
</c:ButtonStyle.Icon>
</c:ButtonStyle>
- <c:ButtonStyle x:Key="CheckBox" Size="36dp, 36dp" IsSelected="false" IsEnabled="false" BackgroundColor="Transparent">
+ <c:ButtonStyle x:Key="CheckBox" Size="36sp, 36sp" IsSelected="false" IsEnabled="false" BackgroundColor="Transparent">
<c:ButtonStyle.Icon>
<ImageViewStyle>
<ImageViewStyle.ResourceUrl>
<c:TabStyle x:Key="Tabs" BackgroundColor="White">
<c:TabStyle.Text>
- <TextLabelStyle TextColor="#000C2B" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="28dp"/>
+ <TextLabelStyle TextColor="#000C2B" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="28sp"/>
</c:TabStyle.Text>
<c:TabStyle.UnderLine>
- <ViewStyle BackgroundColor="#0A0E4A" SizeHeight="8dp"/>
+ <ViewStyle BackgroundColor="#0A0E4A" SizeHeight="8sp"/>
</c:TabStyle.UnderLine>
</c:TabStyle>
- <c:ButtonStyle x:Key="SearchButton" Size="96dp, 60dp" IsSelectable="false" IsEnabled="true" BackgroundImage="*Resource*/images/light/search_button_bg.png">
+ <c:ButtonStyle x:Key="SearchButton" Size="96sp, 60sp" 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>
<c:DefaultLinearItemStyle x:Key="LinearItem" BackgroundColor="Transparent">
<c:DefaultLinearItemStyle.Label>
- <TextLabelStyle TextColor="#001447" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="32dp"/>
+ <TextLabelStyle TextColor="#001447" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="32sp"/>
</c:DefaultLinearItemStyle.Label>
</c:DefaultLinearItemStyle>
<c:ButtonStyle x:Key="PlaylistCreate" BackgroundColor="Transparent" >
<c:ButtonStyle.Text>
- <TextLabelStyle FontFamily="BreezeSans" PixelSize="32dp" Text="+ Create new playlist">
+ <TextLabelStyle FontFamily="BreezeSans" PixelSize="32sp" Text="+ Create new playlist">
<TextLabelStyle.TextColor>
<Selector x:TypeArguments="Color" Normal="#001447" Pressed="#1473E6" Disabled="#C3CAD2" />
</TextLabelStyle.TextColor>
</c:ButtonStyle.Text>
</c:ButtonStyle>
- <TextLabelStyle x:Key="DetailTitle" TextColor="#001447" FontFamily="BreezeSans" PixelSize="32dp"/>
- <TextLabelStyle x:Key="DetailSubTitle" TextColor="#001447" FontFamily="BreezeSans" PixelSize="28dp"/>
+ <TextLabelStyle x:Key="DetailTitle" TextColor="#001447" FontFamily="BreezeSans" PixelSize="32sp"/>
+ <TextLabelStyle x:Key="DetailSubTitle" TextColor="#001447" FontFamily="BreezeSans" PixelSize="28sp"/>
<c:AlertDialogStyle x:Key="Dialogs" BackgroundImage="*Resource*/images/light/alert_dialog_bg.png" />