This repository has been archived by the owner on May 1, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue5172.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
using System; | ||
using Xamarin.Forms.CustomAttributes; | ||
using Xamarin.Forms.Internals; | ||
|
||
#if UITEST | ||
using Xamarin.Forms.Core.UITests; | ||
using Xamarin.UITest; | ||
using NUnit.Framework; | ||
#endif | ||
|
||
namespace Xamarin.Forms.Controls.Issues | ||
{ | ||
#if UITEST | ||
[Category(UITestCategories.ManualReview)] | ||
#endif | ||
[Preserve(AllMembers = true)] | ||
[Issue(IssueTracker.Github, 5172, "ImageCell does not load image from URI - Android", PlatformAffected.Android)] | ||
public class Issue5172 : TestContentPage // or TestMasterDetailPage, etc ... | ||
{ | ||
protected override void Init() | ||
{ | ||
Label header = new Label | ||
{ | ||
Text = "Please make sure a image is shown in the ImageCell bellow", | ||
FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label)), | ||
HorizontalOptions = LayoutOptions.Center | ||
}; | ||
|
||
TableView tableView = new TableView | ||
{ | ||
Intent = TableIntent.Form, | ||
Root = new TableRoot | ||
{ | ||
new TableSection | ||
{ | ||
new ImageCell | ||
{ | ||
// Some differences with loading images in initial release. | ||
ImageSource = ImageSource.FromUri(new Uri("https://i0.wp.com/www.thedudes.com.br/wp-content/uploads/2018/06/Vitrine-Perfil-dos-Dudes-04.png")), | ||
Text = "This is an ImageCell", | ||
Detail = "This is some detail text", | ||
} | ||
} | ||
} | ||
}; | ||
|
||
Padding = new Thickness(10, 20, 10, 5); | ||
|
||
Content = new StackLayout | ||
{ | ||
Children = | ||
{ | ||
header, | ||
tableView | ||
} | ||
}; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters