73. Switch points
Home base
240dp 320dp 360dp 400dp 426dp 480dp 533dp 568dp 578dp 640dp
small size portrait small size landscape normal size landscape
normal size portrait large size portrait
resized elements
margins added
switch point (another layout)
74. Expensive way
Boom!
Home base
240dp 320dp 360dp 400dp 426dp 480dp 533dp 568dp 578dp 640dp
small size portrait small size landscape normal size landscape
normal size portrait large size portrait
resized elements
margins added
switch point (another layout)
88. “API” glue
public void showArticle(long id, String content) {
webView.loadUrl("javascript: jsShowArticle(" + id
+ ", " + Uri.encode(content) + "");")
}
..
public void jsOnNextArticle(long articleId) {
…
}
89. “API” glue
public void showArticle(long id, String content) {
webView.loadUrl("javascript: jsShowArticle(" + id
+ ", " + Uri.encode(content) + "");")
}
..
public void jsOnNextArticle(long articleId) {
…
}
90. Summary (Hybrid apps)
• Content centered apps
• FAQ, User License, …
• 1-1.5x more effort than native
• Pays of when targeting >= 3 platforms
91. Read ON
- The real problem with Android fragmentation
- Where does Android fragmentation hide?
- The technical adventure building a hybrid app.
- Fast track to Android design.
Interested in Android? @MaksimGolivkin
Care to give feedback? maksim@golivkin.eu