├── .gitignore
├── ParallaxScroll.Android
├── Assets
│ ├── AboutAssets.txt
│ └── Fonts
│ │ └── PermanentMarker.ttf
├── MainActivity.cs
├── ParallaxScroll.Android.csproj
├── Properties
│ ├── AndroidManifest.xml
│ └── AssemblyInfo.cs
└── Resources
│ ├── AboutResources.txt
│ ├── Resource.designer.cs
│ ├── drawable-hdpi
│ ├── cloudbiggest.png
│ ├── parallaxscroll.png
│ ├── shadow_parallax_depth1.png
│ ├── shadow_parallax_depth2.png
│ └── sun.png
│ ├── drawable-xhdpi
│ ├── cloudbiggest.png
│ ├── parallaxscroll.png
│ ├── shadow_parallax_depth1.png
│ ├── shadow_parallax_depth2.png
│ └── sun.png
│ ├── drawable-xxhdpi
│ ├── cloudbiggest.png
│ ├── parallaxscroll.png
│ ├── shadow_parallax_depth1.png
│ ├── shadow_parallax_depth2.png
│ └── sun.png
│ ├── drawable-xxxhdpi
│ ├── cloudbiggest.png
│ ├── parallaxscroll.png
│ ├── shadow_parallax_depth1.png
│ ├── shadow_parallax_depth2.png
│ └── sun.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
├── ParallaxScroll.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
├── ParallaxScroll.iOS.csproj
├── Properties
│ └── AssemblyInfo.cs
└── Resources
│ ├── Default-568h@2x.png
│ ├── Default-Portrait.png
│ ├── Default-Portrait@2x.png
│ ├── Default.png
│ ├── Default@2x.png
│ ├── Fonts
│ └── PermanentMarker.ttf
│ ├── LaunchScreen.storyboard
│ ├── cloudbiggest.png
│ ├── cloudbiggest@2x.png
│ ├── cloudbiggest@3x.png
│ ├── parallaxscroll.png
│ ├── parallaxscroll@2x.png
│ ├── parallaxscroll@3x.png
│ ├── shadow_parallax_depth1.png
│ ├── shadow_parallax_depth1@2x.png
│ ├── shadow_parallax_depth1@3x.png
│ ├── shadow_parallax_depth2.png
│ ├── shadow_parallax_depth2@2x.png
│ ├── shadow_parallax_depth2@3x.png
│ ├── sun.png
│ ├── sun@2x.png
│ └── sun@3x.png
├── ParallaxScroll.sln
├── ParallaxScroll
├── App.xaml
├── App.xaml.cs
├── MainPage.xaml
├── MainPage.xaml.cs
├── ParallaxScroll.csproj
├── WikiView.xaml
└── WikiView.xaml.cs
├── README.md
├── Screenshots
├── android.gif
└── ios.gif
└── icon.png
/.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 | # Rider
7 | .idea/
8 |
9 | # User-specific files
10 | *.suo
11 | *.user
12 | *.userosscache
13 | *.sln.docstates
14 |
15 | # User-specific files (MonoDevelop/Xamarin Studio)
16 | *.userprefs
17 |
18 | # Build results
19 | [Dd]ebug/
20 | [Dd]ebugPublic/
21 | [Rr]elease/
22 | [Rr]eleases/
23 | x64/
24 | x86/
25 | bld/
26 | [Bb]in/
27 | [Oo]bj/
28 | [Ll]og/
29 |
30 | # Visual Studio 2015 cache/options directory
31 | .vs/
32 | # Uncomment if you have tasks that create the project's static files in wwwroot
33 | #wwwroot/
34 |
35 | # MSTest test Results
36 | [Tt]est[Rr]esult*/
37 | [Bb]uild[Ll]og.*
38 |
39 | # NUNIT
40 | *.VisualState.xml
41 | TestResult.xml
42 |
43 | # Build Results of an ATL Project
44 | [Dd]ebugPS/
45 | [Rr]eleasePS/
46 | dlldata.c
47 |
48 | # Benchmark Results
49 | BenchmarkDotNet.Artifacts/
50 |
51 | # .NET Core
52 | project.lock.json
53 | project.fragment.lock.json
54 | artifacts/
55 | **/Properties/launchSettings.json
56 |
57 | *_i.c
58 | *_p.c
59 | *_i.h
60 | *.ilk
61 | *.meta
62 | *.obj
63 | *.pch
64 | *.pdb
65 | *.pgc
66 | *.pgd
67 | *.rsp
68 | *.sbr
69 | *.tlb
70 | *.tli
71 | *.tlh
72 | *.tmp
73 | *.tmp_proj
74 | *.log
75 | *.vspscc
76 | *.vssscc
77 | .builds
78 | *.pidb
79 | *.svclog
80 | *.scc
81 |
82 | # Chutzpah Test files
83 | _Chutzpah*
84 |
85 | # Visual C++ cache files
86 | ipch/
87 | *.aps
88 | *.ncb
89 | *.opendb
90 | *.opensdf
91 | *.sdf
92 | *.cachefile
93 | *.VC.db
94 | *.VC.VC.opendb
95 |
96 | # Visual Studio profiler
97 | *.psess
98 | *.vsp
99 | *.vspx
100 | *.sap
101 |
102 | # TFS 2012 Local Workspace
103 | $tf/
104 |
105 | # Guidance Automation Toolkit
106 | *.gpState
107 |
108 | # ReSharper is a .NET coding add-in
109 | _ReSharper*/
110 | *.[Rr]e[Ss]harper
111 | *.DotSettings.user
112 |
113 | # JustCode is a .NET coding add-in
114 | .JustCode
115 |
116 | # TeamCity is a build add-in
117 | _TeamCity*
118 |
119 | # DotCover is a Code Coverage Tool
120 | *.dotCover
121 |
122 | # AxoCover is a Code Coverage Tool
123 | .axoCover/*
124 | !.axoCover/settings.json
125 |
126 | # Visual Studio code coverage results
127 | *.coverage
128 | *.coveragexml
129 |
130 | # NCrunch
131 | _NCrunch_*
132 | .*crunch*.local.xml
133 | nCrunchTemp_*
134 |
135 | # MightyMoose
136 | *.mm.*
137 | AutoTest.Net/
138 |
139 | # Web workbench (sass)
140 | .sass-cache/
141 |
142 | # Installshield output folder
143 | [Ee]xpress/
144 |
145 | # DocProject is a documentation generator add-in
146 | DocProject/buildhelp/
147 | DocProject/Help/*.HxT
148 | DocProject/Help/*.HxC
149 | DocProject/Help/*.hhc
150 | DocProject/Help/*.hhk
151 | DocProject/Help/*.hhp
152 | DocProject/Help/Html2
153 | DocProject/Help/html
154 |
155 | # Click-Once directory
156 | publish/
157 |
158 | # Publish Web Output
159 | *.[Pp]ublish.xml
160 | *.azurePubxml
161 | # Note: Comment the next line if you want to checkin your web deploy settings,
162 | # but database connection strings (with potential passwords) will be unencrypted
163 | *.pubxml
164 | *.publishproj
165 |
166 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
167 | # checkin your Azure Web App publish settings, but sensitive information contained
168 | # in these scripts will be unencrypted
169 | PublishScripts/
170 |
171 | # NuGet Packages
172 | *.nupkg
173 | # The packages folder can be ignored because of Package Restore
174 | **/packages/*
175 | # except build/, which is used as an MSBuild target.
176 | !**/packages/build/
177 | # Uncomment if necessary however generally it will be regenerated when needed
178 | #!**/packages/repositories.config
179 |
180 | # NuGet v3's project.json files produces more ignorable files
181 | *.nuget.props
182 | *.nuget.targets
183 |
184 | # Microsoft Azure Build Output
185 | csx/
186 | *.build.csdef
187 |
188 | # Microsoft Azure Emulator
189 | ecf/
190 | rcf/
191 |
192 | # Windows Store app package directories and files
193 | AppPackages/
194 | BundleArtifacts/
195 | Package.StoreAssociation.xml
196 | _pkginfo.txt
197 | *.appx
198 |
199 | # Visual Studio cache files
200 | # files ending in .cache can be ignored
201 | *.[Cc]ache
202 | # but keep track of directories ending in .cache
203 | !*.[Cc]ache/
204 |
205 | # Others
206 | ClientBin/
207 | ~$*
208 | *~
209 | *.dbmdl
210 | *.dbproj.schemaview
211 | *.jfm
212 | *.pfx
213 | *.publishsettings
214 | orleans.codegen.cs
215 |
216 | # Since there are multiple workflows, uncomment next line to ignore bower_components
217 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
218 | #bower_components/
219 |
220 | # RIA/Silverlight projects
221 | Generated_Code/
222 |
223 | # Backup & report files from converting an old project file
224 | # to a newer Visual Studio version. Backup files are not needed,
225 | # because we have git ;-)
226 | _UpgradeReport_Files/
227 | Backup*/
228 | UpgradeLog*.XML
229 | UpgradeLog*.htm
230 |
231 | # SQL Server files
232 | *.mdf
233 | *.ldf
234 | *.ndf
235 |
236 | # Business Intelligence projects
237 | *.rdl.data
238 | *.bim.layout
239 | *.bim_*.settings
240 |
241 | # Microsoft Fakes
242 | FakesAssemblies/
243 |
244 | # GhostDoc plugin setting file
245 | *.GhostDoc.xml
246 |
247 | # Node.js Tools for Visual Studio
248 | .ntvs_analysis.dat
249 | node_modules/
250 |
251 | # Typescript v1 declaration files
252 | typings/
253 |
254 | # Visual Studio 6 build log
255 | *.plg
256 |
257 | # Visual Studio 6 workspace options file
258 | *.opt
259 |
260 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
261 | *.vbw
262 |
263 | # Visual Studio LightSwitch build output
264 | **/*.HTMLClient/GeneratedArtifacts
265 | **/*.DesktopClient/GeneratedArtifacts
266 | **/*.DesktopClient/ModelManifest.xml
267 | **/*.Server/GeneratedArtifacts
268 | **/*.Server/ModelManifest.xml
269 | _Pvt_Extensions
270 |
271 | # Paket dependency manager
272 | .paket/paket.exe
273 | paket-files/
274 |
275 | # FAKE - F# Make
276 | .fake/
277 |
278 | # JetBrains Rider
279 | .idea/
280 | *.sln.iml
281 |
282 | # CodeRush
283 | .cr/
284 |
285 | # Python Tools for Visual Studio (PTVS)
286 | __pycache__/
287 | *.pyc
288 |
289 | # Cake - Uncomment if you are using it
290 | # tools/**
291 | # !tools/packages.config
292 |
293 | # Tabs Studio
294 | *.tss
295 |
296 | # Telerik's JustMock configuration file
297 | *.jmconfig
298 |
299 | # BizTalk build output
300 | *.btp.cs
301 | *.btm.cs
302 | *.odx.cs
303 | *.xsd.cs
304 |
305 |
306 | #Xamarin Formss
307 | Steer73.Boojum.Droid/Resources/Resources/sResource.Designer.cs
308 |
--------------------------------------------------------------------------------
/ParallaxScroll.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 |
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Assets/Fonts/PermanentMarker.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Assets/Fonts/PermanentMarker.ttf
--------------------------------------------------------------------------------
/ParallaxScroll.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 ParallaxScroll.Droid
11 | {
12 | [Activity(Label = "ParallaxScroll", 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 bundle)
16 | {
17 | TabLayoutResource = Resource.Layout.Tabbar;
18 | ToolbarResource = Resource.Layout.Toolbar;
19 |
20 | base.OnCreate(bundle);
21 |
22 | global::Xamarin.Forms.Forms.Init(this, bundle);
23 | LoadApplication(new App());
24 | }
25 | }
26 | }
27 |
28 |
--------------------------------------------------------------------------------
/ParallaxScroll.Android/ParallaxScroll.Android.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}
7 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
8 | {c9e5eea5-ca05-42a1-839b-61506e0a37df}
9 | Library
10 | ParallaxScroll.Droid
11 | ParallaxScroll.Android
12 | True
13 | Resources\Resource.designer.cs
14 | Resource
15 | Properties\AndroidManifest.xml
16 | Resources
17 | Assets
18 | false
19 | v8.1
20 |
21 |
22 |
23 |
24 | true
25 | full
26 | false
27 | bin\Debug
28 | DEBUG;
29 | prompt
30 | 4
31 | None
32 |
33 |
34 | true
35 | pdbonly
36 | true
37 | bin\Release
38 | prompt
39 | 4
40 | true
41 | false
42 |
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 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}
116 | ParallaxScroll
117 |
118 |
119 |
120 |
121 |
122 |
123 |
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Properties/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ParallaxScroll.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("ParallaxScroll.Android")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("ParallaxScroll.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 |
--------------------------------------------------------------------------------
/ParallaxScroll.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 |
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-hdpi/cloudbiggest.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-hdpi/cloudbiggest.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-hdpi/parallaxscroll.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-hdpi/parallaxscroll.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-hdpi/shadow_parallax_depth1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-hdpi/shadow_parallax_depth1.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-hdpi/shadow_parallax_depth2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-hdpi/shadow_parallax_depth2.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-hdpi/sun.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-hdpi/sun.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-xhdpi/cloudbiggest.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-xhdpi/cloudbiggest.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-xhdpi/parallaxscroll.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-xhdpi/parallaxscroll.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-xhdpi/shadow_parallax_depth1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-xhdpi/shadow_parallax_depth1.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-xhdpi/shadow_parallax_depth2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-xhdpi/shadow_parallax_depth2.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-xhdpi/sun.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-xhdpi/sun.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-xxhdpi/cloudbiggest.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-xxhdpi/cloudbiggest.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-xxhdpi/parallaxscroll.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-xxhdpi/parallaxscroll.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-xxhdpi/shadow_parallax_depth1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-xxhdpi/shadow_parallax_depth1.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-xxhdpi/shadow_parallax_depth2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-xxhdpi/shadow_parallax_depth2.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-xxhdpi/sun.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-xxhdpi/sun.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-xxxhdpi/cloudbiggest.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-xxxhdpi/cloudbiggest.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-xxxhdpi/parallaxscroll.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-xxxhdpi/parallaxscroll.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-xxxhdpi/shadow_parallax_depth1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-xxxhdpi/shadow_parallax_depth1.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-xxxhdpi/shadow_parallax_depth2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-xxxhdpi/shadow_parallax_depth2.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/drawable-xxxhdpi/sun.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/drawable-xxxhdpi/sun.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/layout/Tabbar.axml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/layout/Toolbar.axml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/mipmap-anydpi-v26/icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/mipmap-anydpi-v26/icon_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/mipmap-hdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/mipmap-hdpi/Icon.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/mipmap-hdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/mipmap-hdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/mipmap-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/mipmap-mdpi/icon.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/mipmap-mdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/mipmap-mdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/mipmap-xhdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/mipmap-xhdpi/Icon.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/mipmap-xhdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/mipmap-xhdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/mipmap-xxhdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/mipmap-xxhdpi/Icon.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/mipmap-xxhdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/mipmap-xxhdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/mipmap-xxxhdpi/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/mipmap-xxxhdpi/Icon.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFFFFF
4 | #3F51B5
5 | #303F9F
6 | #FF4081
7 |
--------------------------------------------------------------------------------
/ParallaxScroll.Android/Resources/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
24 |
27 |
--------------------------------------------------------------------------------
/ParallaxScroll.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 ParallaxScroll.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 |
--------------------------------------------------------------------------------
/ParallaxScroll.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 | }
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Entitlements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ParallaxScroll.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 | ParallaxScroll
27 | CFBundleIdentifier
28 | com.xamarinium.parallaxscroll.ParallaxScroll
29 | CFBundleVersion
30 | 1.0
31 | UILaunchStoryboardName
32 | LaunchScreen
33 | CFBundleName
34 | ParallaxScroll
35 | XSAppIconAssets
36 | Assets.xcassets/AppIcon.appiconset
37 | UIAppFonts
38 |
39 | Fonts/PermanentMarker.ttf
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/ParallaxScroll.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 ParallaxScroll.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 |
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/ParallaxScroll.iOS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | iPhoneSimulator
6 | 8.0.30703
7 | 2.0
8 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}
9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
10 | {6143fdea-f3c2-4a09-aafa-6e230626515e}
11 | Exe
12 | ParallaxScroll.iOS
13 | Resources
14 | ParallaxScroll.iOS
15 |
16 |
17 |
18 |
19 | true
20 | full
21 | false
22 | bin\iPhoneSimulator\Debug
23 | DEBUG
24 | prompt
25 | 4
26 | false
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 | false
40 |
41 |
42 | true
43 | full
44 | false
45 | bin\iPhone\Debug
46 | DEBUG
47 | prompt
48 | 4
49 | false
50 | ARM64
51 | iPhone Developer
52 | true
53 | Entitlements.plist
54 |
55 |
56 | none
57 | true
58 | bin\iPhone\Release
59 | prompt
60 | 4
61 | ARM64
62 | false
63 | iPhone Developer
64 | Entitlements.plist
65 |
66 |
67 | none
68 | True
69 | bin\iPhone\Ad-Hoc
70 | prompt
71 | 4
72 | False
73 | ARM64
74 | True
75 | Automatic:AdHoc
76 | iPhone Distribution
77 | Entitlements.plist
78 |
79 |
80 | none
81 | True
82 | bin\iPhone\AppStore
83 | prompt
84 | 4
85 | False
86 | ARM64
87 | Automatic:AppStore
88 | iPhone Distribution
89 | Entitlements.plist
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 | false
102 |
103 |
104 | false
105 |
106 |
107 | false
108 |
109 |
110 | false
111 |
112 |
113 | false
114 |
115 |
116 | false
117 |
118 |
119 | false
120 |
121 |
122 | false
123 |
124 |
125 | false
126 |
127 |
128 | false
129 |
130 |
131 | false
132 |
133 |
134 | false
135 |
136 |
137 | false
138 |
139 |
140 | false
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}
156 | ParallaxScroll
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
--------------------------------------------------------------------------------
/ParallaxScroll.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("ParallaxScroll.iOS")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("ParallaxScroll.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 |
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/Default-568h@2x.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/Default-Portrait.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/Default.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/Default@2x.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/Fonts/PermanentMarker.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/Fonts/PermanentMarker.ttf
--------------------------------------------------------------------------------
/ParallaxScroll.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 |
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/cloudbiggest.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/cloudbiggest.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/cloudbiggest@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/cloudbiggest@2x.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/cloudbiggest@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/cloudbiggest@3x.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/parallaxscroll.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/parallaxscroll.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/parallaxscroll@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/parallaxscroll@2x.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/parallaxscroll@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/parallaxscroll@3x.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/shadow_parallax_depth1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/shadow_parallax_depth1.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/shadow_parallax_depth1@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/shadow_parallax_depth1@2x.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/shadow_parallax_depth1@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/shadow_parallax_depth1@3x.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/shadow_parallax_depth2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/shadow_parallax_depth2.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/shadow_parallax_depth2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/shadow_parallax_depth2@2x.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/shadow_parallax_depth2@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/shadow_parallax_depth2@3x.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/sun.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/sun.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/sun@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/sun@2x.png
--------------------------------------------------------------------------------
/ParallaxScroll.iOS/Resources/sun@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/ParallaxScroll.iOS/Resources/sun@3x.png
--------------------------------------------------------------------------------
/ParallaxScroll.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2012
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ParallaxScroll.Android", "ParallaxScroll.Android\ParallaxScroll.Android.csproj", "{66315D3E-667E-4FF9-BD22-C33B39FD41F3}"
5 | EndProject
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ParallaxScroll.iOS", "ParallaxScroll.iOS\ParallaxScroll.iOS.csproj", "{2992A09E-CD49-42BF-AF9E-65A20DE67AB0}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ParallaxScroll", "ParallaxScroll\ParallaxScroll.csproj", "{648D6EFE-B2B6-4467-8128-8634E3D44AFA}"
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 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
24 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
25 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}.Release|Any CPU.Build.0 = Release|Any CPU
26 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
27 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
28 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
29 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
30 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}.Debug|iPhone.ActiveCfg = Debug|Any CPU
31 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}.Debug|iPhone.Build.0 = Debug|Any CPU
32 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}.Release|iPhone.ActiveCfg = Release|Any CPU
33 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}.Release|iPhone.Build.0 = Release|Any CPU
34 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
35 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
36 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
37 | {66315D3E-667E-4FF9-BD22-C33B39FD41F3}.AppStore|iPhone.Build.0 = Debug|Any CPU
38 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
39 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
40 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}.Release|Any CPU.ActiveCfg = Release|iPhoneSimulator
41 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}.Release|Any CPU.Build.0 = Release|iPhoneSimulator
42 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
43 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
44 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
45 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
46 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}.Debug|iPhone.ActiveCfg = Debug|iPhone
47 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}.Debug|iPhone.Build.0 = Debug|iPhone
48 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}.Release|iPhone.ActiveCfg = Release|iPhone
49 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}.Release|iPhone.Build.0 = Release|iPhone
50 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
51 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
52 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
53 | {2992A09E-CD49-42BF-AF9E-65A20DE67AB0}.AppStore|iPhone.Build.0 = AppStore|iPhone
54 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
55 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}.Debug|Any CPU.Build.0 = Debug|Any CPU
56 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}.Release|Any CPU.ActiveCfg = Release|Any CPU
57 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}.Release|Any CPU.Build.0 = Release|Any CPU
58 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
59 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
60 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
61 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
62 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}.Debug|iPhone.ActiveCfg = Debug|Any CPU
63 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}.Debug|iPhone.Build.0 = Debug|Any CPU
64 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}.Release|iPhone.ActiveCfg = Release|Any CPU
65 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}.Release|iPhone.Build.0 = Release|Any CPU
66 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
67 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
68 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
69 | {648D6EFE-B2B6-4467-8128-8634E3D44AFA}.AppStore|iPhone.Build.0 = Debug|Any CPU
70 | EndGlobalSection
71 | EndGlobal
72 |
--------------------------------------------------------------------------------
/ParallaxScroll/App.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ParallaxScroll/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Xamarin.Forms;
3 | using Xamarin.Forms.Xaml;
4 |
5 | [assembly: XamlCompilation(XamlCompilationOptions.Compile)]
6 | namespace ParallaxScroll
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 |
--------------------------------------------------------------------------------
/ParallaxScroll/MainPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
22 |
23 |
31 |
32 |
33 |
41 |
42 |
50 |
51 |
58 |
59 |
63 |
64 |
68 |
69 |
73 |
74 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/ParallaxScroll/MainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using Xamarin.Forms;
2 |
3 | namespace ParallaxScroll
4 | {
5 | public partial class MainPage : ContentPage
6 | {
7 | private const double TextSpeed = 0.5;
8 | private const double ShadowSpeed = 0.2;
9 | private const double SkyscrapersSpeed = 0.4;
10 | private const double CloudBiggestSpeed = 0.35;
11 | private const double CloudMediumSpeed = 0.6;
12 | private const double CloudSmallSpeed = 0.7;
13 |
14 | private double _parallaxLabelStartY;
15 | private double _parallaxShadowCityStartY;
16 | private double _parallaxSkyscrapersStartY;
17 | private double _parallaxCloudBiggestStartY;
18 | private double _parallaxCloudMediumStartY;
19 | private double _parallaxCloudSmallStartY;
20 |
21 | public MainPage()
22 | {
23 | InitializeComponent();
24 | ParallaxScrollView.Scrolled += ParallaxScrollViewOnScrolled;
25 | }
26 |
27 | protected override void OnSizeAllocated(double width, double height)
28 | {
29 | base.OnSizeAllocated(width, height);
30 |
31 | // Init start position for parallax elements
32 | CityImage.WidthRequest = width;
33 | CityImage.TranslationY = ParalaxContainer.Height -
34 | CityImage.Height;
35 | CityImage.TranslationX = 0;
36 |
37 | ShadowCityImage.WidthRequest = width;
38 | ShadowCityImage.TranslationY =
39 | _parallaxShadowCityStartY = ParalaxContainer.Height -
40 | ShadowCityImage.Height - 30;
41 | ShadowCityImage.TranslationX = 0;
42 |
43 | SkyscrapersImage.WidthRequest = width;
44 | SkyscrapersImage.TranslationY =
45 | _parallaxSkyscrapersStartY =
46 | _parallaxShadowCityStartY = ParalaxContainer.Height -
47 | SkyscrapersImage.Height - 30;
48 | SkyscrapersImage.TranslationX = 0;
49 |
50 | CloudMediumImage.TranslationX = ParalaxContainer.Width -
51 | CloudMediumImage.Width - 20;
52 | CloudMediumImage.TranslationY = _parallaxCloudMediumStartY = 60;
53 |
54 | _parallaxCloudBiggestStartY = CloudBiggestImage.TranslationY;
55 | _parallaxCloudSmallStartY = CloudSmallImage.TranslationY;
56 |
57 | ParallaxLabel.TranslationX = ParalaxContainer.Width / 2
58 | - ParallaxLabel.Width / 2;
59 | ParallaxLabel.TranslationY =
60 | _parallaxLabelStartY = ParalaxContainer.Height / 2
61 | - ParallaxLabel.Height / 2;
62 | }
63 |
64 | private void ParallaxScrollViewOnScrolled(object sender, ScrolledEventArgs e)
65 | {
66 | ParalaxTextAnimation(e.ScrollY);
67 | ParalaxShadowCityAnimation(e.ScrollY);
68 | ParalaxSkyscrapersAnimation(e.ScrollY);
69 | ParalaxCloudBiggestAnimation(e.ScrollY);
70 | ParalaxCloudMediumAnimation(e.ScrollY);
71 | ParalaxCloudSmallAnimation(e.ScrollY);
72 | }
73 |
74 | private void ParalaxTextAnimation(double scrollY)
75 | {
76 | ParalaxAnimation(ParallaxLabel, scrollY, _parallaxLabelStartY, 0,
77 | ParalaxContainer.HeightRequest - ParallaxLabel.Height, TextSpeed);
78 | }
79 |
80 | private void ParalaxShadowCityAnimation(double scrollY)
81 | {
82 | ParalaxAnimation(ShadowCityImage, scrollY, _parallaxShadowCityStartY, 0,
83 | ParalaxContainer.HeightRequest - ShadowCityImage.Height, ShadowSpeed);
84 | }
85 |
86 | private void ParalaxSkyscrapersAnimation(double scrollY)
87 | {
88 | ParalaxAnimation(SkyscrapersImage, scrollY, _parallaxSkyscrapersStartY, 0,
89 | ParalaxContainer.HeightRequest - SkyscrapersImage.Height, SkyscrapersSpeed);
90 | }
91 |
92 | private void ParalaxCloudBiggestAnimation(double scrollY)
93 | {
94 | ParalaxAnimation(CloudBiggestImage, scrollY, _parallaxCloudBiggestStartY, 20,
95 | ParalaxContainer.HeightRequest - CloudBiggestImage.Height, CloudBiggestSpeed);
96 | }
97 |
98 | private void ParalaxCloudMediumAnimation(double scrollY)
99 | {
100 | ParalaxAnimation(CloudMediumImage, scrollY, _parallaxCloudMediumStartY, 0,
101 | ParalaxContainer.HeightRequest - CloudMediumImage.Height, CloudMediumSpeed);
102 | }
103 |
104 | private void ParalaxCloudSmallAnimation(double scrollY)
105 | {
106 | ParalaxAnimation(CloudSmallImage, scrollY, _parallaxCloudSmallStartY, 30,
107 | ParalaxContainer.HeightRequest - CloudSmallImage.Height - CloudMediumImage.Height, CloudSmallSpeed);
108 | }
109 |
110 | private void ParalaxAnimation(View control,
111 | double scrollY,
112 | double startPosition,
113 | double minPosition,
114 | double maxPosition,
115 | double speed)
116 | {
117 | var newPosition = startPosition + scrollY * speed;
118 | if (newPosition > minPosition && newPosition < maxPosition)
119 | control.TranslationY = newPosition;
120 | }
121 | }
122 | }
--------------------------------------------------------------------------------
/ParallaxScroll/ParallaxScroll.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.0
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/ParallaxScroll/WikiView.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
8 |
10 |
11 |
12 |
13 |
15 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
27 |
28 |
29 |
30 |
40 |
41 |
--------------------------------------------------------------------------------
/ParallaxScroll/WikiView.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using Xamarin.Forms;
4 |
5 | namespace ParallaxScroll
6 | {
7 | public partial class WikiView : ContentView
8 | {
9 | public WikiView()
10 | {
11 | InitializeComponent();
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ParallaxScroll
2 |
3 |
4 |
5 | ## Xamarin forms parallax scroll effect
6 |
7 | If you want to get more often new examples, then please support our project. You can do that here.
8 |
9 |
10 |
11 | Android |
12 | iOS |
13 |
14 |
15 |  |
16 |  |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Screenshots/android.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/Screenshots/android.gif
--------------------------------------------------------------------------------
/Screenshots/ios.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/Screenshots/ios.gif
--------------------------------------------------------------------------------
/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xamarinium/ParallaxScroll/7ba87c0d5e5e23880eaaff2c4e9b0b250029682d/icon.png
--------------------------------------------------------------------------------