小编Ene*_*niz的帖子

Xamarin GIF 动画

我刚刚开始开发 Xamarin 但遇到了一个问题我有一个登录屏幕,我想在那里播放 gif,但不幸的是没有图像出现

适用于 png 和 jpeg 文件

我的代码如下;

Content = new StackLayout
            {
                Padding = new Thickness(10, 40, 10, 10),
                Children = {
                    new Label { Text = "Versiyon:"+DependencyService.Get<INativeCall>().getApplicationVersion(), FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label)), TextColor = Color.White, HorizontalTextAlignment=TextAlignment.Center },
                    new Image { Source = "a.gif" },
                    username,
                    password,
                    btnLogin,
                    indicator,
                    infoServer,
                    infoUpdate
                }
            };
Run Code Online (Sandbox Code Playgroud)

xamarin.android xamarin

2
推荐指数
1
解决办法
9307
查看次数

标签 统计

xamarin ×1

xamarin.android ×1