Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Xamarin.Forms;
- using Xamarin.Forms.Xaml;
- using GenTree.Views;
- using System.Threading.Tasks;
- [assembly: XamlCompilation (XamlCompilationOptions.Compile)]
- namespace GenTree
- {
- public partial class App : Application
- {
- public App ()
- {
- InitializeComponent();
- MainPage = new NavigationPage(new MainPage());
- MainPage.Navigation.PushAsync(new Intro());
- Task.Delay(5000).Wait();
- MainPage.Navigation.PopAsync();
- MainPage.BackgroundColor = Color.LightSeaGreen;
- MainPage.Title = "GenTree";
- MainPage.Icon = "logo.png";
- }
- protected override void OnStart ()
- {
- // Handle when your app starts
- }
- protected override void OnSleep ()
- {
- // Handle when your app sleeps
- }
- protected override void OnResume ()
- {
- // Handle when your app resumes
- }
- }
- }
- <?xml version="1.0" encoding="utf-8" ?>
- <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:forms="clr-namespace:Lottie.Forms;assembly=Lottie.Forms"
- x:Class="GenTree.Views.Intro">
- <ContentPage.Content>
- <StackLayout>
- <forms:AnimationView
- x:Name="animationViewProfile"
- Animation="user_connection.json"
- Loop="True"
- AutoPlay="True"
- HeightRequest="150"
- WidthRequest="150"/>
- <Label Text="GenTree" TextColor="Blue" FontSize="Large"
- VerticalOptions="CenterAndExpand"
- HorizontalOptions="CenterAndExpand" />
- </StackLayout>
- </ContentPage.Content>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement