You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
To have multiple Android applications sharing the same resources mostly images, there's an Android class library containing the resources and assets, referenced by each Android app project. This has been working well with Xamarin.Forms 3.6 and previous versions. However, with Xamarin.Forms 4.0, images in buttons are not shown, while standalone images are shown.
The master branch is with Xamarin.Forms 4 and Android app project that contains Resources. This is working well.
The ResourcesInLib is with Xamarin.Forms 4 and Android class project that contain Resources. Image of the button is not shown, while the standalone Image is OK
<StackLayout>
<ImageSource="eye_24.png"/>
<LabelText="Welcome to Xamarin.Forms!"HorizontalOptions="Center"VerticalOptions="CenterAndExpand" />
<ButtonImageSource="eye_24.png"Text="Eye"/>
</StackLayout>
Expected Behavior
Image of button is shown.
Actual Behavior
Image of button is not shown.
Debug Output:
[0:] FileImageSourceHandler: Could not find image or image file was invalid: File: eye_24.png05-28 21:39:04.011 W/ResourceType(25284): No package identifier when getting value for resource number 0x00000000
05-28 21:39:04.060 W/ResourceType(25284): No package identifier when getting value for resource number 0x00000000
[0:] FileImageSourceHandler: Could not find image or image file was invalid: File: eye_24.png
Basic Information
Version with issue: Xamarin.Forms 4 (4.0.0.425677)
I had just filed #6343 which might be related to this issue. After you Xamarin team fixing this, please ensure things work well with Xamarin.Forms.Visual.Material 4.
@PureWeen, No. And I had even better workaround: symbolic links, which I had used in much older Xamarin releases.. However, I would prefer proper solution supported by 3.6.
Description
To have multiple Android applications sharing the same resources mostly images, there's an Android class library containing the resources and assets, referenced by each Android app project. This has been working well with Xamarin.Forms 3.6 and previous versions. However, with Xamarin.Forms 4.0, images in buttons are not shown, while standalone images are shown.
Steps to Reproduce
Repository at https://github.com/zijianhuang/xamarinforms4bugs is demonstrating good ones and bad ones.
The master branch is with Xamarin.Forms 4 and Android app project that contains Resources. This is working well.
The ResourcesInLib is with Xamarin.Forms 4 and Android class project that contain Resources. Image of the button is not shown, while the standalone Image is OK
Expected Behavior
Image of button is shown.
Actual Behavior
Image of button is not shown.
Debug Output:
Basic Information
Version with issue: Xamarin.Forms 4 (4.0.0.425677)
Last known good version: Xamarin.Forms 3.6
IDE: Visual Studio 2017 Pro
Platform Target Frameworks:
Reproduction Link
https://github.com/zijianhuang/xamarinforms4bugs/tree/ResourcesInLib/
The text was updated successfully, but these errors were encountered: