This file contains 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
// Use this to display a white frame when the app is in background | |
public override void OnResignActivation(UIApplication uiApplication) | |
{ | |
var view = new UIView(uiApplication.KeyWindow.Frame) | |
{ | |
BackgroundColor = UIColor.Green, | |
Tag = new nint(101) | |
}; | |
uiApplication.KeyWindow.AddSubview(view); | |
uiApplication.KeyWindow.BringSubviewToFront(view); |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Offline</title> | |
</head> | |
<body style="margin:3em;font-family:sans-serif"> | |
<h2>Offline</h2> | |
<p>This site is offline for maintenance.</p> | |
<!-- |
This file contains 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 System.IO; | |
using System.Net.Http; | |
using Plugin.XamarinFormsSaveOpenPDFPackage; | |
using Xamarin.Forms; | |
namespace XamarinFormsSaveOpenPDFExemplo | |
{ | |
public partial class MainPage : ContentPage | |
{ |
This file contains 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" ?> | |
<paths xmlns:android="http://schemas.android.com/apk/res/android"> | |
<root-path name="root" path="." /> | |
</paths> |
This file contains 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"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="br.com.bertuzzi.xamarinformssaveopenpdfexemplo"> | |
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30" /> | |
<application android:label="XamarinFormsSaveOpenPDFExemplo.Android" android:theme="@style/MainTheme"> | |
<provider android:name="android.support.v4.content.FileProvider" android:authorities="${applicationId}.provider" android:exported="false" android:grantUriPermissions="true"> | |
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" /> | |
</provider> | |
</application> | |
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
This file contains 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 System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Android.Animation; | |
using Android.App; | |
using Android.Content; | |
using Android.OS; | |
using Android.Runtime; |
This file contains 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
<resources> | |
<color name="primary">#2196F3</color> | |
<color name="primaryDark">#1976D2</color> | |
<color name="white">#FFF</color> | |
<color name="black">#000</color> | |
<color name="accent">#FFC107</color> | |
<color name="window_background">#F5F5F5</color> | |
<drawable name="bg_color">#02d1c4</drawable> | |
</resources> |
This file contains 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" ?> | |
<resources> | |
<style name="MainTheme" parent="MainTheme.Base"> | |
<!-- As of Xamarin.Forms 4.6 the theme has moved into the Forms binary --> | |
<!-- If you want to override anything you can do that here. --> | |
<!-- Underneath are a couple of entries to get you started. --> | |
<!-- Set theme colors from https://aka.ms/material-colors --> | |
<!-- colorPrimary is used for the default action bar background --> |
This file contains 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"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<com.airbnb.lottie.LottieAnimationView | |
android:id="@+id/animation_view" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
app:lottie_fileName="loading_circle.json" |
This file contains 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" standalone="no"?> | |
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6245" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="X5k-f2-b5h"> | |
<dependencies> | |
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6238"/> | |
</dependencies> | |
<scenes> | |
<scene sceneID="EHf-IW-A2E"> | |
<objects> | |
<viewController id="01J-lp-oVM" sceneMemberID="viewController"> | |
<layoutGuides> |