Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

AirBnB.Design – Using Lottie [Xamarin.Forms] #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions LottieDemo/LottieDemo.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27428.2015
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LottieDemo.Android", "LottieDemo\LottieDemo.Android\LottieDemo.Android.csproj", "{F68C9FD9-264D-4D69-91EF-E69890254E5E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LottieDemo.iOS", "LottieDemo\LottieDemo.iOS\LottieDemo.iOS.csproj", "{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LottieDemo", "LottieDemo\LottieDemo\LottieDemo.csproj", "{5532709D-3A5A-4EB3-8EBC-E87C4209C393}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
Ad-Hoc|iPhone = Ad-Hoc|iPhone
Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator
AppStore|Any CPU = AppStore|Any CPU
AppStore|iPhone = AppStore|iPhone
AppStore|iPhoneSimulator = AppStore|iPhoneSimulator
Debug|Any CPU = Debug|Any CPU
Debug|iPhone = Debug|iPhone
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Release|Any CPU = Release|Any CPU
Release|iPhone = Release|iPhone
Release|iPhoneSimulator = Release|iPhoneSimulator
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Ad-Hoc|iPhone.Deploy.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.AppStore|Any CPU.Build.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.AppStore|Any CPU.Deploy.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.AppStore|iPhone.ActiveCfg = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.AppStore|iPhone.Build.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.AppStore|iPhone.Deploy.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.AppStore|iPhoneSimulator.Deploy.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Debug|iPhone.Build.0 = Debug|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Debug|iPhone.Deploy.0 = Debug|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Release|Any CPU.Build.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Release|Any CPU.Deploy.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Release|iPhone.ActiveCfg = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Release|iPhone.Build.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Release|iPhone.Deploy.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{F68C9FD9-264D-4D69-91EF-E69890254E5E}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.AppStore|iPhone.Build.0 = AppStore|iPhone
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.Debug|Any CPU.ActiveCfg = Debug|iPhone
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.Debug|iPhone.ActiveCfg = Debug|iPhone
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.Debug|iPhone.Build.0 = Debug|iPhone
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.Release|Any CPU.ActiveCfg = Release|iPhone
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.Release|iPhone.ActiveCfg = Release|iPhone
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.Release|iPhone.Build.0 = Release|iPhone
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{7024D0EA-AE23-4024-BEA2-1F69CB5F66C6}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.AppStore|Any CPU.Build.0 = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.AppStore|iPhone.Build.0 = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Debug|iPhone.Build.0 = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Release|Any CPU.Build.0 = Release|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Release|iPhone.ActiveCfg = Release|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Release|iPhone.Build.0 = Release|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{5532709D-3A5A-4EB3-8EBC-E87C4209C393}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {15274109-074B-403D-8C53-29B48BFFC6B5}
EndGlobalSection
EndGlobal
19 changes: 19 additions & 0 deletions LottieDemo/LottieDemo/LottieDemo.Android/Assets/AboutAssets.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Any raw assets you want to be deployed with your application can be placed in
this directory (and child directories) and given a Build Action of "AndroidAsset".

These files will be deployed with you package and will be accessible using Android's
AssetManager, like this:

public class ReadAsset : Activity
{
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);

InputStream input = Assets.Open ("my_asset.txt");
}
}

Additionally, some Android functions will automatically load asset files:

Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");

Large diffs are not rendered by default.

93 changes: 93 additions & 0 deletions LottieDemo/LottieDemo/LottieDemo.Android/LottieDemo.Android.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{F68C9FD9-264D-4D69-91EF-E69890254E5E}</ProjectGuid>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<RootNamespace>LottieDemo.Droid</RootNamespace>
<AssemblyName>LottieDemo.Android</AssemblyName>
<TargetFrameworkVersion>v8.1</TargetFrameworkVersion>
<AndroidApplication>True</AndroidApplication>
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<AndroidResgenClass>Resource</AndroidResgenClass>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<AndroidUseLatestPlatformSdk>true</AndroidUseLatestPlatformSdk>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidLinkMode>None</AndroidLinkMode>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidManagedSymbols>true</AndroidManagedSymbols>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Com.Airbnb.Xamarin.Forms.Lottie">
<Version>2.5.2.1</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="2.5.0.280555" />
<PackageReference Include="Xamarin.Android.Support.Design" Version="25.4.0.2" />
<PackageReference Include="Xamarin.Android.Support.v7.AppCompat" Version="25.4.0.2" />
<PackageReference Include="Xamarin.Android.Support.v4" Version="25.4.0.2" />
<PackageReference Include="Xamarin.Android.Support.v7.CardView" Version="25.4.0.2" />
<PackageReference Include="Xamarin.Android.Support.v7.MediaRouter" Version="25.4.0.2" />
</ItemGroup>
<ItemGroup>
<Compile Include="MainActivity.cs" />
<Compile Include="Resources\Resource.Designer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<AndroidAsset Include="Assets\LottieLogo1.json" />
<None Include="Resources\AboutResources.txt" />
<None Include="Assets\AboutAssets.txt" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\icon.png" />
<AndroidResource Include="Resources\drawable-hdpi\icon.png" />
<AndroidResource Include="Resources\drawable-xhdpi\icon.png" />
<AndroidResource Include="Resources\drawable-xxhdpi\icon.png" />
</ItemGroup>
<ItemGroup>
<None Include="Properties\AndroidManifest.xml" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\layout\Tabbar.axml" />
<AndroidResource Include="Resources\layout\Toolbar.axml" />
<AndroidResource Include="Resources\values\styles.xml">
<SubType>Designer</SubType>
</AndroidResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\LottieDemo\LottieDemo.csproj">
<Project>{ED1561D7-FB4A-4E80-8DB2-00E0D4E73482}</Project>
<Name>LottieDemo</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>
27 changes: 27 additions & 0 deletions LottieDemo/LottieDemo/LottieDemo.Android/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;

using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;

namespace LottieDemo.Droid
{
[Activity(Label = "LottieDemo", Icon = "@drawable/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate(Bundle bundle)
{
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;

base.OnCreate(bundle);

global::Xamarin.Forms.Forms.Init(this, bundle);
LoadApplication(new App());
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.LottieDemo">
<uses-sdk android:minSdkVersion="15" />
<application android:label="LottieDemo.Android"></application>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Android.App;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("LottieDemo.Android")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LottieDemo.Android")]
[assembly: AssemblyCopyright("Copyright © 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

// Add some common permissions, these can be removed if not needed
[assembly: UsesPermission(Android.Manifest.Permission.Internet)]
[assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
Images, layout descriptions, binary blobs and string dictionaries can be included
in your application as resource files. Various Android APIs are designed to
operate on the resource IDs instead of dealing with images, strings or binary blobs
directly.

For example, a sample Android app that contains a user interface layout (main.xml),
an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
would keep its resources in the "Resources" directory of the application:

Resources/
drawable-hdpi/
icon.png

drawable-ldpi/
icon.png

drawable-mdpi/
icon.png

layout/
main.xml

values/
strings.xml

In order to get the build system to recognize Android resources, set the build action to
"AndroidResource". The native Android APIs do not operate directly with filenames, but
instead operate on resource IDs. When you compile an Android application that uses resources,
the build system will package the resources for distribution and generate a class called
"Resource" that contains the tokens for each one of the resources included. For example,
for the above Resources layout, this is what the Resource class would expose:

public class Resource {
public class drawable {
public const int icon = 0x123;
}

public class layout {
public const int main = 0x456;
}

public class strings {
public const int first_string = 0xabc;
public const int second_string = 0xbcd;
}
}

You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main
to reference the layout/main.xml file, or Resource.strings.first_string to reference the first
string in the dictionary file values/strings.xml.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent">
<Button android:id="@+id/myButton" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/hello" />
</LinearLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.TabLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/sliding_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:tabIndicatorColor="@android:color/white"
app:tabGravity="fill"
app:tabMode="fixed" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<android.support.v7.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:popupTheme="@style/ThemeOverlay.AppCompat.Light" />

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, Click Me!</string>
<string name="app_name">LottieDemo.Droid</string>
</resources>
Loading