This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void IMediaService.ClearFiles(List<string> filePaths) | |
| { | |
| var documentsDirectory = Environment.GetFolderPath | |
| (Environment.SpecialFolder.Personal); | |
| if (Directory.Exists(documentsDirectory)) | |
| { | |
| foreach (var p in filePaths) | |
| { | |
| File.Delete(p); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [assembly: Xamarin.Forms.Dependency(typeof(MediaService))] | |
| namespace SelectMultiIpleImagesApp.iOS | |
| { | |
| public class MediaService : IMediaService | |
| { | |
| public async Task OpenGallery() | |
| { | |
| var picker = ELCImagePickerViewController.Create(15); | |
| picker.MaximumImagesCount = 15; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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:local="clr-namespace:LottieSample" | |
| x:Class="LottieSample.LottieSamplePage" | |
| xmlns:forms="clr-namespace:Lottie.Forms;assembly=Lottie.Forms"> | |
| <ContentPage.Content> | |
| <StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> | |
| <forms:AnimationView | |
| x:Name="AnimationView" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using FontSample.Droid.Renderers; | |
| using Xamarin.Forms; | |
| using Xamarin.Forms.Platform.Android; | |
| [assembly: ExportRenderer(typeof(Xamarin.Forms.Entry), typeof(CustomEntryRenderer))] | |
| namespace FontSample.Droid.Renderers | |
| { | |
| public class CustomEntryRenderer : EntryRenderer | |
| { | |
| protected override void OnElementChanged(ElementChangedEventArgs<Xamarin.Forms.Entry> e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using Android.Graphics; | |
| using FontSample.Droid; | |
| using Xamarin.Forms; | |
| using Xamarin.Forms.Platform.Android; | |
| [assembly: ExportRenderer(typeof(Label), typeof(CustomLabelRenderer))] | |
| namespace FontSample.Droid | |
| { | |
| public class CustomLabelRenderer: LabelRenderer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <Application xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| x:Class="FontSample.App"> | |
| <Application.Resources> | |
| <ResourceDictionary> | |
| <Style TargetType="NavigationPage"> | |
| <Setter Property="BackgroundColor" Value="White" /> | |
| <Setter Property="BarBackgroundColor" Value="#08adcf" /> | |
| </Style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <prism:PrismApplication xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| x:Class="PrismUnitySample.App" | |
| xmlns:prism="clr-namespace:Prism.Unity;assembly=Prism.Unity.Forms"> | |
| </prism:PrismApplication> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Prism.Unity; | |
| using Xamarin.Forms; | |
| namespace PrismUnitySample | |
| { | |
| public partial class App : PrismApplication | |
| { | |
| public App(IPlatformInitializer initializer = null) : base(initializer) { } | |
| protected override void OnInitialized() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Register("AppDelegate")] | |
| public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate | |
| { | |
| public override bool FinishedLaunching(UIApplication app, NSDictionary options) | |
| { | |
| global::Xamarin.Forms.Forms.Init(); | |
| LoadApplication(new App(new iOSInitializer())); | |
| return base.FinishedLaunching(app, options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Activity(Label = "PrismUnitySample.Droid", Icon = "@drawable/icon", Theme = "@style/MyTheme", 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); |