How Android engineers quickly learn about web
How can Android engineers quickly learn the web section? Today, I am mainly talking about my recent experience in the web section. Recently, html5 is getting increasingly popular, some time ago, the company made a project and asked our "android" program to help build the client framework. In fact, the so-called framework is actually a shell of android, then we embedded all the pages in webview and loaded html5. We found that the effects of html5 clients and android native were not very bad. It seems that the company is so interested in h5 trends, I am so keen to learn h5 ,. When I first started learning, I started to install the software sublime_text.exe to write h5 Code. At the beginning, I thought it was easy to directly open the browser to view the effect. The first demo I wrote was to click the button to play a music. When I first typed the code, I typed the code in Notepad. when the result was saved, it was saved as ANSI encoding by default, the result is displayed as garbled characters, and the code is also encoded.
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
But it was still garbled and tangled for a long time. When I thought about whether I saved the encoding, I checked it and modified the encoding and then browsed it with a browser. This was the expected result, at that time, I was so happy that I finally made the first h5 demo. I instantly felt that h5 was very simple. From that demo, I learned h5 with great confidence. After many demos, I did this for a complete h5 app. I hope I can help other friends as much as possible. Thank you.