当前位置: 首页 > news >正文

通城网站建设百度推广登陆

通城网站建设,百度推广登陆,做网站发广告,网站数据分析工具设计 我准备用 .NET Maui 实现一个非常有意思的 前往太空 的程序。第一步#xff0c;需要图片素材#xff0c;我使用了 Aan Ragil 的一组非常棒的 Dribbble 素材图片。当然#xff0c;你也可以在最下面的链接进行下载。实现 这个应用程序的完整源代码可以在 G…   设计  我准备用 .NET Maui 实现一个非常有意思的 前往太空 的程序。第一步需要图片素材我使用了 Aan Ragil 的一组非常棒的 Dribbble 素材图片。当然你也可以在最下面的链接进行下载。  实现  这个应用程序的完整源代码可以在 Github 上访问并下载。我们总共需要做三个页面。  初始化项目  我创建了一个空的 .NET Maui 程序。然后我禁用了每个页面上的导航栏然后设置了背景颜色主要是修改了 App.xaml 文件。!-- Content Page Style -- Style TargetTypeContentPage ApplyToDerivedTypesTrueSetter PropertyNavigationPage.HasNavigationBar ValueFalse /Setter PropertyBackgroundColor Value{StaticResource PageBackgroundColor} /Setter PropertyPadding Value0/ /Style!-- Navigation Page -- Style TargetTypeNavigationPage ApplyToDerivedTypesTrueSetter PropertyBackgroundColor Value{StaticResource PageBackgroundColor} / /Style对于安卓设备 使用 Android LifeCycle 事件让状态栏变为半透明。builder.UseMauiAppApp().ConfigureFonts(fonts {fonts.AddFont(Montserrat-Medium.ttf, RegularFont);fonts.AddFont(Montserrat-SemiBold.ttf, MediumFont);fonts.AddFont(Montserrat-Bold.ttf, BoldFont);}).ConfigureLifecycleEvents(events { #if ANDROIDevents.AddAndroid(android  android.OnCreate((activity, bundle)  MakeStatusBarTranslucent(activity)));static void MakeStatusBarTranslucent(Android.App.Activity activity){activity.Window.SetFlags(Android.Views.WindowManagerFlags.LayoutNoLimits, Android.Views.WindowManagerFlags.LayoutNoLimits);activity.Window.ClearFlags(Android.Views.WindowManagerFlags.TranslucentStatus);activity.Window.SetStatusBarColor(Android.Graphics.Color.Transparent);} #endif});为了让视图覆盖底部每个页面使用了 IgnoreSafeArea 属性。ContentPage Grid IgnoreSafeArea{OnPlatform AndroidFalse, iOSTrue} /Grid  /ContentPage为了简单起见我没有使用 MVVM 模式而是普通的 Maui UI 结构。创建了一个 **Planet **类来保存有关行星的信息并创建了一个 PlanetService 服务。初始页接下来是初始页面我把它分成了两部分。上部分由每个行星的单独图像组成的。我使用了 HorizontalOptions、VerticalOptions、TranslationX、TranslationY、WidthRequest 和 HeightRequest 控制每个图像的位置和大小。Image Sourceearth.png VerticalOptionsStart HorizontalOptions Center TranslationX-48 TranslationY148 WidthRequest96 HeightRequest96/下部分我没有使用 Frame 控件而是使用了更轻量的 Border 控件。Border Padding24,32 BackgroundColor{StaticResource FrameBackgroundColor} Stroke{StaticResource BorderColor} HorizontalOptionsFill VerticalOptionsEnd Margin20 Border.StrokeShapeRoundRectangle CornerRadius24/ /Border.StrokeShapeVerticalStackLayoutSpacing16LabelHorizontalOptionsCenterHorizontalTextAlignmentCenterStyle{StaticResource IntroPageHeaderStyle}TextHello!/LabelHorizontalOptionsCenterHorizontalTextAlignmentCenterLineBreakModeWordWrapStyle{StaticResource IntroPageTextStyle}TextWant to know and explain all things about the planets in the Milky Way galaxy?/ButtonStyle{StaticResource ButtonStyle}TextExplore NowHorizontalOptionsCenterMargin0,12,0,6ClickedExploreNow_Clicked//VerticalStackLayout/Border看一下第一个页面的效果。看起来还不错吧我们还可以设置淡入的效果加一些动画。protected override async void OnAppearing(){base.OnAppearing();if (this.AnimationIsRunning(TransitionAnimation))return;var parentAnimation  new Animation();//Planets AnimationparentAnimation.Add(0, 0.2, new Animation(v  imgMercury.Opacity  v, 0, 1, Easing.CubicIn));parentAnimation.Add(0.1, 0.3, new Animation(v  imgVenus.Opacity  v, 0, 1, Easing.CubicIn));parentAnimation.Add(0.2, 0.4, new Animation(v  imgEarth.Opacity  v, 0, 1, Easing.CubicIn));parentAnimation.Add(0.3, 0.5, new Animation(v  imgMars.Opacity  v, 0, 1, Easing.CubicIn));parentAnimation.Add(0.4, 0.6, new Animation(v  imgJupiter.Opacity  v, 0, 1, Easing.CubicIn));parentAnimation.Add(0.5, 0.7, new Animation(v  imgSaturn.Opacity  v, 0, 1, Easing.CubicIn));parentAnimation.Add(0.6, 0.8, new Animation(v  imgNeptune.Opacity  v, 0, 1, Easing.CubicIn));parentAnimation.Add(0.7, 0.9, new Animation(v  imgUranus.Opacity  v, 0, 1, Easing.CubicIn));//Intro Box AnimationparentAnimation.Add(0.7, 1, new Animation(v  frmIntro.Opacity  v, 0, 1, Easing.CubicIn));//Commit the animationparentAnimation.Commit(this, TransitionAnimation, 16, 3000, null, null);}差不多完成了我们看一下在手机上最后的效果非常酷你可以在下面的地址找到它的源代码和素材信息。https://github.com/naweed/MauiPlanetshttps://dribbble.com/shots/15592060-Planet-Mobile-AppEND
http://www.huolong8.cn/news/36394/

相关文章:

  • 南阳网站关键词十大效果图网站
  • 百度推广送的公司网站有什么用wordpress发布十万篇文章
  • 保险公司招聘网站中英切换的网站咋做
  • 南谯区住房和城乡建设局网站建立门户网站的步骤
  • 在哪建企业网站好网站建设托管pfthost
  • 小区服务网站怎么做免费推广平台排行
  • 阿里云备案 网站服务内容陕西 网站建设 陕ICP
  • 关于国家对网站建设公众号开发收费价目表
  • 做公众号首图的设计网站mip网站有什么好处
  • 网站建设个人学网站开发怎么就业
  • 做电商网站都需要学什么条件销售怎样找精准客户
  • 九江做网站公司怀化订水网站
  • 网站开发使用数据库的好处wordpress 外链视频
  • 织梦网站如何做地区分站php在网站开发中的作用
  • 大多数网站开发现状wordpress输网址采集
  • 南浦电商网站建设自媒体123网站
  • 北京 好的网站制作注册公司
  • 做网络销售都做什么网站网站服务器基本配置
  • 建一个企业网站多少钱阿里巴巴网站服务器成本
  • 实训做网站收获安徽建设部网站
  • 免费网站大全做企业网站有前途吗
  • 个人域名可以建公司网站吗域名的定义
  • 企业网站网站建设价格php企业网站整站源码
  • 江西网站建设推广自己做儿童衣服教程的网站
  • 做服饰的有哪些网站wordpress的根目录
  • 西安网站网络营销wordpress添加页面的代码
  • 在建设厅网站上下载资质标准建设网站比较好的公司吗
  • 制作网站域名需要多少钱在哪个网站做劳动用工备案
  • 建设通同类网站电影网站如何优化
  • wordpress突然访问不了导航网站怎么做seo