Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Titanium もくもく会 #11
Search
Kosuke Isobe
September 10, 2013
230
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Titanium もくもく会 #11
Kosuke Isobe
September 10, 2013
More Decks by Kosuke Isobe
See All by Kosuke Isobe
React Native で LDR の クライアントを作ったというお話
k0sukey
0
110
Mocha testing in Titanium(en)
k0sukey
1
160
Mocha testing in Titanium(ja)
k0sukey
0
190
Titanium もくもく会 #10
k0sukey
0
2.3k
Titanium もくもく会 #5
k0sukey
0
2k
Featured
See All Featured
Color Theory Basics | Prateek | Gurzu
gurzu
0
380
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.4k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
AI: The stuff that nobody shows you
jnunemaker
PRO
8
770
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4.1k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Designing for Timeless Needs
cassininazir
1
270
Become a Pro
speakerdeck
PRO
31
6k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
180
Navigating Weather and Climate Data
rabernat
0
280
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
410
Transcript
Ϟδϡʔϧͷ͝հ 5JUBOJVN͘͘ձ 139݄10Ր༵
͍ͦ͜͏͚͢ @k0sukey ιέοτϕʔεΦʔϓϯεϚΠϧۈ 139݄10Ր༵
ઌʹݴ͓͖ͬͯ·͕͢ "OESPJEͷ Ϟδϡʔϧ͋Γ·ͤΜ 139݄10Ր༵
TiDKLiveBlur k0sukey/TiDKLiveBlur 139݄10Ր༵
5J6*5BCMF7JFX-JTU7JFXΛεΫϩʔϧͤ͞Δͱɺ J04෩ͷεϦΨϥεޮՌΛ࣮ݱͯ͘͠ΕΔϞδϡʔϧ UJBQQYNMͰಡΈ͜Ή͚ͩͰ0,Ͱ͢ɻSFRVJSFͷඞ ཁͳ͠ CBDLHSPVOE#MVS*NBHFHMBTT$PMPS͕͑ΔΑ͏ʹ ͳΓ·͢ %,-JWF#MVSͱ͍͏ϥΠϒϥϦΛ5JUBOJVNͰ͑Δ Α͏ʹ͠·ͨ͠ 139݄10Ր༵
tiapp.xml <modules> <module platform=”iphone”>be.k0suke.tidkliveblur</module> </modules> app.js var tableView = Ti.UI.createTableView({
backgroundBlurImage: ‘/images/backgroundɻpng’, glassColor: ‘#fff’ // optional }); 139݄10Ր༵
TiISRefreshControl k0sukey/TiISRefreshControl 139݄10Ր༵
5J6*5BCMF7JFX-JTU7JFXͰ 6*3FGSFTI$POUSPM͕͑ΔΑ͏ʹͳΔϞδϡʔϧ UJBQQYNMͰಡΈ͜Ή͚ͩͰ0,Ͱ͢ɻSFRVJSF ͷඞཁͳ͠ ͍͔ͭ͘ͷϓϩύςΟϝιου͕͑ΔΑ͏ʹ ͳΓ·͢ *43FGSFTI$POUSPMͱ͍͏ϥΠϒϥϦΛ5JUBOJVN Ͱ͑ΔΑ͏ʹ͠·ͨ͠ 139݄10Ր༵
KitchenSink pull to refresh example var tableView = Ti.UI.createTableView(), pulling
= false, reloading = false; tableView.addEventListener(‘scroll’, function(e){ var offset = e.contentOffset.y; if (offset <= 65 && !pulling && !reloadingoading) { // release to refresh proc } else if (pulling && (offset > -65 && offset < 0) && !reloading) { // pull down to refresh proc } }); tableView.addEventListener(‘dragend’, function(e){ if (pulling && !reloading) { reloading = true, pulling = false; // reloading proc } }); ... 139݄10Ր༵
tiapp.xml <modules> <module platform=”iphone”>be.k0suke.isrefreshcontrol</module> </modules> app.js var tableView = Ti.UI.createTableView({
refreshControlEnabled: true // default true }); tableView.addEventListener(‘refreshstart’, function(){ setTimeout(function(){ tableView.refreshFinish(); }, 5000); }); 139݄10Ր༵
΅͍ͬͯ͘·͢ "OESPJEͷਓ ͪ·͠ΐ͏ 139݄10Ր༵
ࢭ·Βͳ͍*TTVFT ୭͔ॿ͚ͯ 139݄10Ր༵
શʹଞਓͷ;ΜͲ͠Ͱ ૬Λͱͬͨ Ϟδϡʔϧͷ͝հͰͨ͠ 139݄10Ր༵
͓͠·͍ 139݄10Ր༵