Skip to content

SymbolIcon still doesn't work on Android and is clipped on WebASM #1332

Closed

Description

@TopperDEL

Current behavior

The SymbolIcon does not Show correctly on Android as stated in #273.

Expected behavior

The SymbolIcon renders exactly as it does with UWP.

How to reproduce it (as minimally and precisely as possible)

Simply create a new Uno-App with the VS-templates and add the following line to the MainPage.xaml after the TextBlock with "Hello World" in it:

<SymbolIcon Symbol="Add"/>

This renders the SymbolIcon with the "missing Image" as seen int #273.

Environment

Windows

Nuget Package: v1.45

Package Version(s): VS-PlugIn v1.45.0.1862

Affected platform(s):

  • [?] iOS
  • Android
  • WebAssembly
  • Windows
  • Build tasks

Visual Studio

  • 2017 (version: )
  • 2019 (version: )
  • for Mac (version: )

Relevant plugins

  • Resharper (version: )

Anything else we need to know?

Activity

  1. added
    kind/bug
    triage/untriaged
    on Jul 31, 2019
  2. added
    platform/android 🤖
    and removed
    triage/untriaged
    on Aug 1, 2019
  3. ghuntley commented on Aug 1, 2019

    @ghuntley
    Member

    howdy @TopperDEL, I can confirm on Android that this has regressed. SymbolIcon works fine on iOS but is cropped on WASM when using the latest -dev package aka master. It should be relatively to resolve so let's ear mark this one as help wanted.

    Would you be interested in sending in a PR? I'm more than happy to pair-program with first time contributors via skype/zoom/hangouts and walk people through the codebase.

    screenshots

    android - api27

    image

    ios

    image

    wasm

    image

    next steps

    • resolve defect on Android and WASM
    • add more SymbolIcon scenarios to SamplesApp so that screenshot regression testing catches this in the future
    • enable automated UI testing for these scenarios

    related files in the codebase

    GitHub
    Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported. - unoplatform/uno
  4. added
    platform/wasm 🌐
    kind/regression
    good first issue
    help wanted
    on Aug 1, 2019
  5. changed the title [-]SymbolIcon still doesn't work on Android[/-] [+]SymbolIcon still doesn't work on Android and is clipped on WebASM[/+] on Aug 1, 2019
  6. jeromelaban commented on Aug 1, 2019

    @jeromelaban
    Member

    The Wasm issue may be related to #693, where fonts are measured incorrectly as they are loaded lazily by the browser. For Android, this may be related to the missing Symbol font in the default template.

  7. TopperDEL commented on Aug 6, 2019

    @TopperDEL
    ContributorAuthor

    Sorry, did not get any GitHub notifications - therefore my late Reply. Need to check my spam-Folder. :)

    Thank you for your offer to help me with a first PR on this one @ghuntley! Unfortunately I don't know where I can cut the time off, currently. I'm happy when I just can concentrate a Little bit on my private Project, though I would really love to help you out here (and learn from you!).

    For this case I have to reject, then, and feel very sorry About it!

  8. ghuntley commented on Aug 8, 2019

    @ghuntley
    Member

    nps, open-offer if your situation changes or to anyone else.

  9. pkar70 commented on Sep 10, 2019

    @pkar70
    Contributor

    I looked throu source, and although I'm not expert in this code, maybe problem is:

    https://github.com/unoplatform/uno/blob/master/src/Uno.UI/FeatureConfiguration.cs
    line 203
    #if !ANDROID
    shouldn't it be:
    #if !__ANDROID__
    ?

    GitHub
    Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported. - unoplatform/uno
  10. TopperDEL commented on Oct 1, 2019

    @TopperDEL
    ContributorAuthor

    On Android it is working now as expected - so from my Point of view this one can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wantedkind/bugkind/regressionplatform/android 🤖platform/wasm 🌐

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions