├── .gitignore ├── README.md ├── assets ├── france.png ├── france_bg.jpeg ├── iceland.png ├── iceland_bg.jpeg ├── rio.png ├── rio_bg.jpeg └── showcase.gif └── src └── Xamarin.Forms.Parallax ├── Xamarin.Forms.Parallax.Android ├── Assets │ └── AboutAssets.txt ├── MainActivity.cs ├── Properties │ ├── AndroidManifest.xml │ └── AssemblyInfo.cs ├── Resources │ ├── AboutResources.txt │ ├── Resource.designer.cs │ ├── drawable-hdpi │ │ ├── france.png │ │ ├── france_bg.jpeg │ │ ├── iceland.png │ │ ├── iceland_bg.jpeg │ │ ├── rio.png │ │ └── rio_bg.jpeg │ ├── drawable-mdpi │ │ ├── france.png │ │ ├── france_bg.jpeg │ │ ├── iceland.png │ │ ├── iceland_bg.jpeg │ │ ├── rio.png │ │ └── rio_bg.jpeg │ ├── drawable-xhdpi │ │ ├── france.png │ │ ├── france_bg.jpeg │ │ ├── iceland.png │ │ ├── iceland_bg.jpeg │ │ ├── rio.png │ │ └── rio_bg.jpeg │ ├── drawable-xxhdpi │ │ ├── france.png │ │ ├── france_bg.jpeg │ │ ├── iceland.png │ │ ├── iceland_bg.jpeg │ │ ├── rio.png │ │ └── rio_bg.jpeg │ ├── drawable-xxxhdpi │ │ ├── france.png │ │ ├── france_bg.jpeg │ │ ├── iceland.png │ │ ├── iceland_bg.jpeg │ │ ├── rio.png │ │ └── rio_bg.jpeg │ ├── drawable │ │ ├── france.png │ │ ├── france_bg.jpeg │ │ ├── iceland.png │ │ ├── iceland_bg.jpeg │ │ ├── rio.png │ │ └── rio_bg.jpeg │ ├── 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 └── Xamarin.Forms.Parallax.Android.csproj ├── Xamarin.Forms.Parallax.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 ├── Main.cs ├── Properties │ └── AssemblyInfo.cs ├── Resources │ ├── Default-568h@2x.png │ ├── Default-Portrait.png │ ├── Default-Portrait@2x.png │ ├── Default.png │ ├── Default@2x.png │ ├── LaunchScreen.storyboard │ ├── france@1x.png │ ├── france@2x.png │ ├── france@3x.png │ ├── france_ifyzaQv@1x.png │ ├── france_ifyzaQv@2x.png │ ├── france_ifyzaQv@3x.png │ ├── iceland@1x.png │ ├── iceland@2x.png │ ├── iceland@3x.png │ ├── rio@1x.png │ ├── rio@2x.png │ ├── rio@3x.png │ ├── rio_bg@1x.jpeg │ ├── rio_bg@2x.jpeg │ └── rio_bg@3x.jpeg └── Xamarin.Forms.Parallax.iOS.csproj ├── Xamarin.Forms.Parallax.sln └── Xamarin.Forms.Parallax ├── App.xaml ├── App.xaml.cs ├── AssemblyInfo.cs ├── Models └── ParallaxItem.cs ├── Pages ├── MainPage.xaml └── MainPage.xaml.cs ├── ViewModels ├── BaseViewModel.cs └── MainViewModel.cs └── Xamarin.Forms.Parallax.csproj /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Ll]og/ 33 | [Ll]ogs/ 34 | 35 | # Visual Studio 2015/2017 cache/options directory 36 | .vs/ 37 | # Uncomment if you have tasks that create the project's static files in wwwroot 38 | #wwwroot/ 39 | 40 | # Visual Studio 2017 auto generated files 41 | Generated\ Files/ 42 | 43 | # MSTest test Results 44 | [Tt]est[Rr]esult*/ 45 | [Bb]uild[Ll]og.* 46 | 47 | # NUnit 48 | *.VisualState.xml 49 | TestResult.xml 50 | nunit-*.xml 51 | 52 | # Build Results of an ATL Project 53 | [Dd]ebugPS/ 54 | [Rr]eleasePS/ 55 | dlldata.c 56 | 57 | # Benchmark Results 58 | BenchmarkDotNet.Artifacts/ 59 | 60 | # .NET 61 | project.lock.json 62 | project.fragment.lock.json 63 | artifacts/ 64 | 65 | # Tye 66 | .tye/ 67 | 68 | # ASP.NET Scaffolding 69 | ScaffoldingReadMe.txt 70 | 71 | # StyleCop 72 | StyleCopReport.xml 73 | 74 | # Files built by Visual Studio 75 | *_i.c 76 | *_p.c 77 | *_h.h 78 | *.ilk 79 | *.meta 80 | *.obj 81 | *.iobj 82 | *.pch 83 | *.pdb 84 | *.ipdb 85 | *.pgc 86 | *.pgd 87 | *.rsp 88 | *.sbr 89 | *.tlb 90 | *.tli 91 | *.tlh 92 | *.tmp 93 | *.tmp_proj 94 | *_wpftmp.csproj 95 | *.log 96 | *.vspscc 97 | *.vssscc 98 | .builds 99 | *.pidb 100 | *.svclog 101 | *.scc 102 | 103 | # Chutzpah Test files 104 | _Chutzpah* 105 | 106 | # Visual C++ cache files 107 | ipch/ 108 | *.aps 109 | *.ncb 110 | *.opendb 111 | *.opensdf 112 | *.sdf 113 | *.cachefile 114 | *.VC.db 115 | *.VC.VC.opendb 116 | 117 | # Visual Studio profiler 118 | *.psess 119 | *.vsp 120 | *.vspx 121 | *.sap 122 | 123 | # Visual Studio Trace Files 124 | *.e2e 125 | 126 | # TFS 2012 Local Workspace 127 | $tf/ 128 | 129 | # Guidance Automation Toolkit 130 | *.gpState 131 | 132 | # ReSharper is a .NET coding add-in 133 | _ReSharper*/ 134 | *.[Rr]e[Ss]harper 135 | *.DotSettings.user 136 | 137 | # TeamCity is a build add-in 138 | _TeamCity* 139 | 140 | # DotCover is a Code Coverage Tool 141 | *.dotCover 142 | 143 | # AxoCover is a Code Coverage Tool 144 | .axoCover/* 145 | !.axoCover/settings.json 146 | 147 | # Coverlet is a free, cross platform Code Coverage Tool 148 | coverage*.json 149 | coverage*.xml 150 | coverage*.info 151 | 152 | # Visual Studio code coverage results 153 | *.coverage 154 | *.coveragexml 155 | 156 | # NCrunch 157 | _NCrunch_* 158 | .*crunch*.local.xml 159 | nCrunchTemp_* 160 | 161 | # MightyMoose 162 | *.mm.* 163 | AutoTest.Net/ 164 | 165 | # Web workbench (sass) 166 | .sass-cache/ 167 | 168 | # Installshield output folder 169 | [Ee]xpress/ 170 | 171 | # DocProject is a documentation generator add-in 172 | DocProject/buildhelp/ 173 | DocProject/Help/*.HxT 174 | DocProject/Help/*.HxC 175 | DocProject/Help/*.hhc 176 | DocProject/Help/*.hhk 177 | DocProject/Help/*.hhp 178 | DocProject/Help/Html2 179 | DocProject/Help/html 180 | 181 | # Click-Once directory 182 | publish/ 183 | 184 | # Publish Web Output 185 | *.[Pp]ublish.xml 186 | *.azurePubxml 187 | # Note: Comment the next line if you want to checkin your web deploy settings, 188 | # but database connection strings (with potential passwords) will be unencrypted 189 | *.pubxml 190 | *.publishproj 191 | 192 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 193 | # checkin your Azure Web App publish settings, but sensitive information contained 194 | # in these scripts will be unencrypted 195 | PublishScripts/ 196 | 197 | # NuGet Packages 198 | *.nupkg 199 | # NuGet Symbol Packages 200 | *.snupkg 201 | # The packages folder can be ignored because of Package Restore 202 | **/[Pp]ackages/* 203 | # except build/, which is used as an MSBuild target. 204 | !**/[Pp]ackages/build/ 205 | # Uncomment if necessary however generally it will be regenerated when needed 206 | #!**/[Pp]ackages/repositories.config 207 | # NuGet v3's project.json files produces more ignorable files 208 | *.nuget.props 209 | *.nuget.targets 210 | 211 | # Microsoft Azure Build Output 212 | csx/ 213 | *.build.csdef 214 | 215 | # Microsoft Azure Emulator 216 | ecf/ 217 | rcf/ 218 | 219 | # Windows Store app package directories and files 220 | AppPackages/ 221 | BundleArtifacts/ 222 | Package.StoreAssociation.xml 223 | _pkginfo.txt 224 | *.appx 225 | *.appxbundle 226 | *.appxupload 227 | 228 | # Visual Studio cache files 229 | # files ending in .cache can be ignored 230 | *.[Cc]ache 231 | # but keep track of directories ending in .cache 232 | !?*.[Cc]ache/ 233 | 234 | # Others 235 | ClientBin/ 236 | ~$* 237 | *~ 238 | *.dbmdl 239 | *.dbproj.schemaview 240 | *.jfm 241 | *.pfx 242 | *.publishsettings 243 | orleans.codegen.cs 244 | 245 | # Including strong name files can present a security risk 246 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 247 | #*.snk 248 | 249 | # Since there are multiple workflows, uncomment next line to ignore bower_components 250 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 251 | #bower_components/ 252 | 253 | # RIA/Silverlight projects 254 | Generated_Code/ 255 | 256 | # Backup & report files from converting an old project file 257 | # to a newer Visual Studio version. Backup files are not needed, 258 | # because we have git ;-) 259 | _UpgradeReport_Files/ 260 | Backup*/ 261 | UpgradeLog*.XML 262 | UpgradeLog*.htm 263 | ServiceFabricBackup/ 264 | *.rptproj.bak 265 | 266 | # SQL Server files 267 | *.mdf 268 | *.ldf 269 | *.ndf 270 | 271 | # Business Intelligence projects 272 | *.rdl.data 273 | *.bim.layout 274 | *.bim_*.settings 275 | *.rptproj.rsuser 276 | *- [Bb]ackup.rdl 277 | *- [Bb]ackup ([0-9]).rdl 278 | *- [Bb]ackup ([0-9][0-9]).rdl 279 | 280 | # Microsoft Fakes 281 | FakesAssemblies/ 282 | 283 | # GhostDoc plugin setting file 284 | *.GhostDoc.xml 285 | 286 | # Node.js Tools for Visual Studio 287 | .ntvs_analysis.dat 288 | node_modules/ 289 | 290 | # Visual Studio 6 build log 291 | *.plg 292 | 293 | # Visual Studio 6 workspace options file 294 | *.opt 295 | 296 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 297 | *.vbw 298 | 299 | # Visual Studio LightSwitch build output 300 | **/*.HTMLClient/GeneratedArtifacts 301 | **/*.DesktopClient/GeneratedArtifacts 302 | **/*.DesktopClient/ModelManifest.xml 303 | **/*.Server/GeneratedArtifacts 304 | **/*.Server/ModelManifest.xml 305 | _Pvt_Extensions 306 | 307 | # Paket dependency manager 308 | .paket/paket.exe 309 | paket-files/ 310 | 311 | # FAKE - F# Make 312 | .fake/ 313 | 314 | # CodeRush personal settings 315 | .cr/personal 316 | 317 | # Python Tools for Visual Studio (PTVS) 318 | __pycache__/ 319 | *.pyc 320 | 321 | # Cake - Uncomment if you are using it 322 | # tools/** 323 | # !tools/packages.config 324 | 325 | # Tabs Studio 326 | *.tss 327 | 328 | # Telerik's JustMock configuration file 329 | *.jmconfig 330 | 331 | # BizTalk build output 332 | *.btp.cs 333 | *.btm.cs 334 | *.odx.cs 335 | *.xsd.cs 336 | 337 | # OpenCover UI analysis results 338 | OpenCover/ 339 | 340 | # Azure Stream Analytics local run output 341 | ASALocalRun/ 342 | 343 | # MSBuild Binary and Structured Log 344 | *.binlog 345 | 346 | # NVidia Nsight GPU debugger configuration file 347 | *.nvuser 348 | 349 | # MFractors (Xamarin productivity tool) working folder 350 | .mfractor/ 351 | 352 | # Local History for Visual Studio 353 | .localhistory/ 354 | 355 | # BeatPulse healthcheck temp database 356 | healthchecksdb 357 | 358 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 359 | MigrationBackup/ 360 | 361 | # Ionide (cross platform F# VS Code tools) working folder 362 | .ionide/ 363 | 364 | # Fody - auto-generated XML schema 365 | FodyWeavers.xsd 366 | 367 | ## 368 | ## Visual studio for Mac 369 | ## 370 | 371 | 372 | # globs 373 | Makefile.in 374 | *.userprefs 375 | *.usertasks 376 | config.make 377 | config.status 378 | aclocal.m4 379 | install-sh 380 | autom4te.cache/ 381 | *.tar.gz 382 | tarballs/ 383 | test-results/ 384 | 385 | # Mac bundle stuff 386 | *.dmg 387 | *.app 388 | 389 | # content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore 390 | # General 391 | .DS_Store 392 | .AppleDouble 393 | .LSOverride 394 | 395 | # Icon must end with two \r 396 | Icon 397 | 398 | 399 | # Thumbnails 400 | ._* 401 | 402 | # Files that might appear in the root of a volume 403 | .DocumentRevisions-V100 404 | .fseventsd 405 | .Spotlight-V100 406 | .TemporaryItems 407 | .Trashes 408 | .VolumeIcon.icns 409 | .com.apple.timemachine.donotpresent 410 | 411 | # Directories potentially created on remote AFP share 412 | .AppleDB 413 | .AppleDesktop 414 | Network Trash Folder 415 | Temporary Items 416 | .apdisk 417 | 418 | # content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore 419 | # Windows thumbnail cache files 420 | Thumbs.db 421 | ehthumbs.db 422 | ehthumbs_vista.db 423 | 424 | # Dump file 425 | *.stackdump 426 | 427 | # Folder config file 428 | [Dd]esktop.ini 429 | 430 | # Recycle Bin used on file shares 431 | $RECYCLE.BIN/ 432 | 433 | # Windows Installer files 434 | *.cab 435 | *.msi 436 | *.msix 437 | *.msm 438 | *.msp 439 | 440 | # Windows shortcuts 441 | *.lnk 442 | 443 | # JetBrains Rider 444 | .idea/ 445 | *.sln.iml 446 | 447 | ## 448 | ## Visual Studio Code 449 | ## 450 | .vscode/* 451 | !.vscode/settings.json 452 | !.vscode/tasks.json 453 | !.vscode/launch.json 454 | !.vscode/extensions.json 455 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Xamarin.Forms Parallax Effect 2 | 3 | Assets & Inspiration from: https://github.com/neodroid/Parallax-Card-SwiftUI 4 | 5 | The device's orientation sensor is used to create the parallax effect. 6 | 7 | [Video](https://youtube.com/shorts/rag_X5O_LXY?feature=share) 8 | 9 | 10 | 11 | 12 | #### Packages: 13 | 14 | - https://github.com/xamarin/Essentials 15 | 16 | - https://github.com/AndreiMisiukevich/CardView -------------------------------------------------------------------------------- /assets/france.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/assets/france.png -------------------------------------------------------------------------------- /assets/france_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/assets/france_bg.jpeg -------------------------------------------------------------------------------- /assets/iceland.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/assets/iceland.png -------------------------------------------------------------------------------- /assets/iceland_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/assets/iceland_bg.jpeg -------------------------------------------------------------------------------- /assets/rio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/assets/rio.png -------------------------------------------------------------------------------- /assets/rio_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/assets/rio_bg.jpeg -------------------------------------------------------------------------------- /assets/showcase.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/assets/showcase.gif -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.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 your 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 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/MainActivity.cs: -------------------------------------------------------------------------------- 1 | using Android.App; 2 | using Android.Content.PM; 3 | using Android.Runtime; 4 | using Android.OS; 5 | using PanCardView.Droid; 6 | using Xamarin.Forms.Platform.Android; 7 | 8 | namespace Xamarin.Forms.Parallax.Droid 9 | { 10 | [Activity(Label = "Xamarin.Forms.Parallax", 11 | Icon = "@mipmap/icon", 12 | Theme = "@style/MainTheme", 13 | MainLauncher = true, 14 | ScreenOrientation = ScreenOrientation.Portrait)] 15 | public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity 16 | { 17 | protected override void OnCreate(Bundle savedInstanceState) 18 | { 19 | base.OnCreate(savedInstanceState); 20 | 21 | Essentials.Platform.Init(this, savedInstanceState); 22 | Forms.Init(this, savedInstanceState); 23 | Window.SetStatusBarColor(Color.FromHex("#3f37c9").ToAndroid()); 24 | CardsViewRenderer.Preserve(); 25 | LoadApplication(new App()); 26 | } 27 | 28 | public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Permission[] grantResults) 29 | { 30 | Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults); 31 | base.OnRequestPermissionsResult(requestCode, permissions, grantResults); 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Properties/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.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("Xamarin.Forms.Parallax.Android")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("Xamarin.Forms.Parallax.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 | [assembly: AssemblyVersion("1.0.0.0")] 26 | [assembly: AssemblyFileVersion("1.0.0.0")] 27 | 28 | // Add some common permissions, these can be removed if not needed 29 | [assembly: UsesPermission(Android.Manifest.Permission.Internet)] 30 | [assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)] 31 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.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 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-hdpi/france.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-hdpi/france.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-hdpi/france_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-hdpi/france_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-hdpi/iceland.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-hdpi/iceland.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-hdpi/iceland_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-hdpi/iceland_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-hdpi/rio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-hdpi/rio.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-hdpi/rio_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-hdpi/rio_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-mdpi/france.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-mdpi/france.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-mdpi/france_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-mdpi/france_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-mdpi/iceland.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-mdpi/iceland.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-mdpi/iceland_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-mdpi/iceland_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-mdpi/rio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-mdpi/rio.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-mdpi/rio_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-mdpi/rio_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xhdpi/france.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xhdpi/france.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xhdpi/france_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xhdpi/france_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xhdpi/iceland.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xhdpi/iceland.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xhdpi/iceland_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xhdpi/iceland_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xhdpi/rio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xhdpi/rio.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xhdpi/rio_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xhdpi/rio_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxhdpi/france.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxhdpi/france.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxhdpi/france_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxhdpi/france_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxhdpi/iceland.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxhdpi/iceland.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxhdpi/iceland_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxhdpi/iceland_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxhdpi/rio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxhdpi/rio.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxhdpi/rio_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxhdpi/rio_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxxhdpi/france.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxxhdpi/france.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxxhdpi/france_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxxhdpi/france_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxxhdpi/iceland.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxxhdpi/iceland.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxxhdpi/iceland_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxxhdpi/iceland_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxxhdpi/rio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxxhdpi/rio.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxxhdpi/rio_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable-xxxhdpi/rio_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable/france.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable/france.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable/france_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable/france_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable/iceland.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable/iceland.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable/iceland_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable/iceland_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable/rio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable/rio.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable/rio_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/drawable/rio_bg.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-anydpi-v26/icon.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-anydpi-v26/icon_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-hdpi/icon.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-hdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-hdpi/launcher_foreground.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-mdpi/icon.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-mdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-mdpi/launcher_foreground.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-xhdpi/icon.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-xhdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-xhdpi/launcher_foreground.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-xxhdpi/icon.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-xxhdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-xxhdpi/launcher_foreground.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-xxxhdpi/icon.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3f37c9 4 | #3f37c9 5 | #3f37c9 6 | #3f37c9 7 | 8 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Resources/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.Android/Xamarin.Forms.Parallax.Android.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | {2B40DA52-904E-4B70-AEEC-D223842DED66} 7 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 8 | {c9e5eea5-ca05-42a1-839b-61506e0a37df} 9 | Library 10 | Xamarin.Forms.Parallax.Droid 11 | Xamarin.Forms.Parallax.Android 12 | True 13 | True 14 | Resources\Resource.designer.cs 15 | Resource 16 | Properties\AndroidManifest.xml 17 | Resources 18 | Assets 19 | false 20 | v12.0 21 | true 22 | true 23 | Xamarin.Android.Net.AndroidClientHandler 24 | 25 | 26 | 27 | 28 | true 29 | portable 30 | false 31 | bin\Debug 32 | DEBUG; 33 | prompt 34 | 4 35 | None 36 | 37 | 38 | true 39 | portable 40 | true 41 | bin\Release 42 | prompt 43 | 4 44 | true 45 | false 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 | Designer 80 | 81 | 82 | Designer 83 | 84 | 85 | Designer 86 | 87 | 88 | Designer 89 | 90 | 91 | Designer 92 | 93 | 94 | Designer 95 | 96 | 97 | Designer 98 | 99 | 100 | Designer 101 | 102 | 103 | Designer 104 | 105 | 106 | Designer 107 | 108 | 109 | Designer 110 | 111 | 112 | Designer 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | Designer 128 | 129 | 130 | Designer 131 | 132 | 133 | Designer 134 | 135 | 136 | Designer 137 | 138 | 139 | Designer 140 | 141 | 142 | Designer 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | {925C0118-7D63-4F43-94F3-544A4C149A0B} 165 | Xamarin.Forms.Parallax 166 | 167 | 168 | 169 | 170 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using Foundation; 2 | using PanCardView.iOS; 3 | using UIKit; 4 | 5 | namespace Xamarin.Forms.Parallax.iOS 6 | { 7 | // The UIApplicationDelegate for the application. This class is responsible for launching the 8 | // User Interface of the application, as well as listening (and optionally responding) to 9 | // application events from iOS. 10 | [Register("AppDelegate")] 11 | public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate 12 | { 13 | // 14 | // This method is invoked when the application has loaded and is ready to run. In this 15 | // method you should instantiate the window, load the UI into it and then make the window 16 | // visible. 17 | // 18 | // You have 17 seconds to return from this method, or iOS will terminate your application. 19 | // 20 | public override bool FinishedLaunching(UIApplication app, NSDictionary options) 21 | { 22 | Forms.Init(); 23 | CardsViewRenderer.Preserve(); 24 | LoadApplication(new App()); 25 | 26 | return base.FinishedLaunching(app, options); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.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 | } -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Entitlements.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.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 | Xamarin.Forms.Parallax 27 | CFBundleIdentifier 28 | com.companyname.Xamarin.Forms.Parallax 29 | CFBundleVersion 30 | 1.0 31 | UILaunchStoryboardName 32 | LaunchScreen 33 | CFBundleName 34 | Xamarin.Forms.Parallax 35 | XSAppIconAssets 36 | Assets.xcassets/AppIcon.appiconset 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.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 Xamarin.Forms.Parallax.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, typeof(AppDelegate)); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.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("Xamarin.Forms.Parallax.iOS")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Xamarin.Forms.Parallax.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 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/Default-568h@2x.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/Default-Portrait.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/Default-Portrait@2x.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/Default.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/Default@2x.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.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 | 40 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/france@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/france@1x.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/france@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/france@2x.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/france@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/france@3x.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/france_ifyzaQv@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/france_ifyzaQv@1x.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/france_ifyzaQv@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/france_ifyzaQv@2x.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/france_ifyzaQv@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/france_ifyzaQv@3x.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/iceland@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/iceland@1x.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/iceland@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/iceland@2x.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/iceland@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/iceland@3x.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/rio@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/rio@1x.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/rio@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/rio@2x.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/rio@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/rio@3x.png -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/rio_bg@1x.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/rio_bg@1x.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/rio_bg@2x.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/rio_bg@2x.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/rio_bg@3x.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ValonK/Xamarin.Forms.Parallax/03a2cad617615cf0f401e2acc0a8033816f93cf1/src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Resources/rio_bg@3x.jpeg -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.iOS/Xamarin.Forms.Parallax.iOS.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | iPhoneSimulator 6 | 8.0.30703 7 | 2.0 8 | {64EAA211-CF38-49E5-BE45-D963E1B4785D} 9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 10 | {6143fdea-f3c2-4a09-aafa-6e230626515e} 11 | Exe 12 | Xamarin.Forms.Parallax.iOS 13 | Resources 14 | Xamarin.Forms.Parallax.iOS 15 | true 16 | NSUrlSessionHandler 17 | automatic 18 | 19 | 20 | true 21 | portable 22 | false 23 | bin\iPhoneSimulator\Debug 24 | DEBUG 25 | prompt 26 | 4 27 | x86_64 28 | None 29 | true 30 | 31 | 32 | none 33 | true 34 | bin\iPhoneSimulator\Release 35 | prompt 36 | 4 37 | None 38 | x86_64 39 | 40 | 41 | true 42 | portable 43 | false 44 | bin\iPhone\Debug 45 | DEBUG 46 | prompt 47 | 4 48 | ARM64 49 | iPhone Developer 50 | true 51 | Entitlements.plist 52 | None 53 | -all 54 | 55 | 56 | none 57 | true 58 | bin\iPhone\Release 59 | prompt 60 | 4 61 | ARM64 62 | iPhone Developer 63 | Entitlements.plist 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | false 76 | 77 | 78 | false 79 | 80 | 81 | false 82 | 83 | 84 | false 85 | 86 | 87 | false 88 | 89 | 90 | false 91 | 92 | 93 | false 94 | 95 | 96 | false 97 | 98 | 99 | false 100 | 101 | 102 | false 103 | 104 | 105 | false 106 | 107 | 108 | false 109 | 110 | 111 | false 112 | 113 | 114 | false 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | {925C0118-7D63-4F43-94F3-544A4C149A0B} 134 | Xamarin.Forms.Parallax 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.2.32616.157 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Xamarin.Forms.Parallax.Android", "Xamarin.Forms.Parallax.Android\Xamarin.Forms.Parallax.Android.csproj", "{2B40DA52-904E-4B70-AEEC-D223842DED66}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Xamarin.Forms.Parallax.iOS", "Xamarin.Forms.Parallax.iOS\Xamarin.Forms.Parallax.iOS.csproj", "{64EAA211-CF38-49E5-BE45-D963E1B4785D}" 9 | EndProject 10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Xamarin.Forms.Parallax", "Xamarin.Forms.Parallax\Xamarin.Forms.Parallax.csproj", "{4B09ED64-9E35-4CBD-9D90-EDF297030F3A}" 11 | EndProject 12 | Global 13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 14 | Debug|Any CPU = Debug|Any CPU 15 | Debug|iPhone = Debug|iPhone 16 | Debug|iPhoneSimulator = Debug|iPhoneSimulator 17 | Release|Any CPU = Release|Any CPU 18 | Release|iPhone = Release|iPhone 19 | Release|iPhoneSimulator = Release|iPhoneSimulator 20 | EndGlobalSection 21 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 22 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 23 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Debug|Any CPU.Build.0 = Debug|Any CPU 24 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Debug|Any CPU.Deploy.0 = Debug|Any CPU 25 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Debug|iPhone.ActiveCfg = Debug|Any CPU 26 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Debug|iPhone.Build.0 = Debug|Any CPU 27 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Debug|iPhone.Deploy.0 = Debug|Any CPU 28 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU 29 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU 30 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU 31 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Release|Any CPU.ActiveCfg = Release|Any CPU 32 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Release|Any CPU.Build.0 = Release|Any CPU 33 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Release|Any CPU.Deploy.0 = Release|Any CPU 34 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Release|iPhone.ActiveCfg = Release|Any CPU 35 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Release|iPhone.Build.0 = Release|Any CPU 36 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Release|iPhone.Deploy.0 = Release|Any CPU 37 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU 38 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Release|iPhoneSimulator.Build.0 = Release|Any CPU 39 | {2B40DA52-904E-4B70-AEEC-D223842DED66}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU 40 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Debug|Any CPU.ActiveCfg = Debug|iPhone 41 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Debug|Any CPU.Build.0 = Debug|iPhone 42 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Debug|Any CPU.Deploy.0 = Debug|iPhone 43 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Debug|iPhone.ActiveCfg = Debug|iPhone 44 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Debug|iPhone.Build.0 = Debug|iPhone 45 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Debug|iPhone.Deploy.0 = Debug|iPhone 46 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator 47 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator 48 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Debug|iPhoneSimulator.Deploy.0 = Debug|iPhoneSimulator 49 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Release|Any CPU.ActiveCfg = Release|iPhoneSimulator 50 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Release|Any CPU.Build.0 = Release|iPhoneSimulator 51 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Release|Any CPU.Deploy.0 = Release|iPhoneSimulator 52 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Release|iPhone.ActiveCfg = Release|iPhone 53 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Release|iPhone.Build.0 = Release|iPhone 54 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Release|iPhone.Deploy.0 = Release|iPhone 55 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator 56 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator 57 | {64EAA211-CF38-49E5-BE45-D963E1B4785D}.Release|iPhoneSimulator.Deploy.0 = Release|iPhoneSimulator 58 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 59 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Debug|Any CPU.Build.0 = Debug|Any CPU 60 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Debug|Any CPU.Deploy.0 = Debug|Any CPU 61 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Debug|iPhone.ActiveCfg = Debug|Any CPU 62 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Debug|iPhone.Build.0 = Debug|Any CPU 63 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Debug|iPhone.Deploy.0 = Debug|Any CPU 64 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU 65 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU 66 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU 67 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Release|Any CPU.ActiveCfg = Release|Any CPU 68 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Release|Any CPU.Build.0 = Release|Any CPU 69 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Release|Any CPU.Deploy.0 = Release|Any CPU 70 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Release|iPhone.ActiveCfg = Release|Any CPU 71 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Release|iPhone.Build.0 = Release|Any CPU 72 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Release|iPhone.Deploy.0 = Release|Any CPU 73 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU 74 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Release|iPhoneSimulator.Build.0 = Release|Any CPU 75 | {4B09ED64-9E35-4CBD-9D90-EDF297030F3A}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU 76 | EndGlobalSection 77 | GlobalSection(SolutionProperties) = preSolution 78 | HideSolutionNode = FALSE 79 | EndGlobalSection 80 | GlobalSection(ExtensibilityGlobals) = postSolution 81 | SolutionGuid = {6806A18E-EC0B-48A8-960B-52DA646EA124} 82 | EndGlobalSection 83 | EndGlobal 84 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax/App.xaml: -------------------------------------------------------------------------------- 1 |  2 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Xamarin.Forms; 3 | using Xamarin.Forms.Parallax.Pages; 4 | using Xamarin.Forms.Xaml; 5 | 6 | namespace Xamarin.Forms.Parallax 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 | } 20 | 21 | protected override void OnSleep() 22 | { 23 | } 24 | 25 | protected override void OnResume() 26 | { 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Forms.Xaml; 2 | 3 | [assembly: XamlCompilation(XamlCompilationOptions.Compile)] -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax/Models/ParallaxItem.cs: -------------------------------------------------------------------------------- 1 | namespace Xamarin.Forms.Parallax.Models; 2 | 3 | public class ParallaxItem 4 | { 5 | public string Name { get; set; } 6 | 7 | public string Image { get; set; } 8 | 9 | public string BackgroundImage { get; set; } 10 | } -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax/Pages/MainPage.xaml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 11 | 12 | 13 | 14 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 36 | 37 | 44 | 45 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 66 | 67 | 70 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax/Pages/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using PanCardView; 3 | using PanCardView.EventArgs; 4 | using Xamarin.Essentials; 5 | using Xamarin.Forms.Parallax.ViewModels; 6 | 7 | namespace Xamarin.Forms.Parallax.Pages 8 | { 9 | public partial class MainPage 10 | { 11 | private Image _currentImage; 12 | private float _previousXReading; 13 | private const int AnimationLength = 80; 14 | 15 | public MainPage() 16 | { 17 | InitializeComponent(); 18 | NavigationPage.SetHasNavigationBar(this, false); 19 | OrientationSensor.ReadingChanged += OrientationSensorOnReadingChanged; 20 | } 21 | 22 | protected override void OnAppearing() 23 | { 24 | base.OnAppearing(); 25 | 26 | if (BindingContext is MainViewModel mainViewModel) 27 | { 28 | mainViewModel.OnAppearing(); 29 | ToggleOrientationSensor(); 30 | } 31 | } 32 | 33 | protected override void OnDisappearing() 34 | { 35 | base.OnDisappearing(); 36 | ToggleOrientationSensor(); 37 | OrientationSensor.ReadingChanged -= OrientationSensorOnReadingChanged; 38 | } 39 | 40 | private static void ToggleOrientationSensor() 41 | { 42 | try 43 | { 44 | if (OrientationSensor.IsMonitoring) 45 | { 46 | OrientationSensor.Stop(); 47 | } 48 | else 49 | { 50 | OrientationSensor.Start(SensorSpeed.UI); 51 | } 52 | } 53 | catch (FeatureNotSupportedException) 54 | { 55 | Application.Current.MainPage.DisplayAlert("Error", "Orientation Sensor not supported", "Cancel"); 56 | } 57 | catch (Exception) 58 | { 59 | Application.Current.MainPage.DisplayAlert("Error", "Something went wrong", "Cancel"); 60 | } 61 | } 62 | 63 | private async void OrientationSensorOnReadingChanged(object sender, OrientationSensorChangedEventArgs e) 64 | { 65 | var xReading = e.Reading.Orientation.X; 66 | 67 | if (Math.Abs(_previousXReading - xReading) <= Math.Pow(10.0, -2)) return; 68 | 69 | _currentImage ??= GetCurrentBackgroundImage(); 70 | 71 | await _currentImage.TranslateTo(xReading * 150, 0, AnimationLength); 72 | _previousXReading = xReading; 73 | } 74 | 75 | private Image GetCurrentBackgroundImage() 76 | { 77 | if (CarouselView.CurrentView is not ContentView {Content: Frame {Content: Grid grid}}) return null; 78 | return grid.Children[0] as Image; 79 | } 80 | 81 | private void CarouselView_OnItemSwiped(CardsView view, ItemSwipedEventArgs args) => _currentImage = null; 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax/ViewModels/BaseViewModel.cs: -------------------------------------------------------------------------------- 1 | using MvvmHelpers; 2 | 3 | namespace Xamarin.Forms.Parallax.ViewModels; 4 | 5 | public abstract class BaseViewModel : ObservableObject 6 | { 7 | public virtual void OnAppearing(){} 8 | public virtual void OnDisappearing(){} 9 | } -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax/ViewModels/MainViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.ObjectModel; 2 | using Xamarin.Forms.Parallax.Models; 3 | 4 | namespace Xamarin.Forms.Parallax.ViewModels 5 | { 6 | public class MainViewModel : BaseViewModel 7 | { 8 | public ObservableCollection Items { get; set; } 9 | 10 | public override void OnAppearing() 11 | { 12 | base.OnAppearing(); 13 | CreateItems(); 14 | } 15 | 16 | private void CreateItems() 17 | { 18 | Items = new() 19 | { 20 | new() 21 | { 22 | Name = "Paris", 23 | BackgroundImage = "france_bg.jpeg", 24 | Image = "france.png" 25 | }, 26 | new() 27 | { 28 | Name = "Iceland", 29 | BackgroundImage = "iceland_bg.jpeg", 30 | Image = "iceland.png" 31 | }, 32 | new() 33 | { 34 | Name = "Rio", 35 | BackgroundImage = "rio_bg.jpeg", 36 | Image = "rio.png" 37 | } 38 | }; 39 | 40 | OnPropertyChanged(nameof(Items)); 41 | } 42 | } 43 | } -------------------------------------------------------------------------------- /src/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax/Xamarin.Forms.Parallax.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.0 5 | true 6 | latest 7 | 8 | 9 | 10 | portable 11 | true 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | MainPage.xaml 24 | Code 25 | 26 | 27 | --------------------------------------------------------------------------------