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

Why has mobile payment not become popular after so many years?

January 8 news, why has mobile payment technology...

What is the generally good keyword density for a website?

What is the generally good keyword density for a ...

Mobile game developers should pay attention to these 6 trends in 2016

We are already halfway through 2016, but that doe...

Why can’t Baidu’s “Kuai Search” detect gutter oil?

BaiduEye is an amazing product because it is base...

About improving operational conversion rate (Part 1)

When users use a product, there are always two op...

Is there still hope for the silent Android TV games in this cold wave?

Looking back at the whole year of 2015, the TV ga...

Human genome sequencing has been completed. What does this mean?

It is very interesting for humans to study their ...

A guide to entering the short video industry!

Let's take the short video leader TikTok as a...

How to teach your girlfriend programming?

[[146883]] Ever since I started as a software dev...

March Event Calendar丨47+ Marketing Event Reminders

As a marketer, you need to have a keen sense of h...

Analysis of major mainstream information flow promotion channels in 2019!

With the development of social media, information...