Android application source code imitating NetEase client source code effect

Android application source code imitating NetEase client source code effect


Source code introduction

Imitation of NetEase client source code renderings, the default encoding is GBK, friends in need can study it.
Source code screenshot

Source code snippet

  1. public ArrayList<hashmap<string, string= "" >> getSimulationNews( int n) {
  2. ArrayList<hashmap<string, string= "" >> ret = new ArrayList<hashmap<string, string= "" >>();
  3. HashMap<string, string= "" > hm;
  4. for ( int i = 0 ; i < n; i++) {
  5. hm = new HashMap<string, string= "" >();
  6. if (i % 2 == 0 ) {
  7. hm.put( "uri" ,
  8. "http://images.china.cn/attachement/jpg/site1000/20131029/001fd04cfc4813d9af0118.jpg" );
  9. } else {
  10. hm.put( "uri" ,
  11. "http://photocdn.sohu.com/20131101/Img389373139.jpg" );
  12. }
  13. hm.put( "title" , "Domestic refined oil prices are almost certain to fall for two consecutive times" );
  14. hm.put( "content" , "Domestic refined oil prices will be adjusted today, and institutions expect the price to drop by 0.1 yuan per liter." );
  15. hm.put( "review" , i + "follow" );
  16. ret.add(hm);
  17. }
  18. return ret;
  19. }</string,></string,></hashmap<string,></hashmap<string,></hashmap<string,>

Source code link: http://download..com/data/2012864

<<:  Android app automatic updates

>>:  16 Best JavaScript Frameworks in Chinese

Recommend

By the way, why did BlackBerry choose Indonesia as its last market?

Last month, BlackBerry announced that it would no...

Don’t ask! Milk tea is for afternoon drinking, people go crazy at night!

Who is the “traffic leader” in the beverage indus...

Xiaomi 4 frame violence test: Is the paint really peeling off?

Yesterday, Weibo user @哲野狂人 said that the Xiaomi M...

Young people, are your health-preserving methods reliable?

On Douban, a group called "We Love Health Pr...

Why do you have such a hard time finding seed users?

After the product is launched, someone is needed ...

12 tips | Key points you need to know about creating advertising slogans

I won’t accept any gifts this year, and if I do, ...

Data | Big data explains whether Internet car manufacturing is reliable

The video maker is going to make cars, the home a...

Are luxury goods suitable for TikTok marketing? ?

Last week, TikTok officially announced that its g...

Where will WeChat go in the second half?

[[243547]] Image source: Visual China In the firs...

Xiaohongshu brand marketing method!

After all your preparations, you didn’t expect th...

As early as more than 70 years ago, Hainanese people achieved "coffee freedom"?

People who come to Hainan, in addition to enjoyin...

How to attract new users and increase growth?

Because there is no growth, growth is imminent! A...