我正在尝试设计一个类似于Instagram的UI(这是一种练习),并且无法显示URL中的图像。似乎该代码是正确的,但是不起作用。
<StackLayout>
<Label TextColor="Black" Text="nyc_photographer"/>
</StackLayout>
<!--Image not showing-->
<Image Source="http://lorempixel.com/1920/1080/nature/3/"/>
<StackLayout Orientation="Horizontal" Spacing="20">
<Button TextColor="Blue" Text="Like" BackgroundColor="Transparent" />
<Button TextColor="Blue" Text="Comment" BackgroundColor="Transparent"/>
<Button TextColor="Blue" Text="Share" BackgroundColor="Transparent"/>
</StackLayout>
<StackLayout>
<BoxView Color="#f0f0f0" HeightRequest="1" />
<Label Text="700 likes" FontAttributes="Bold" TextColor="Black"/>
<Label TextColor="#444" Text="This is a shot yesterday in Skanor, Sweden, when driving home, from a couple of days of work in Denmark." />
</StackLayout>
</StackLayout>
在昵称nyc_photographer和“赞”按钮之后,将出现图像。 我显示了预期结果的图像。