add Android version

This commit is contained in:
2020-05-11 23:18:38 +08:00
parent 9f5685a2f8
commit 4561bc2674
53 changed files with 14716 additions and 63 deletions

View File

@@ -1,5 +1,4 @@
using System;
using Xamarin.Essentials;
using Xamarin.Essentials;
using Xamarin.Forms;
namespace Pixiview.UI
@@ -25,8 +24,12 @@ namespace Pixiview.UI
public const string IconSolidFontFamily = "FontAwesome5Pro-Solid";
public const string IconLeft = "\uf104";
#else
// TODO
#elif __ANDROID__
public const string IconLightFontFamily = "fa-light-300.ttf#FontAwesome5Pro-Light";
public const string IconRegularFontFamily = "fa-regular-400.ttf#FontAwesome5Pro-Regular";
public const string IconSolidFontFamily = "fa-solid-900.ttf#FontAwesome5Pro-Solid";
public const string IconLeft = "\uf053";
#endif
public const string IconUser = "\uf007";
@@ -103,7 +106,7 @@ namespace Pixiview.UI
}
#endif
}
catch (Exception ex)
catch (System.Exception ex)
{
App.DebugError("device.get", $"failed to get the device model. {ex.Message}");
}