public static int albumBaseViewHeight = 138.SpToPx();
public static int albumBackgroundWidth = 122.SpToPx();
public static int albumBackgroundHeight = 102.SpToPx();
- public static Extents customAlbumTitlePadding = new Extents(16, 16, 24, 0).SpToPx();
+ public static Extents customAlbumTitlePadding = new Extents(16, 16, 0, 0).SpToPx();
public static Extents itemPadding = new Extents(8, 8, 8, 8).SpToPx();
public static Extents albumLayoutBaseViewPadding = new Extents(0, 0, 8, 0).SpToPx();
public static Size2D thumbnailSize = new Size2D(114, 114).SpToPx();
public static int customItemHeight = 64.SpToPx();
public static int albumTitleHeight = 32.SpToPx();
- public static Extents backButtonMargin = new Extents(16, 8, 8, 8).SpToPx();
- public static Extents albumTitleMargin = new Extents(0, 16, 16, 16).SpToPx();
+ public static Extents backButtonMargin = new Extents(16, 8, 0, 0).SpToPx();
public static Extents saveButtonMargin = new Extents(0, 64, 8, 0).SpToPx();
+ public static Extents titleMargin = new Extents(0, 0, 24, 0).SpToPx();
public static int centerTextHeight = 32.SpToPx();
public static int centerTextPixelSize = 24.SpToPx();
public static int bottomViewHeight = 144.SpToPx();
- public static float bottomViewWidthRatio = 0.55f;
+ public static float bottomViewWidthRatio = 0.56f;
public static Size2D bottomViewItemsCellPadding = new Size2D(16, 0);
public static Extents bottomViewMargin = new Extents(0, 0, 0, 80).SpToPx();
public static int wallpaperListViewHeight = 114.SpToPx();
}
/// <summary>
- /// Looks up a localized string similar to Tap To Preview.
+ /// Looks up a localized string similar to Tap to preview.
/// </summary>
public static string IDS_TAP_TO_PREVIEW {
get {
<value>Save</value>
</data>
<data name="IDS_TAP_TO_PREVIEW" xml:space="preserve">
- <value>Tap To Preview</value>
+ <value>Tap to preview</value>
</data>
<data name="IDS_WALLPAPER" xml:space="preserve">
<value>Wallpaper</value>
<value>Save</value>
</data>
<data name="IDS_TAP_TO_PREVIEW" xml:space="preserve">
- <value>Tap To Preview</value>
+ <value>Tap to preview</value>
</data>
<data name="IDS_WALLPAPER" xml:space="preserve">
<value>Wallpaper</value>
{
StyleName = "ItemText",
PixelSize = 16.SpToPx(),
- HeightSpecification = AppCommon.albumIconTextHeight,
WidthSpecification = LayoutParamPolicies.MatchParent,
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
HeightSpecification = AppCommon.customItemHeight;
BackgroundColor = Color.Transparent;
Padding = AppCommon.customAlbumTitlePadding;
+ Margin = AppCommon.titleMargin;
ThemeChangeSensitive = true;
Layout = new RelativeLayout()
{
{
StyleName = "ItemText",
Text = LanguageResource.IDS_ALBUMS_TEXT,
+ HorizontalAlignment = HorizontalAlignment.Begin,
PixelSize = 24.SpToPx(),
- HeightSpecification = AppCommon.albumTitleHeight,
BackgroundColor = Color.Transparent,
};
Add(albumTitle);
- RelativeLayout.SetFillHorizontal(albumTitle, true);
+ RelativeLayout.SetVerticalAlignment(albumTitle, RelativeLayout.Alignment.Center);
}
protected override void Dispose(DisposeTypes type)
{
WidthSpecification = LayoutParamPolicies.MatchParent;
HeightSpecification = AppCommon.customItemHeight;
+ Margin = AppCommon.titleMargin;
BackgroundColor = Color.Transparent;
ThemeChangeSensitive = true;
Layout = new RelativeLayout();
};
backButton.Add(icon);
backButton.SetBinding(Control.CommandProperty, "BackButtonCommand");
-
+ RelativeLayout.SetVerticalAlignment(backButton, RelativeLayout.Alignment.Center);
albumTitle = new TextLabel()
{
StyleName = "ItemText",
PixelSize = 24.SpToPx(),
- HeightSpecification = AppCommon.albumTitleHeight,
HorizontalAlignment = HorizontalAlignment.Begin,
- Margin = AppCommon.albumTitleMargin,
BackgroundColor = Color.Transparent,
};
albumTitle.SetBinding(TextLabel.TextProperty, "AlbumName");
RelativeLayout.SetLeftTarget(albumTitle, backButton);
RelativeLayout.SetLeftRelativeOffset(albumTitle, 1.0f);
+ RelativeLayout.SetVerticalAlignment(albumTitle, RelativeLayout.Alignment.Center);
Add(backButton);
Add(albumTitle);
}
{
centerText = new TextLabel()
{
- HeightSpecification = AppCommon.centerTextHeight,
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
Text = MainPage.gadgetResourceManager.GetString(nameof(LanguageResource.IDS_TAP_TO_PREVIEW)),