More Related Content
More from OpenSourceWeek (6)
09 julia 开源移动开发框架
- 3. Java
• 2.2 JIT
• Eclipse
• met/src/cc/miankong/julia/...
cd ../../../ “ ”
- 6. Android
setPositiveButton(
android.R.string.ok,
new AlertDialog.onClickListener() {
public void onClick(
DialogInterface d, int which) {
...
}
})
onClickListener Java
- 7. Julia
Controller
touched: function(what) {
if (what === “1”) {
// ok
}
// cancel
}
- 8. XML
XML
<?xml version=”1.0” encoding=”utf-8”?>
<shape xmlns:android=”http://schemas.android.com/apk/res/android”
android:shape=”rectangle”>
<gradient
android:startColor=”#414141”
android:centerColor=”#202020”
android:endColor=”#080808”
android:angle=”270”
/>
</shape>
- 9. Julia
HTML5/CSS3 View
<div class=”btn” data-touchable=”takePicture”>
<label class=”cam-gradient”></label>
</div>
- 12. Model + Template
<ul class="table">
! ! {% for(var i=0; i < x.length; i++) { %}
! ! <li data-touchable="pushProfileView"
! ! ! data-user="{{ x[i].gid }}:{{ x[i].screenName }}">
! ! ! {% if (x[i].profileImageUrl) { %}
! ! ! ! <img src="{{ x[i].profileImageUrl }}">
! ! ! {% } %}
! ! ! <div><label>{{ x[i].screenName }}</label></div>
! ! ! <span class="more"></span>
! ! </li>
! ! {% } %}
</ul>
- 14. RESTful Model
URL + Converter
refresh : function(postId, apiUrl) {
! ! var url = apiUrl
|| (appNamespace.HOST + "/api/met/get"),
! ! ! data = {id: postId};
! ! this.oauthREST(url, data, function(self, response) {
! ! ! self.patch(response);
! ! ! self.set({x: response});
! ! }, null);
! }
- 15. Julia MVC
• HTML5/CSS3 View
• REST Model
• JSP Template
• Delegation
- 16. Julia SQLite
jsi.sqlInsert(
"keyvalue",
{
key:
appNamespace.SNAP_HINT_DISPLAYED_KEY,
value: "1"
},
function(lastRow){});
- 18. Julia
• JS
Julia
• Template
• DOM Webkit
Reflow/Layout
• CSS3
- 19. Julia
DOM
NavigationView
View View
DIV
- 21. • Python/Ruby/
Apache HttpClient
•
•
•
- 22. Julia
API JS
http://www.miankong.cc/julia/