├── KeyboardSample.Android ├── Assets │ └── AboutAssets.txt ├── KeyboardSample.Android.csproj ├── MainActivity.cs ├── Properties │ ├── AndroidManifest.xml │ └── AssemblyInfo.cs └── Resources │ ├── AboutResources.txt │ ├── Resource.designer.cs │ ├── drawable-hdpi │ └── ic_test.png │ ├── drawable-ldpi │ └── ic_test.png │ ├── drawable-mdpi │ └── ic_test.png │ ├── drawable-xhdpi │ └── ic_test.png │ ├── drawable-xxhdpi │ └── ic_test.png │ ├── drawable-xxxhdpi │ └── ic_test.png │ ├── layout │ ├── Tabbar.axml │ └── Toolbar.axml │ ├── mipmap-anydpi-v26 │ ├── icon.xml │ └── icon_round.xml │ ├── mipmap-hdpi │ ├── Icon.png │ └── launcher_foreground.png │ ├── mipmap-mdpi │ ├── icon.png │ └── launcher_foreground.png │ ├── mipmap-xhdpi │ ├── Icon.png │ └── launcher_foreground.png │ ├── mipmap-xxhdpi │ ├── Icon.png │ └── launcher_foreground.png │ ├── mipmap-xxxhdpi │ ├── Icon.png │ └── launcher_foreground.png │ └── values │ ├── colors.xml │ └── styles.xml ├── KeyboardSample.iOS ├── AppDelegate.cs ├── Assets.xcassets │ └── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon1024.png │ │ ├── Icon120.png │ │ ├── Icon152.png │ │ ├── Icon167.png │ │ ├── Icon180.png │ │ ├── Icon20.png │ │ ├── Icon29.png │ │ ├── Icon40.png │ │ ├── Icon58.png │ │ ├── Icon60.png │ │ ├── Icon76.png │ │ ├── Icon80.png │ │ └── Icon87.png ├── Entitlements.plist ├── Info.plist ├── KeyboardSample.iOS.csproj ├── Main.cs ├── Properties │ └── AssemblyInfo.cs ├── Renderers │ └── KeyboardViewRenderer.cs └── Resources │ ├── Default-568h@2x.png │ ├── Default-Portrait.png │ ├── Default-Portrait@2x.png │ ├── Default.png │ ├── Default@2x.png │ ├── LaunchScreen.storyboard │ ├── ic_test.png │ ├── ic_test@2x.png │ └── ic_test@3x.png ├── KeyboardSample.sln ├── KeyboardSample ├── App.xaml ├── App.xaml.cs ├── Controls │ └── KeyboardView.cs ├── KeyboardSample.csproj ├── MainPage.xaml └── MainPage.xaml.cs ├── LICENSE ├── README.md └── keyboard.gif /KeyboardSample.Android/Assets/AboutAssets.txt: -------------------------------------------------------------------------------- 1 | Any raw assets you want to be deployed with your application can be placed in 2 | this directory (and child directories) and given a Build Action of "AndroidAsset". 3 | 4 | These files will be deployed with you package and will be accessible using Android's 5 | AssetManager, like this: 6 | 7 | public class ReadAsset : Activity 8 | { 9 | protected override void OnCreate (Bundle bundle) 10 | { 11 | base.OnCreate (bundle); 12 | 13 | InputStream input = Assets.Open ("my_asset.txt"); 14 | } 15 | } 16 | 17 | Additionally, some Android functions will automatically load asset files: 18 | 19 | Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf"); 20 | -------------------------------------------------------------------------------- /KeyboardSample.Android/KeyboardSample.Android.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45} 7 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 8 | {c9e5eea5-ca05-42a1-839b-61506e0a37df} 9 | Library 10 | KeyboardSample.Droid 11 | KeyboardSample.Android 12 | True 13 | Resources\Resource.designer.cs 14 | Resource 15 | Properties\AndroidManifest.xml 16 | Resources 17 | Assets 18 | false 19 | v8.1 20 | Xamarin.Android.Net.AndroidClientHandler 21 | 22 | 23 | 24 | 25 | true 26 | portable 27 | false 28 | bin\Debug 29 | DEBUG; 30 | prompt 31 | 4 32 | None 33 | 34 | 35 | true 36 | pdbonly 37 | true 38 | bin\Release 39 | prompt 40 | 4 41 | true 42 | false 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | {0C171CA2-97BA-4C18-9951-7E10FB667803} 105 | KeyboardSample 106 | 107 | 108 | 109 | 110 | -------------------------------------------------------------------------------- /KeyboardSample.Android/MainActivity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using Android.App; 4 | using Android.Content.PM; 5 | using Android.Runtime; 6 | using Android.Views; 7 | using Android.Widget; 8 | using Android.OS; 9 | 10 | namespace KeyboardSample.Droid 11 | { 12 | [Activity(Label = "KeyboardSample", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] 13 | public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity 14 | { 15 | protected override void OnCreate(Bundle savedInstanceState) 16 | { 17 | TabLayoutResource = Resource.Layout.Tabbar; 18 | ToolbarResource = Resource.Layout.Toolbar; 19 | 20 | base.OnCreate(savedInstanceState); 21 | global::Xamarin.Forms.Forms.Init(this, savedInstanceState); 22 | LoadApplication(new App()); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /KeyboardSample.Android/Properties/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /KeyboardSample.Android/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using Android.App; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("KeyboardSample.Android")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("KeyboardSample.Android")] 14 | [assembly: AssemblyCopyright("Copyright © 2014")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | [assembly: ComVisible(false)] 18 | 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Build and Revision Numbers 27 | // by using the '*' as shown below: 28 | // [assembly: AssemblyVersion("1.0.*")] 29 | [assembly: AssemblyVersion("1.0.0.0")] 30 | [assembly: AssemblyFileVersion("1.0.0.0")] 31 | 32 | // Add some common permissions, these can be removed if not needed 33 | [assembly: UsesPermission(Android.Manifest.Permission.Internet)] 34 | [assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)] 35 | -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/AboutResources.txt: -------------------------------------------------------------------------------- 1 | Images, layout descriptions, binary blobs and string dictionaries can be included 2 | in your application as resource files. Various Android APIs are designed to 3 | operate on the resource IDs instead of dealing with images, strings or binary blobs 4 | directly. 5 | 6 | For example, a sample Android app that contains a user interface layout (main.xml), 7 | an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png) 8 | would keep its resources in the "Resources" directory of the application: 9 | 10 | Resources/ 11 | drawable-hdpi/ 12 | icon.png 13 | 14 | drawable-ldpi/ 15 | icon.png 16 | 17 | drawable-mdpi/ 18 | icon.png 19 | 20 | layout/ 21 | main.xml 22 | 23 | values/ 24 | strings.xml 25 | 26 | In order to get the build system to recognize Android resources, set the build action to 27 | "AndroidResource". The native Android APIs do not operate directly with filenames, but 28 | instead operate on resource IDs. When you compile an Android application that uses resources, 29 | the build system will package the resources for distribution and generate a class called 30 | "Resource" that contains the tokens for each one of the resources included. For example, 31 | for the above Resources layout, this is what the Resource class would expose: 32 | 33 | public class Resource { 34 | public class drawable { 35 | public const int icon = 0x123; 36 | } 37 | 38 | public class layout { 39 | public const int main = 0x456; 40 | } 41 | 42 | public class strings { 43 | public const int first_string = 0xabc; 44 | public const int second_string = 0xbcd; 45 | } 46 | } 47 | 48 | You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main 49 | to reference the layout/main.xml file, or Resource.strings.first_string to reference the first 50 | string in the dictionary file values/strings.xml. 51 | -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/drawable-hdpi/ic_test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.Android/Resources/drawable-hdpi/ic_test.png -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/drawable-ldpi/ic_test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.Android/Resources/drawable-ldpi/ic_test.png -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/drawable-mdpi/ic_test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.Android/Resources/drawable-mdpi/ic_test.png -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/drawable-xhdpi/ic_test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.Android/Resources/drawable-xhdpi/ic_test.png -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/drawable-xxhdpi/ic_test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.Android/Resources/drawable-xxhdpi/ic_test.png -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/drawable-xxxhdpi/ic_test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.Android/Resources/drawable-xxxhdpi/ic_test.png -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/layout/Tabbar.axml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/layout/Toolbar.axml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/mipmap-anydpi-v26/icon.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/mipmap-anydpi-v26/icon_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/mipmap-hdpi/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.Android/Resources/mipmap-hdpi/Icon.png -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/mipmap-hdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.Android/Resources/mipmap-hdpi/launcher_foreground.png -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/mipmap-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.Android/Resources/mipmap-mdpi/icon.png -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/mipmap-mdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.Android/Resources/mipmap-mdpi/launcher_foreground.png -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/mipmap-xhdpi/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.Android/Resources/mipmap-xhdpi/Icon.png -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/mipmap-xhdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.Android/Resources/mipmap-xhdpi/launcher_foreground.png -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/mipmap-xxhdpi/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.Android/Resources/mipmap-xxhdpi/Icon.png -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/mipmap-xxhdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.Android/Resources/mipmap-xxhdpi/launcher_foreground.png -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/mipmap-xxxhdpi/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.Android/Resources/mipmap-xxxhdpi/Icon.png -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFFFFF 4 | #3F51B5 5 | #303F9F 6 | #FF4081 7 | -------------------------------------------------------------------------------- /KeyboardSample.Android/Resources/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 24 | 27 | -------------------------------------------------------------------------------- /KeyboardSample.iOS/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | using Foundation; 6 | using UIKit; 7 | 8 | namespace KeyboardSample.iOS 9 | { 10 | // The UIApplicationDelegate for the application. This class is responsible for launching the 11 | // User Interface of the application, as well as listening (and optionally responding) to 12 | // application events from iOS. 13 | [Register("AppDelegate")] 14 | public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate 15 | { 16 | // 17 | // This method is invoked when the application has loaded and is ready to run. In this 18 | // method you should instantiate the window, load the UI into it and then make the window 19 | // visible. 20 | // 21 | // You have 17 seconds to return from this method, or iOS will terminate your application. 22 | // 23 | public override bool FinishedLaunching(UIApplication app, NSDictionary options) 24 | { 25 | global::Xamarin.Forms.Forms.Init(); 26 | LoadApplication(new App()); 27 | 28 | return base.FinishedLaunching(app, options); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "scale": "2x", 5 | "size": "20x20", 6 | "idiom": "iphone", 7 | "filename": "Icon40.png" 8 | }, 9 | { 10 | "scale": "3x", 11 | "size": "20x20", 12 | "idiom": "iphone", 13 | "filename": "Icon60.png" 14 | }, 15 | { 16 | "scale": "2x", 17 | "size": "29x29", 18 | "idiom": "iphone", 19 | "filename": "Icon58.png" 20 | }, 21 | { 22 | "scale": "3x", 23 | "size": "29x29", 24 | "idiom": "iphone", 25 | "filename": "Icon87.png" 26 | }, 27 | { 28 | "scale": "2x", 29 | "size": "40x40", 30 | "idiom": "iphone", 31 | "filename": "Icon80.png" 32 | }, 33 | { 34 | "scale": "3x", 35 | "size": "40x40", 36 | "idiom": "iphone", 37 | "filename": "Icon120.png" 38 | }, 39 | { 40 | "scale": "2x", 41 | "size": "60x60", 42 | "idiom": "iphone", 43 | "filename": "Icon120.png" 44 | }, 45 | { 46 | "scale": "3x", 47 | "size": "60x60", 48 | "idiom": "iphone", 49 | "filename": "Icon180.png" 50 | }, 51 | { 52 | "scale": "1x", 53 | "size": "20x20", 54 | "idiom": "ipad", 55 | "filename": "Icon20.png" 56 | }, 57 | { 58 | "scale": "2x", 59 | "size": "20x20", 60 | "idiom": "ipad", 61 | "filename": "Icon40.png" 62 | }, 63 | { 64 | "scale": "1x", 65 | "size": "29x29", 66 | "idiom": "ipad", 67 | "filename": "Icon29.png" 68 | }, 69 | { 70 | "scale": "2x", 71 | "size": "29x29", 72 | "idiom": "ipad", 73 | "filename": "Icon58.png" 74 | }, 75 | { 76 | "scale": "1x", 77 | "size": "40x40", 78 | "idiom": "ipad", 79 | "filename": "Icon40.png" 80 | }, 81 | { 82 | "scale": "2x", 83 | "size": "40x40", 84 | "idiom": "ipad", 85 | "filename": "Icon80.png" 86 | }, 87 | { 88 | "scale": "1x", 89 | "size": "76x76", 90 | "idiom": "ipad", 91 | "filename": "Icon76.png" 92 | }, 93 | { 94 | "scale": "2x", 95 | "size": "76x76", 96 | "idiom": "ipad", 97 | "filename": "Icon152.png" 98 | }, 99 | { 100 | "scale": "2x", 101 | "size": "83.5x83.5", 102 | "idiom": "ipad", 103 | "filename": "Icon167.png" 104 | }, 105 | { 106 | "scale": "1x", 107 | "size": "1024x1024", 108 | "idiom": "ios-marketing", 109 | "filename": "Icon1024.png" 110 | } 111 | ], 112 | "properties": {}, 113 | "info": { 114 | "version": 1, 115 | "author": "xcode" 116 | } 117 | } -------------------------------------------------------------------------------- /KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Entitlements.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /KeyboardSample.iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UIDeviceFamily 6 | 7 | 1 8 | 2 9 | 10 | UISupportedInterfaceOrientations 11 | 12 | UIInterfaceOrientationPortrait 13 | UIInterfaceOrientationLandscapeLeft 14 | UIInterfaceOrientationLandscapeRight 15 | 16 | UISupportedInterfaceOrientations~ipad 17 | 18 | UIInterfaceOrientationPortrait 19 | UIInterfaceOrientationPortraitUpsideDown 20 | UIInterfaceOrientationLandscapeLeft 21 | UIInterfaceOrientationLandscapeRight 22 | 23 | MinimumOSVersion 24 | 8.0 25 | CFBundleDisplayName 26 | KeyboardSample 27 | CFBundleIdentifier 28 | com.crossgeeks.KeyboardSample 29 | CFBundleVersion 30 | 1.0 31 | UILaunchStoryboardName 32 | LaunchScreen 33 | CFBundleName 34 | KeyboardSample 35 | XSAppIconAssets 36 | Assets.xcassets/AppIcon.appiconset 37 | 38 | 39 | -------------------------------------------------------------------------------- /KeyboardSample.iOS/KeyboardSample.iOS.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | iPhoneSimulator 6 | 8.0.30703 7 | 2.0 8 | {FCFC3655-C72F-466D-BB2D-F3600687994B} 9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 10 | {6143fdea-f3c2-4a09-aafa-6e230626515e} 11 | Exe 12 | KeyboardSample.iOS 13 | Resources 14 | KeyboardSample.iOS 15 | NSUrlSessionHandler 16 | 17 | 18 | 19 | 20 | true 21 | full 22 | false 23 | bin\iPhoneSimulator\Debug 24 | DEBUG 25 | prompt 26 | 4 27 | false 28 | x86_64 29 | None 30 | true 31 | 32 | 33 | none 34 | true 35 | bin\iPhoneSimulator\Release 36 | prompt 37 | 4 38 | None 39 | x86_64 40 | false 41 | 42 | 43 | true 44 | full 45 | false 46 | bin\iPhone\Debug 47 | DEBUG 48 | prompt 49 | 4 50 | false 51 | ARM64 52 | iPhone Developer 53 | true 54 | Entitlements.plist 55 | 56 | 57 | none 58 | true 59 | bin\iPhone\Release 60 | prompt 61 | 4 62 | ARM64 63 | false 64 | iPhone Developer 65 | Entitlements.plist 66 | 67 | 68 | none 69 | True 70 | bin\iPhone\Ad-Hoc 71 | prompt 72 | 4 73 | False 74 | ARM64 75 | True 76 | Automatic:AdHoc 77 | iPhone Distribution 78 | Entitlements.plist 79 | 80 | 81 | none 82 | True 83 | bin\iPhone\AppStore 84 | prompt 85 | 4 86 | False 87 | ARM64 88 | Automatic:AppStore 89 | iPhone Distribution 90 | Entitlements.plist 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | false 104 | 105 | 106 | false 107 | 108 | 109 | false 110 | 111 | 112 | false 113 | 114 | 115 | false 116 | 117 | 118 | false 119 | 120 | 121 | false 122 | 123 | 124 | false 125 | 126 | 127 | false 128 | 129 | 130 | false 131 | 132 | 133 | false 134 | 135 | 136 | false 137 | 138 | 139 | false 140 | 141 | 142 | false 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | {0C171CA2-97BA-4C18-9951-7E10FB667803} 158 | KeyboardSample 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | -------------------------------------------------------------------------------- /KeyboardSample.iOS/Main.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | using Foundation; 6 | using UIKit; 7 | 8 | namespace KeyboardSample.iOS 9 | { 10 | public class Application 11 | { 12 | // This is the main entry point of the application. 13 | static void Main(string[] args) 14 | { 15 | // if you want to use a different Application Delegate class from "AppDelegate" 16 | // you can specify it here. 17 | UIApplication.Main(args, null, "AppDelegate"); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /KeyboardSample.iOS/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("KeyboardSample.iOS")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("KeyboardSample.iOS")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("72bdc44f-c588-44f3-b6df-9aace7daafdd")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /KeyboardSample.iOS/Renderers/KeyboardViewRenderer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UIKit; 3 | using Xamarin.Forms; 4 | using Xamarin.Forms.Platform.iOS; 5 | using Foundation; 6 | using CoreGraphics; 7 | using KeyboardSample.Controls; 8 | using KeyboardSample.iOS.Renderers; 9 | 10 | [assembly: ExportRenderer(typeof(KeyboardView), typeof(KeyboardViewRenderer))] 11 | namespace KeyboardSample.iOS.Renderers 12 | { 13 | public class KeyboardViewRenderer : ViewRenderer 14 | { 15 | NSObject _keyboardShowObserver; 16 | NSObject _keyboardHideObserver; 17 | protected override void OnElementChanged(ElementChangedEventArgs e) 18 | { 19 | base.OnElementChanged(e); 20 | 21 | if (e.NewElement != null) 22 | { 23 | RegisterForKeyboardNotifications(); 24 | } 25 | 26 | if (e.OldElement != null) 27 | { 28 | UnregisterForKeyboardNotifications(); 29 | } 30 | } 31 | 32 | void RegisterForKeyboardNotifications() 33 | { 34 | if (_keyboardShowObserver == null) 35 | _keyboardShowObserver = UIKeyboard.Notifications.ObserveWillShow(OnKeyboardShow); 36 | if (_keyboardHideObserver == null) 37 | _keyboardHideObserver = UIKeyboard.Notifications.ObserveWillHide(OnKeyboardHide); 38 | } 39 | 40 | void OnKeyboardShow(object sender, UIKeyboardEventArgs args) 41 | { 42 | 43 | NSValue result = (NSValue)args.Notification.UserInfo.ObjectForKey(new NSString(UIKeyboard.FrameEndUserInfoKey)); 44 | CGSize keyboardSize = result.RectangleFValue.Size; 45 | if (Element != null) 46 | { 47 | Element.Margin = new Thickness(0, 0, 0, keyboardSize.Height); //push the entry up to keyboard height when keyboard is activated 48 | 49 | } 50 | } 51 | 52 | void OnKeyboardHide(object sender, UIKeyboardEventArgs args) 53 | { 54 | if (Element != null) 55 | { 56 | Element.Margin = new Thickness(0); //set the margins to zero when keyboard is dismissed 57 | } 58 | 59 | } 60 | 61 | 62 | void UnregisterForKeyboardNotifications() 63 | { 64 | if (_keyboardShowObserver != null) 65 | { 66 | _keyboardShowObserver.Dispose(); 67 | _keyboardShowObserver = null; 68 | } 69 | 70 | if (_keyboardHideObserver != null) 71 | { 72 | _keyboardHideObserver.Dispose(); 73 | _keyboardHideObserver = null; 74 | } 75 | } 76 | } 77 | } -------------------------------------------------------------------------------- /KeyboardSample.iOS/Resources/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Resources/Default-568h@2x.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Resources/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Resources/Default-Portrait.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Resources/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Resources/Default-Portrait@2x.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Resources/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Resources/Default.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Resources/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Resources/Default@2x.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Resources/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /KeyboardSample.iOS/Resources/ic_test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Resources/ic_test.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Resources/ic_test@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Resources/ic_test@2x.png -------------------------------------------------------------------------------- /KeyboardSample.iOS/Resources/ic_test@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CrossGeeks/KeyboardAdjustmentSample/a780387e49adb78345930fd9cb4cd8c798e17c22/KeyboardSample.iOS/Resources/ic_test@3x.png -------------------------------------------------------------------------------- /KeyboardSample.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyboardSample.Android", "KeyboardSample.Android\KeyboardSample.Android.csproj", "{FA60B40C-6601-45D1-AA6A-8F1C0A474C45}" 5 | EndProject 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyboardSample.iOS", "KeyboardSample.iOS\KeyboardSample.iOS.csproj", "{FCFC3655-C72F-466D-BB2D-F3600687994B}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyboardSample", "KeyboardSample\KeyboardSample.csproj", "{0C171CA2-97BA-4C18-9951-7E10FB667803}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Release|Any CPU = Release|Any CPU 14 | Debug|iPhoneSimulator = Debug|iPhoneSimulator 15 | Release|iPhoneSimulator = Release|iPhoneSimulator 16 | Debug|iPhone = Debug|iPhone 17 | Release|iPhone = Release|iPhone 18 | Ad-Hoc|iPhone = Ad-Hoc|iPhone 19 | AppStore|iPhone = AppStore|iPhone 20 | EndGlobalSection 21 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 22 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 23 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45}.Debug|Any CPU.Build.0 = Debug|Any CPU 24 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45}.Release|Any CPU.ActiveCfg = Release|Any CPU 25 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45}.Release|Any CPU.Build.0 = Release|Any CPU 26 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU 27 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU 28 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU 29 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45}.Release|iPhoneSimulator.Build.0 = Release|Any CPU 30 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45}.Debug|iPhone.ActiveCfg = Debug|Any CPU 31 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45}.Debug|iPhone.Build.0 = Debug|Any CPU 32 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45}.Release|iPhone.ActiveCfg = Release|Any CPU 33 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45}.Release|iPhone.Build.0 = Release|Any CPU 34 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU 35 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU 36 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45}.AppStore|iPhone.ActiveCfg = Debug|Any CPU 37 | {FA60B40C-6601-45D1-AA6A-8F1C0A474C45}.AppStore|iPhone.Build.0 = Debug|Any CPU 38 | {FCFC3655-C72F-466D-BB2D-F3600687994B}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator 39 | {FCFC3655-C72F-466D-BB2D-F3600687994B}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator 40 | {FCFC3655-C72F-466D-BB2D-F3600687994B}.Release|Any CPU.ActiveCfg = Release|iPhoneSimulator 41 | {FCFC3655-C72F-466D-BB2D-F3600687994B}.Release|Any CPU.Build.0 = Release|iPhoneSimulator 42 | {FCFC3655-C72F-466D-BB2D-F3600687994B}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator 43 | {FCFC3655-C72F-466D-BB2D-F3600687994B}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator 44 | {FCFC3655-C72F-466D-BB2D-F3600687994B}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator 45 | {FCFC3655-C72F-466D-BB2D-F3600687994B}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator 46 | {FCFC3655-C72F-466D-BB2D-F3600687994B}.Debug|iPhone.ActiveCfg = Debug|iPhone 47 | {FCFC3655-C72F-466D-BB2D-F3600687994B}.Debug|iPhone.Build.0 = Debug|iPhone 48 | {FCFC3655-C72F-466D-BB2D-F3600687994B}.Release|iPhone.ActiveCfg = Release|iPhone 49 | {FCFC3655-C72F-466D-BB2D-F3600687994B}.Release|iPhone.Build.0 = Release|iPhone 50 | {FCFC3655-C72F-466D-BB2D-F3600687994B}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone 51 | {FCFC3655-C72F-466D-BB2D-F3600687994B}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone 52 | {FCFC3655-C72F-466D-BB2D-F3600687994B}.AppStore|iPhone.ActiveCfg = AppStore|iPhone 53 | {FCFC3655-C72F-466D-BB2D-F3600687994B}.AppStore|iPhone.Build.0 = AppStore|iPhone 54 | {0C171CA2-97BA-4C18-9951-7E10FB667803}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 55 | {0C171CA2-97BA-4C18-9951-7E10FB667803}.Debug|Any CPU.Build.0 = Debug|Any CPU 56 | {0C171CA2-97BA-4C18-9951-7E10FB667803}.Release|Any CPU.ActiveCfg = Release|Any CPU 57 | {0C171CA2-97BA-4C18-9951-7E10FB667803}.Release|Any CPU.Build.0 = Release|Any CPU 58 | {0C171CA2-97BA-4C18-9951-7E10FB667803}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU 59 | {0C171CA2-97BA-4C18-9951-7E10FB667803}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU 60 | {0C171CA2-97BA-4C18-9951-7E10FB667803}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU 61 | {0C171CA2-97BA-4C18-9951-7E10FB667803}.Release|iPhoneSimulator.Build.0 = Release|Any CPU 62 | {0C171CA2-97BA-4C18-9951-7E10FB667803}.Debug|iPhone.ActiveCfg = Debug|Any CPU 63 | {0C171CA2-97BA-4C18-9951-7E10FB667803}.Debug|iPhone.Build.0 = Debug|Any CPU 64 | {0C171CA2-97BA-4C18-9951-7E10FB667803}.Release|iPhone.ActiveCfg = Release|Any CPU 65 | {0C171CA2-97BA-4C18-9951-7E10FB667803}.Release|iPhone.Build.0 = Release|Any CPU 66 | {0C171CA2-97BA-4C18-9951-7E10FB667803}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU 67 | {0C171CA2-97BA-4C18-9951-7E10FB667803}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU 68 | {0C171CA2-97BA-4C18-9951-7E10FB667803}.AppStore|iPhone.ActiveCfg = Debug|Any CPU 69 | {0C171CA2-97BA-4C18-9951-7E10FB667803}.AppStore|iPhone.Build.0 = Debug|Any CPU 70 | EndGlobalSection 71 | EndGlobal 72 | -------------------------------------------------------------------------------- /KeyboardSample/App.xaml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /KeyboardSample/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Xamarin.Forms; 3 | using Xamarin.Forms.Xaml; 4 | 5 | [assembly: XamlCompilation(XamlCompilationOptions.Compile)] 6 | namespace KeyboardSample 7 | { 8 | public partial class App : Application 9 | { 10 | public App() 11 | { 12 | InitializeComponent(); 13 | 14 | MainPage = new MainPage(); 15 | } 16 | 17 | protected override void OnStart() 18 | { 19 | // Handle when your app starts 20 | } 21 | 22 | protected override void OnSleep() 23 | { 24 | // Handle when your app sleeps 25 | } 26 | 27 | protected override void OnResume() 28 | { 29 | // Handle when your app resumes 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /KeyboardSample/Controls/KeyboardView.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Forms; 2 | 3 | namespace KeyboardSample.Controls 4 | { 5 | public class KeyboardView: Grid 6 | { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /KeyboardSample/KeyboardSample.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.0 5 | 6 | 7 | 8 | pdbonly 9 | true 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /KeyboardSample/MainPage.xaml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 23 | 24 |