Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Tham khảo tài liệu 'xây dựng ứng dụng cho android với html, css và javascript - part 8', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Next add the following line to the head section of the traffic cop HTML document android.html replace myCustomIcon.png with the absolute or relative path to the image clink rel apple-touch-icon-precomposed href myCustomIcon.png As you might have noticed this is an Apple-specific directive that has been adopted by Android. What You ve Learned In this chapter you ve learned how to convert a normal website into an Ajax application complete with progress indicators and a native-looking Back button. In the next chapter you ll learn how to make your app come alive by adding native UI animations. That s right here comes the fun stuff What You ve Learned 53 Download from www.eBookTM.com Download from www.eBookTM.com CHAPTER 4 Animation Android apps have a number of distinctive animation characteristics that add context and meaning for the user. For example pages slide left as users drill down through links and slide right as they navigate back. In this chapter you ll learn how to add characteristic behaviors like sliding page flip and more to your web app. These changes will make your web app almost indistinguishable from a native application. With a Little Help from Our Friend I ll be honest making a web page animate like a typical native app is hard. Fortunately an enterprising young lad named David Kaneda has created a JavaScript library called jQTouch that makes mobile web development a whole heckuva lot easier. jQTouch is an open source jQuery plug-in that handles virtually everything we learned in the previous chapter as well as a boatload of much more complex stuff that would be truly painful to write from scratch. You can download the latest version of jQTouch at http lljqtouch .coml. In the interest of full disclosure you should know David recently fj 1 asked me to be the official maintainer for jQTouch an honor I happily accepted. Sliding Home We are going to build a simple calorie-tracking application called Kilo that allows the user to add and delete food .