I have been doing android development for more than a year. I found myself a lot lazy, and my blog hasn't been updated for a long time. I saw my friends working very diligently and shared their technical experiences, I really admire this spirit !!!
I usually get off work late, and sometimes I have to work overtime. TMD's hard-pressed programmers are getting angry with my girlfriend because the computer time is several times longer than my girlfriend's time...
But fortunately, she can understand that this small application made this time allows her to tell her a joke every day, saving her that she is not humorous and has few words, is that true for IT silk men...
I have spent two nights talking about this. I have worked as a beauty engineer by myself. The pictures are all my own ps...
First, there are few interfaces. jsoup is used to collect jokes in the "Haha" column from sogou browser, and the jokes are displayed on the mobile client.
Main technologies:
1. I used xlistviwe, an open-source refresh control on the Internet, and optimized and expanded it. I personally feel that it is quite easy to use;
2. Simulate the Netease news client, rewrite the horizontal scrollview, and load data by sliding navigation. However, I use ViewPager + view to combine them. I don't know how to directly look at my source code. It's very simple;
3. Network images are encapsulated by ImageLoder. The code in the image is a bit messy, but it is not bad. The image is loaded quickly and uses lrucache and file cache.
4. The effect of zooming and zooming images on Netease is that the images are smaller. Because sogou is a dynamic web page, jsoup cannot be used for dynamic data temporarily.
5. the data is locally cached, but the first page of data is cached. It is quite fresh to store the list object in xstream format. It is just your own originality that we haven't seen on the Internet;
6. Let's not talk about anything else. Just look at the code.
After talking about that, download the source code here: Wait, the upload is too slow. I am sorry to post it on the Internet.
: Works
115 Network Disk: http://115.com/lb/5lb7zq9x
115 online storage package code: 5lb7zq9x