Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows device support #1

Open
ChaseFlorell opened this issue Jan 26, 2016 · 1 comment
Open

Windows device support #1

ChaseFlorell opened this issue Jan 26, 2016 · 1 comment

Comments

@ChaseFlorell
Copy link
Owner

@ChaseFlorell ChaseFlorell commented Jan 26, 2016

After having a conversation with @adamped on the Xamarin Forms forum [link], I think we need an open issue around Windows device support (WP8.1 SL/RT and UWP).
This is what Adam came up with as a starting point.

WP8.1 SL just auto scales downwards

  <add key="wp81" pathFormat="{0}\WP81\{1}" scale="1" />

WP8.1 RT

  <add key="wpa81-100" pathFormat="{0}\WPA81\{1}.scale-100" scale="2.4" />
  <add key="wpa81-140" pathFormat="{0}\WPA81\{1}.scale-140" scale="1.714285714285714" />
  <add key="wpa81-180" pathFormat="{0}\WPA81\{1}.scale-180" scale="1.3333334" />
  <add key="wpa81-240" pathFormat="{0}\WPA81\{1}.scale-240" scale="1" />

UWP

  <add key="uwp-100" pathFormat="{0}\UWP\{1}.scale-100" scale="4" />
  <add key="uwp-125" pathFormat="{0}\UWP\{1}.scale-125" scale="3.2" />
  <add key="uwp-150" pathFormat="{0}\UWP\{1}.scale-150" scale="2.66666667" />
  <add key="uwp-200" pathFormat="{0}\UWP\{1}.scale-200" scale="2" />
  <add key="uwp-400" pathFormat="{0}\UWP\{1}.scale-400" scale="1" />
@ChaseFlorell

This comment has been minimized.

Copy link
Owner Author

@ChaseFlorell ChaseFlorell commented Jan 26, 2016

Note: We're still in the early stages, so we can always adjust the scale of the other platforms and require an even larger original image. Here's what I know now.

Given the expected image size on screen being 40 x 40, the input size needs to be 120 x 120 (currently).

Scale Android iOS WP SL WP RT UWP
4 30 x 30 (ldpi)
3 40x40 (mdpi) 40x40 (1x)
2 60x60 (hdpi)
1.5 80x80 (xhdpi) 80x80 (2x)
1 120 x 120(xxhdpi) 120x120(3x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.