日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Android >内容正文

Android

Android网络框架-Volley实践 使用Volley打造自定义ListView

發布時間:2023/12/18 Android 48 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Android网络框架-Volley实践 使用Volley打造自定义ListView 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

這篇文章翻譯自Ravi Tamada博客中的Android Custom ListView with Image and Text using Volley

最終效果

這個ListView呈現了一些影視信息,每一行是一個影片的信息,每一行中有一張電影的圖片,電影的名字、評分、類型、年份等信息。

1.json數據

我們通過解析json然后拿到數據,這個json數據包括json數組,每個json數組中是一個json對象,json對象中包括了電影的圖片url地址、標題、年份、評分、類型等信息

JSON Url:http://api.androidhive.info/json/movies.json

<a target=_blank id="L1" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;"> 1</a> <a target=_blank id="L2" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;"> 2</a> <a target=_blank id="L3" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;"> 3</a> <a target=_blank id="L4" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;"> 4</a> <a target=_blank id="L5" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;"> 5</a> <a target=_blank id="L6" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;"> 6</a> <a target=_blank id="L7" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;"> 7</a> <a target=_blank id="L8" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;"> 8</a> <a target=_blank id="L9" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L9" rel="#L9" style="color: rgb(102, 102, 102); text-decoration: none;"> 9</a> <a target=_blank id="L10" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L10" rel="#L10" style="color: rgb(102, 102, 102); text-decoration: none;"> 10</a> <a target=_blank id="L11" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L11" rel="#L11" style="color: rgb(102, 102, 102); text-decoration: none;"> 11</a> [{"title": "Dawn of the Planet of the Apes","image": "http://api.androidhive.info/json/movies/1.jpg","rating": 8.3,"releaseYear": 2014,"genre": ["Action", "Drama", "Sci-Fi"]},........]
?來自CODE的代碼片 json

2.下載Volley庫(volley.jar)

如果你第一次使用Volley框架,我建議你去我之前的文章看一下Android網絡框架-Volley(一) 工作原理分析?。然后到百度上下載一個volley.jar。添加到項目的lib文件夾里面

3.布局分析

我選擇了RelativeLayout來實現這個布局,圖片我們使用volley提供的NetworkImageView

現在我們來新建一個Android項目

4.創建一個新的項目

1.打開eclipse,點擊File-->New-->Android Application Project。填好基本信息后,我們把包名命名為info.androidhive.customlistviewvolley

2.將volley.jar添加到項目的lib文件夾下

3.我們先把包建好,我們一共分為4個包:?adapter,?app,?model?和?util? 。現在我們項目結構如下:

info.androidhive.customlistviewvolley.adater
info.androidhive.customlistviewvolley.app
info.androidhive.customlistviewvolley.model
info.androidhive.customlistviewvolley.util

4.打開res/values/colors.xml。如果沒有colors.xml,我們就自己創建一個。然后添加如下代碼

<a target=_blank id="L1" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;"> 1</a> <a target=_blank id="L2" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;"> 2</a> <a target=_blank id="L3" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;"> 3</a> <a target=_blank id="L4" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;"> 4</a> <a target=_blank id="L5" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;"> 5</a> <a target=_blank id="L6" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;"> 6</a> <a target=_blank id="L7" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;"> 7</a> <a target=_blank id="L8" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;"> 8</a> <a target=_blank id="L9" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L9" rel="#L9" style="color: rgb(102, 102, 102); text-decoration: none;"> 9</a> <a target=_blank id="L10" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L10" rel="#L10" style="color: rgb(102, 102, 102); text-decoration: none;"> 10</a> <a target=_blank id="L11" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L11" rel="#L11" style="color: rgb(102, 102, 102); text-decoration: none;"> 11</a> <a target=_blank id="L12" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L12" rel="#L12" style="color: rgb(102, 102, 102); text-decoration: none;"> 12</a> <?xml version="1.0" encoding="utf-8"?><resources> <color name="genre">#666666</color> <color name="year">#888888</color> <color name="list_divider">#d9d9d9</color> <color name="list_row_start_color">#ffffff</color> <color name="list_row_end_color">#ffffff</color> <color name="list_row_hover_start_color">#ebeef0</color> <color name="list_row_hover_end_color">#ebeef0</color> </resources>
?來自CODE的代碼片 colors.xml
5.打開res/values/dimens.xml。添加如下代碼

<a target=_blank id="L1" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;"> 1</a> <a target=_blank id="L2" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;"> 2</a> <a target=_blank id="L3" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;"> 3</a> <a target=_blank id="L4" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;"> 4</a> <a target=_blank id="L5" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;"> 5</a> <a target=_blank id="L6" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;"> 6</a> <a target=_blank id="L7" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;"> 7</a> <a target=_blank id="L8" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;"> 8</a> <resources> <dimen name="title">17dp</dimen> <dimen name="rating">15dip</dimen> <dimen name="genre">13dip</dimen> <dimen name="year">12dip</dimen> </resources>
?來自CODE的代碼片 dimens.xml
6.在寫jsva代碼之前,我們先完成UI部分,在res下新建一個drawable文件夾,在res/drawable中新建3個xml文件:list_row_bg.xml、list_row_bg_hover.xml?、list_row_selector.xml?。
list_row_bg.xml?-沒有被點擊時listview的樣式
<a target=_blank id="L1" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;"> 1</a> <a target=_blank id="L2" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;"> 2</a> <a target=_blank id="L3" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;"> 3</a> <a target=_blank id="L4" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;"> 4</a> <a target=_blank id="L5" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;"> 5</a> <a target=_blank id="L6" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;"> 6</a> <a target=_blank id="L7" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;"> 7</a> <a target=_blank id="L8" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;"> 8</a> <?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"android:shape="rectangle"><gradientandroid:startColor="@color/list_row_start_color"android:endColor="@color/list_row_end_color"android:angle="270" /></shape>
?來自CODE的代碼片 list_row_bg.xml-
list_row_bg_hover.xml?-被點擊后listview的樣式
<a target=_blank id="L1" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;"> 1</a> <a target=_blank id="L2" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;"> 2</a> <a target=_blank id="L3" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;"> 3</a> <a target=_blank id="L4" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;"> 4</a> <a target=_blank id="L5" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;"> 5</a> <a target=_blank id="L6" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;"> 6</a> <a target=_blank id="L7" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;"> 7</a> <a target=_blank id="L8" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;"> 8</a> <a target=_blank id="L9" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L9" rel="#L9" style="color: rgb(102, 102, 102); text-decoration: none;"> 9</a> <a target=_blank id="L10" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L10" rel="#L10" style="color: rgb(102, 102, 102); text-decoration: none;"> 10</a> <?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <gradient android:angle="270" android:endColor="@color/list_row_hover_end_color" android:startColor="@color/list_row_hover_start_color" /> </shape>
?來自CODE的代碼片 list_row_bg_hover.xml
list_row_selector.xml?-切換兩種樣式的slector文件
<a target=_blank id="L1" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;"> 1</a> <a target=_blank id="L2" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;"> 2</a> <a target=_blank id="L3" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;"> 3</a> <a target=_blank id="L4" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;"> 4</a> <a target=_blank id="L5" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;"> 5</a> <a target=_blank id="L6" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;"> 6</a> <a target=_blank id="L7" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;"> 7</a> <a target=_blank id="L8" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;"> 8</a> <?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/list_row_bg" android:state_pressed="false" android:state_selected="false"/> <item android:drawable="@drawable/list_row_bg_hover" android:state_pressed="true"/> <item android:drawable="@drawable/list_row_bg_hover" android:state_pressed="false" android:state_selected="true"/> </selector>
?來自CODE的代碼片 list_row_selector.xml
7.打開activity_main.xml?添加listview

<a target=_blank id="L1" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;"> 1</a> <a target=_blank id="L2" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;"> 2</a> <a target=_blank id="L3" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;"> 3</a> <a target=_blank id="L4" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;"> 4</a> <a target=_blank id="L5" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;"> 5</a> <a target=_blank id="L6" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;"> 6</a> <a target=_blank id="L7" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;"> 7</a> <a target=_blank id="L8" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;"> 8</a> <a target=_blank id="L9" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L9" rel="#L9" style="color: rgb(102, 102, 102); text-decoration: none;"> 9</a> <a target=_blank id="L10" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L10" rel="#L10" style="color: rgb(102, 102, 102); text-decoration: none;"> 10</a> <a target=_blank id="L11" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L11" rel="#L11" style="color: rgb(102, 102, 102); text-decoration: none;"> 11</a> <a target=_blank id="L12" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L12" rel="#L12" style="color: rgb(102, 102, 102); text-decoration: none;"> 12</a> <a target=_blank id="L13" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L13" rel="#L13" style="color: rgb(102, 102, 102); text-decoration: none;"> 13</a> <a target=_blank id="L14" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L14" rel="#L14" style="color: rgb(102, 102, 102); text-decoration: none;"> 14</a> <a target=_blank id="L15" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L15" rel="#L15" style="color: rgb(102, 102, 102); text-decoration: none;"> 15</a> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" > <ListView android:id="@+id/list" android:layout_width="fill_parent" android:layout_height="wrap_content" android:divider="@color/list_divider" android:dividerHeight="1dp" android:listSelector="@drawable/list_row_selector" /> </RelativeLayout>
?來自CODE的代碼片 activity_main.xml

8.創建每個item的布局文件list_row.xml
<a target=_blank id="L1" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;"> 1</a> <a target=_blank id="L2" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;"> 2</a> <a target=_blank id="L3" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;"> 3</a> <a target=_blank id="L4" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;"> 4</a> <a target=_blank id="L5" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;"> 5</a> <a target=_blank id="L6" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;"> 6</a> <a target=_blank id="L7" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;"> 7</a> <a target=_blank id="L8" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;"> 8</a> <a target=_blank id="L9" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L9" rel="#L9" style="color: rgb(102, 102, 102); text-decoration: none;"> 9</a> <a target=_blank id="L10" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L10" rel="#L10" style="color: rgb(102, 102, 102); text-decoration: none;"> 10</a> <a target=_blank id="L11" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L11" rel="#L11" style="color: rgb(102, 102, 102); text-decoration: none;"> 11</a> <a target=_blank id="L12" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L12" rel="#L12" style="color: rgb(102, 102, 102); text-decoration: none;"> 12</a> <a target=_blank id="L13" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L13" rel="#L13" style="color: rgb(102, 102, 102); text-decoration: none;"> 13</a> <a target=_blank id="L14" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L14" rel="#L14" style="color: rgb(102, 102, 102); text-decoration: none;"> 14</a> <a target=_blank id="L15" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L15" rel="#L15" style="color: rgb(102, 102, 102); text-decoration: none;"> 15</a> <a target=_blank id="L16" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L16" rel="#L16" style="color: rgb(102, 102, 102); text-decoration: none;"> 16</a> <a target=_blank id="L17" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L17" rel="#L17" style="color: rgb(102, 102, 102); text-decoration: none;"> 17</a> <a target=_blank id="L18" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L18" rel="#L18" style="color: rgb(102, 102, 102); text-decoration: none;"> 18</a> <a target=_blank id="L19" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L19" rel="#L19" style="color: rgb(102, 102, 102); text-decoration: none;"> 19</a> <a target=_blank id="L20" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L20" rel="#L20" style="color: rgb(102, 102, 102); text-decoration: none;"> 20</a> <a target=_blank id="L21" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L21" rel="#L21" style="color: rgb(102, 102, 102); text-decoration: none;"> 21</a> <a target=_blank id="L22" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L22" rel="#L22" style="color: rgb(102, 102, 102); text-decoration: none;"> 22</a> <a target=_blank id="L23" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L23" rel="#L23" style="color: rgb(102, 102, 102); text-decoration: none;"> 23</a> <a target=_blank id="L24" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L24" rel="#L24" style="color: rgb(102, 102, 102); text-decoration: none;"> 24</a> <a target=_blank id="L25" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L25" rel="#L25" style="color: rgb(102, 102, 102); text-decoration: none;"> 25</a> <a target=_blank id="L26" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L26" rel="#L26" style="color: rgb(102, 102, 102); text-decoration: none;"> 26</a> <a target=_blank id="L27" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L27" rel="#L27" style="color: rgb(102, 102, 102); text-decoration: none;"> 27</a> <a target=_blank id="L28" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L28" rel="#L28" style="color: rgb(102, 102, 102); text-decoration: none;"> 28</a> <a target=_blank id="L29" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L29" rel="#L29" style="color: rgb(102, 102, 102); text-decoration: none;"> 29</a> <a target=_blank id="L30" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L30" rel="#L30" style="color: rgb(102, 102, 102); text-decoration: none;"> 30</a> <a target=_blank id="L31" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L31" rel="#L31" style="color: rgb(102, 102, 102); text-decoration: none;"> 31</a> <a target=_blank id="L32" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L32" rel="#L32" style="color: rgb(102, 102, 102); text-decoration: none;"> 32</a> <a target=_blank id="L33" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L33" rel="#L33" style="color: rgb(102, 102, 102); text-decoration: none;"> 33</a> <a target=_blank id="L34" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L34" rel="#L34" style="color: rgb(102, 102, 102); text-decoration: none;"> 34</a> <a target=_blank id="L35" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L35" rel="#L35" style="color: rgb(102, 102, 102); text-decoration: none;"> 35</a> <a target=_blank id="L36" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L36" rel="#L36" style="color: rgb(102, 102, 102); text-decoration: none;"> 36</a> <a target=_blank id="L37" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L37" rel="#L37" style="color: rgb(102, 102, 102); text-decoration: none;"> 37</a> <a target=_blank id="L38" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L38" rel="#L38" style="color: rgb(102, 102, 102); text-decoration: none;"> 38</a> <a target=_blank id="L39" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L39" rel="#L39" style="color: rgb(102, 102, 102); text-decoration: none;"> 39</a> <a target=_blank id="L40" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L40" rel="#L40" style="color: rgb(102, 102, 102); text-decoration: none;"> 40</a> <a target=_blank id="L41" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L41" rel="#L41" style="color: rgb(102, 102, 102); text-decoration: none;"> 41</a> <a target=_blank id="L42" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L42" rel="#L42" style="color: rgb(102, 102, 102); text-decoration: none;"> 42</a> <a target=_blank id="L43" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L43" rel="#L43" style="color: rgb(102, 102, 102); text-decoration: none;"> 43</a> <a target=_blank id="L44" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L44" rel="#L44" style="color: rgb(102, 102, 102); text-decoration: none;"> 44</a> <a target=_blank id="L45" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L45" rel="#L45" style="color: rgb(102, 102, 102); text-decoration: none;"> 45</a> <a target=_blank id="L46" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L46" rel="#L46" style="color: rgb(102, 102, 102); text-decoration: none;"> 46</a> <a target=_blank id="L47" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L47" rel="#L47" style="color: rgb(102, 102, 102); text-decoration: none;"> 47</a> <a target=_blank id="L48" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L48" rel="#L48" style="color: rgb(102, 102, 102); text-decoration: none;"> 48</a> <a target=_blank id="L49" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L49" rel="#L49" style="color: rgb(102, 102, 102); text-decoration: none;"> 49</a> <a target=_blank id="L50" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L50" rel="#L50" style="color: rgb(102, 102, 102); text-decoration: none;"> 50</a> <a target=_blank id="L51" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L51" rel="#L51" style="color: rgb(102, 102, 102); text-decoration: none;"> 51</a> <a target=_blank id="L52" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L52" rel="#L52" style="color: rgb(102, 102, 102); text-decoration: none;"> 52</a> <a target=_blank id="L53" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L53" rel="#L53" style="color: rgb(102, 102, 102); text-decoration: none;"> 53</a> <a target=_blank id="L54" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L54" rel="#L54" style="color: rgb(102, 102, 102); text-decoration: none;"> 54</a> <a target=_blank id="L55" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L55" rel="#L55" style="color: rgb(102, 102, 102); text-decoration: none;"> 55</a> <a target=_blank id="L56" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L56" rel="#L56" style="color: rgb(102, 102, 102); text-decoration: none;"> 56</a> <a target=_blank id="L57" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L57" rel="#L57" style="color: rgb(102, 102, 102); text-decoration: none;"> 57</a> <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/list_row_selector" android:padding="8dp" > <!-- Volley的NetworkImageView --> <com.android.volley.toolbox.NetworkImageView android:id="@+id/thumbnail" android:layout_width="80dp" android:layout_height="80dp" android:layout_alignParentLeft="true" android:layout_marginRight="8dp" /> <!-- 影片標題 --> <TextView android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@+id/thumbnail" android:layout_toRightOf="@+id/thumbnail" android:textSize="@dimen/title" android:textStyle="bold" /> <!-- 評分 --> <TextView android:id="@+id/rating" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/title" android:layout_marginTop="1dip" android:layout_toRightOf="@+id/thumbnail" android:textSize="@dimen/rating" /> <!-- 類別 --> <TextView android:id="@+id/genre" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/rating" android:layout_marginTop="5dp" android:layout_toRightOf="@+id/thumbnail" android:textColor="@color/genre" android:textSize="@dimen/genre" /> <!-- 年份 --> <TextView android:id="@+id/releaseYear" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:textColor="@color/year" android:textSize="@dimen/year" /> </RelativeLayout>
?來自CODE的代碼片 list_row.xml
UI部分我們已經完成了,接下來是java代碼部分 9.在util包下新建LruBitmapCache.java? 這個類是用來緩存圖片的,這個類我們在之前文章中已經分析過了。參見Android網絡框架-Volley(二) RequestQueue源碼分析以及建立一個RequestQueue
<a target=_blank id="L1" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;"> 1</a> <a target=_blank id="L2" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;"> 2</a> <a target=_blank id="L3" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;"> 3</a> <a target=_blank id="L4" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;"> 4</a> <a target=_blank id="L5" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;"> 5</a> <a target=_blank id="L6" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;"> 6</a> <a target=_blank id="L7" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;"> 7</a> <a target=_blank id="L8" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;"> 8</a> <a target=_blank id="L9" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L9" rel="#L9" style="color: rgb(102, 102, 102); text-decoration: none;"> 9</a> <a target=_blank id="L10" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L10" rel="#L10" style="color: rgb(102, 102, 102); text-decoration: none;"> 10</a> <a target=_blank id="L11" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L11" rel="#L11" style="color: rgb(102, 102, 102); text-decoration: none;"> 11</a> <a target=_blank id="L12" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L12" rel="#L12" style="color: rgb(102, 102, 102); text-decoration: none;"> 12</a> <a target=_blank id="L13" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L13" rel="#L13" style="color: rgb(102, 102, 102); text-decoration: none;"> 13</a> <a target=_blank id="L14" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L14" rel="#L14" style="color: rgb(102, 102, 102); text-decoration: none;"> 14</a> <a target=_blank id="L15" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L15" rel="#L15" style="color: rgb(102, 102, 102); text-decoration: none;"> 15</a> <a target=_blank id="L16" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L16" rel="#L16" style="color: rgb(102, 102, 102); text-decoration: none;"> 16</a> <a target=_blank id="L17" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L17" rel="#L17" style="color: rgb(102, 102, 102); text-decoration: none;"> 17</a> <a target=_blank id="L18" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L18" rel="#L18" style="color: rgb(102, 102, 102); text-decoration: none;"> 18</a> <a target=_blank id="L19" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L19" rel="#L19" style="color: rgb(102, 102, 102); text-decoration: none;"> 19</a> <a target=_blank id="L20" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L20" rel="#L20" style="color: rgb(102, 102, 102); text-decoration: none;"> 20</a> <a target=_blank id="L21" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L21" rel="#L21" style="color: rgb(102, 102, 102); text-decoration: none;"> 21</a> <a target=_blank id="L22" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L22" rel="#L22" style="color: rgb(102, 102, 102); text-decoration: none;"> 22</a> <a target=_blank id="L23" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L23" rel="#L23" style="color: rgb(102, 102, 102); text-decoration: none;"> 23</a> <a target=_blank id="L24" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L24" rel="#L24" style="color: rgb(102, 102, 102); text-decoration: none;"> 24</a> <a target=_blank id="L25" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L25" rel="#L25" style="color: rgb(102, 102, 102); text-decoration: none;"> 25</a> <a target=_blank id="L26" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L26" rel="#L26" style="color: rgb(102, 102, 102); text-decoration: none;"> 26</a> <a target=_blank id="L27" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L27" rel="#L27" style="color: rgb(102, 102, 102); text-decoration: none;"> 27</a> <a target=_blank id="L28" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L28" rel="#L28" style="color: rgb(102, 102, 102); text-decoration: none;"> 28</a> <a target=_blank id="L29" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L29" rel="#L29" style="color: rgb(102, 102, 102); text-decoration: none;"> 29</a> <a target=_blank id="L30" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L30" rel="#L30" style="color: rgb(102, 102, 102); text-decoration: none;"> 30</a> <a target=_blank id="L31" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L31" rel="#L31" style="color: rgb(102, 102, 102); text-decoration: none;"> 31</a> <a target=_blank id="L32" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L32" rel="#L32" style="color: rgb(102, 102, 102); text-decoration: none;"> 32</a> <a target=_blank id="L33" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L33" rel="#L33" style="color: rgb(102, 102, 102); text-decoration: none;"> 33</a> <a target=_blank id="L34" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L34" rel="#L34" style="color: rgb(102, 102, 102); text-decoration: none;"> 34</a> <a target=_blank id="L35" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L35" rel="#L35" style="color: rgb(102, 102, 102); text-decoration: none;"> 35</a> <a target=_blank id="L36" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L36" rel="#L36" style="color: rgb(102, 102, 102); text-decoration: none;"> 36</a> <a target=_blank id="L37" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L37" rel="#L37" style="color: rgb(102, 102, 102); text-decoration: none;"> 37</a> <a target=_blank id="L38" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L38" rel="#L38" style="color: rgb(102, 102, 102); text-decoration: none;"> 38</a> <a target=_blank id="L39" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L39" rel="#L39" style="color: rgb(102, 102, 102); text-decoration: none;"> 39</a> package info.androidhive.customlistviewvolley.util; import com.android.volley.toolbox.ImageLoader.ImageCache; import android.graphics.Bitmap;import android.support.v4.util.LruCache; public class LruBitmapCache extends LruCache<String, Bitmap> implements ImageCache { public static int getDefaultLruCacheSize() { final int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024); final int cacheSize = maxMemory / 2; return cacheSize; } public LruBitmapCache() { this(getDefaultLruCacheSize()); } public LruBitmapCache(int sizeInKiloBytes) { super(sizeInKiloBytes); } @Override protected int sizeOf(String key, Bitmap value) { return value.getRowBytes() * value.getHeight() / 1024; } @Override public Bitmap getBitmap(String url) { return get(url); } @Override public void putBitmap(String url, Bitmap bitmap) { put(url, bitmap); }}
?來自CODE的代碼片 LruBitmapCache.java
10.在app包下新建AppController.java? 這個類是用來創建一個單例RequestQueue的,以及初始化一些volley核心對象
<a target=_blank id="L1" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;"> 1</a> <a target=_blank id="L2" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;"> 2</a> <a target=_blank id="L3" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;"> 3</a> <a target=_blank id="L4" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;"> 4</a> <a target=_blank id="L5" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;"> 5</a> <a target=_blank id="L6" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;"> 6</a> <a target=_blank id="L7" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;"> 7</a> <a target=_blank id="L8" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;"> 8</a> <a target=_blank id="L9" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L9" rel="#L9" style="color: rgb(102, 102, 102); text-decoration: none;"> 9</a> <a target=_blank id="L10" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L10" rel="#L10" style="color: rgb(102, 102, 102); text-decoration: none;"> 10</a> <a target=_blank id="L11" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L11" rel="#L11" style="color: rgb(102, 102, 102); text-decoration: none;"> 11</a> <a target=_blank id="L12" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L12" rel="#L12" style="color: rgb(102, 102, 102); text-decoration: none;"> 12</a> <a target=_blank id="L13" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L13" rel="#L13" style="color: rgb(102, 102, 102); text-decoration: none;"> 13</a> <a target=_blank id="L14" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L14" rel="#L14" style="color: rgb(102, 102, 102); text-decoration: none;"> 14</a> <a target=_blank id="L15" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L15" rel="#L15" style="color: rgb(102, 102, 102); text-decoration: none;"> 15</a> <a target=_blank id="L16" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L16" rel="#L16" style="color: rgb(102, 102, 102); text-decoration: none;"> 16</a> <a target=_blank id="L17" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L17" rel="#L17" style="color: rgb(102, 102, 102); text-decoration: none;"> 17</a> <a target=_blank id="L18" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L18" rel="#L18" style="color: rgb(102, 102, 102); text-decoration: none;"> 18</a> <a target=_blank id="L19" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L19" rel="#L19" style="color: rgb(102, 102, 102); text-decoration: none;"> 19</a> <a target=_blank id="L20" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L20" rel="#L20" style="color: rgb(102, 102, 102); text-decoration: none;"> 20</a> <a target=_blank id="L21" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L21" rel="#L21" style="color: rgb(102, 102, 102); text-decoration: none;"> 21</a> <a target=_blank id="L22" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L22" rel="#L22" style="color: rgb(102, 102, 102); text-decoration: none;"> 22</a> <a target=_blank id="L23" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L23" rel="#L23" style="color: rgb(102, 102, 102); text-decoration: none;"> 23</a> <a target=_blank id="L24" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L24" rel="#L24" style="color: rgb(102, 102, 102); text-decoration: none;"> 24</a> <a target=_blank id="L25" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L25" rel="#L25" style="color: rgb(102, 102, 102); text-decoration: none;"> 25</a> <a target=_blank id="L26" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L26" rel="#L26" style="color: rgb(102, 102, 102); text-decoration: none;"> 26</a> <a target=_blank id="L27" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L27" rel="#L27" style="color: rgb(102, 102, 102); text-decoration: none;"> 27</a> <a target=_blank id="L28" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L28" rel="#L28" style="color: rgb(102, 102, 102); text-decoration: none;"> 28</a> <a target=_blank id="L29" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L29" rel="#L29" style="color: rgb(102, 102, 102); text-decoration: none;"> 29</a> <a target=_blank id="L30" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L30" rel="#L30" style="color: rgb(102, 102, 102); text-decoration: none;"> 30</a> <a target=_blank id="L31" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L31" rel="#L31" style="color: rgb(102, 102, 102); text-decoration: none;"> 31</a> <a target=_blank id="L32" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L32" rel="#L32" style="color: rgb(102, 102, 102); text-decoration: none;"> 32</a> <a target=_blank id="L33" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L33" rel="#L33" style="color: rgb(102, 102, 102); text-decoration: none;"> 33</a> <a target=_blank id="L34" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L34" rel="#L34" style="color: rgb(102, 102, 102); text-decoration: none;"> 34</a> <a target=_blank id="L35" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L35" rel="#L35" style="color: rgb(102, 102, 102); text-decoration: none;"> 35</a> <a target=_blank id="L36" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L36" rel="#L36" style="color: rgb(102, 102, 102); text-decoration: none;"> 36</a> <a target=_blank id="L37" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L37" rel="#L37" style="color: rgb(102, 102, 102); text-decoration: none;"> 37</a> <a target=_blank id="L38" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L38" rel="#L38" style="color: rgb(102, 102, 102); text-decoration: none;"> 38</a> <a target=_blank id="L39" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L39" rel="#L39" style="color: rgb(102, 102, 102); text-decoration: none;"> 39</a> <a target=_blank id="L40" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L40" rel="#L40" style="color: rgb(102, 102, 102); text-decoration: none;"> 40</a> <a target=_blank id="L41" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L41" rel="#L41" style="color: rgb(102, 102, 102); text-decoration: none;"> 41</a> <a target=_blank id="L42" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L42" rel="#L42" style="color: rgb(102, 102, 102); text-decoration: none;"> 42</a> <a target=_blank id="L43" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L43" rel="#L43" style="color: rgb(102, 102, 102); text-decoration: none;"> 43</a> <a target=_blank id="L44" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L44" rel="#L44" style="color: rgb(102, 102, 102); text-decoration: none;"> 44</a> <a target=_blank id="L45" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L45" rel="#L45" style="color: rgb(102, 102, 102); text-decoration: none;"> 45</a> <a target=_blank id="L46" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L46" rel="#L46" style="color: rgb(102, 102, 102); text-decoration: none;"> 46</a> <a target=_blank id="L47" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L47" rel="#L47" style="color: rgb(102, 102, 102); text-decoration: none;"> 47</a> <a target=_blank id="L48" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L48" rel="#L48" style="color: rgb(102, 102, 102); text-decoration: none;"> 48</a> <a target=_blank id="L49" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L49" rel="#L49" style="color: rgb(102, 102, 102); text-decoration: none;"> 49</a> <a target=_blank id="L50" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L50" rel="#L50" style="color: rgb(102, 102, 102); text-decoration: none;"> 50</a> <a target=_blank id="L51" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L51" rel="#L51" style="color: rgb(102, 102, 102); text-decoration: none;"> 51</a> <a target=_blank id="L52" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L52" rel="#L52" style="color: rgb(102, 102, 102); text-decoration: none;"> 52</a> <a target=_blank id="L53" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L53" rel="#L53" style="color: rgb(102, 102, 102); text-decoration: none;"> 53</a> <a target=_blank id="L54" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L54" rel="#L54" style="color: rgb(102, 102, 102); text-decoration: none;"> 54</a> <a target=_blank id="L55" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L55" rel="#L55" style="color: rgb(102, 102, 102); text-decoration: none;"> 55</a> <a target=_blank id="L56" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L56" rel="#L56" style="color: rgb(102, 102, 102); text-decoration: none;"> 56</a> <a target=_blank id="L57" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L57" rel="#L57" style="color: rgb(102, 102, 102); text-decoration: none;"> 57</a> <a target=_blank id="L58" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L58" rel="#L58" style="color: rgb(102, 102, 102); text-decoration: none;"> 58</a> <a target=_blank id="L59" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L59" rel="#L59" style="color: rgb(102, 102, 102); text-decoration: none;"> 59</a> <a target=_blank id="L60" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L60" rel="#L60" style="color: rgb(102, 102, 102); text-decoration: none;"> 60</a> <a target=_blank id="L61" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L61" rel="#L61" style="color: rgb(102, 102, 102); text-decoration: none;"> 61</a> <a target=_blank id="L62" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L62" rel="#L62" style="color: rgb(102, 102, 102); text-decoration: none;"> 62</a> <a target=_blank id="L63" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L63" rel="#L63" style="color: rgb(102, 102, 102); text-decoration: none;"> 63</a> <a target=_blank id="L64" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L64" rel="#L64" style="color: rgb(102, 102, 102); text-decoration: none;"> 64</a> package info.androidhive.customlistviewvolley.app; import info.androidhive.customlistviewvolley.util.LruBitmapCache;import android.app.Application;import android.text.TextUtils; import com.android.volley.Request;import com.android.volley.RequestQueue;import com.android.volley.toolbox.ImageLoader;import com.android.volley.toolbox.Volley; public class AppController extends Application { public static final String TAG = AppController.class.getSimpleName(); private RequestQueue mRequestQueue; private ImageLoader mImageLoader; private static AppController mInstance; @Override public void onCreate() { super.onCreate(); mInstance = this; } public static synchronized AppController getInstance() { return mInstance; } public RequestQueue getRequestQueue() { if (mRequestQueue == null) { mRequestQueue = Volley.newRequestQueue(getApplicationContext()); } return mRequestQueue; } public ImageLoader getImageLoader() { getRequestQueue(); if (mImageLoader == null) { mImageLoader = new ImageLoader(this.mRequestQueue, new LruBitmapCache()); } return this.mImageLoader; } public <T> void addToRequestQueue(Request<T> req, String tag) { // set the default tag if tag is empty req.setTag(TextUtils.isEmpty(tag) ? TAG : tag); getRequestQueue().add(req); } public <T> void addToRequestQueue(Request<T> req) { req.setTag(TAG); getRequestQueue().add(req); } public void cancelPendingRequests(Object tag) { if (mRequestQueue != null) { mRequestQueue.cancelAll(tag); } }}
?來自CODE的代碼片 AppController.java
11.現在我們要在?AndroidManifest.xml? 中注冊這個AppController,并且添加上網絡權限
<a target=_blank id="L1" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;"> 1</a> <a target=_blank id="L2" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;"> 2</a> <a target=_blank id="L3" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;"> 3</a> <a target=_blank id="L4" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;"> 4</a> <a target=_blank id="L5" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;"> 5</a> <a target=_blank id="L6" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;"> 6</a> <a target=_blank id="L7" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;"> 7</a> <a target=_blank id="L8" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;"> 8</a> <a target=_blank id="L9" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L9" rel="#L9" style="color: rgb(102, 102, 102); text-decoration: none;"> 9</a> <a target=_blank id="L10" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L10" rel="#L10" style="color: rgb(102, 102, 102); text-decoration: none;"> 10</a> <a target=_blank id="L11" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L11" rel="#L11" style="color: rgb(102, 102, 102); text-decoration: none;"> 11</a> <a target=_blank id="L12" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L12" rel="#L12" style="color: rgb(102, 102, 102); text-decoration: none;"> 12</a> <a target=_blank id="L13" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L13" rel="#L13" style="color: rgb(102, 102, 102); text-decoration: none;"> 13</a> <a target=_blank id="L14" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L14" rel="#L14" style="color: rgb(102, 102, 102); text-decoration: none;"> 14</a> <a target=_blank id="L15" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L15" rel="#L15" style="color: rgb(102, 102, 102); text-decoration: none;"> 15</a> <a target=_blank id="L16" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L16" rel="#L16" style="color: rgb(102, 102, 102); text-decoration: none;"> 16</a> <a target=_blank id="L17" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L17" rel="#L17" style="color: rgb(102, 102, 102); text-decoration: none;"> 17</a> <a target=_blank id="L18" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L18" rel="#L18" style="color: rgb(102, 102, 102); text-decoration: none;"> 18</a> <a target=_blank id="L19" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L19" rel="#L19" style="color: rgb(102, 102, 102); text-decoration: none;"> 19</a> <a target=_blank id="L20" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L20" rel="#L20" style="color: rgb(102, 102, 102); text-decoration: none;"> 20</a> <a target=_blank id="L21" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L21" rel="#L21" style="color: rgb(102, 102, 102); text-decoration: none;"> 21</a> <a target=_blank id="L22" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L22" rel="#L22" style="color: rgb(102, 102, 102); text-decoration: none;"> 22</a> <a target=_blank id="L23" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L23" rel="#L23" style="color: rgb(102, 102, 102); text-decoration: none;"> 23</a> <a target=_blank id="L24" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L24" rel="#L24" style="color: rgb(102, 102, 102); text-decoration: none;"> 24</a> <a target=_blank id="L25" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L25" rel="#L25" style="color: rgb(102, 102, 102); text-decoration: none;"> 25</a> <a target=_blank id="L26" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L26" rel="#L26" style="color: rgb(102, 102, 102); text-decoration: none;"> 26</a> <a target=_blank id="L27" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L27" rel="#L27" style="color: rgb(102, 102, 102); text-decoration: none;"> 27</a> <a target=_blank id="L28" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L28" rel="#L28" style="color: rgb(102, 102, 102); text-decoration: none;"> 28</a> <a target=_blank id="L29" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L29" rel="#L29" style="color: rgb(102, 102, 102); text-decoration: none;"> 29</a> <a target=_blank id="L30" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L30" rel="#L30" style="color: rgb(102, 102, 102); text-decoration: none;"> 30</a> <?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="info.androidhive.customlistviewvolley" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="11" android:targetSdkVersion="18" /> <uses-permission android:name="android.permission.INTERNET" /> <application android:name="info.androidhive.customlistviewvolley.app.AppController" android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name="info.androidhive.customlistviewvolley.MainActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>
?來自CODE的代碼片 AndroidManifest.xml
12.現在在model包下創建一個Movie實體類,解析完的json數據會保存到這個實體類中
<a target=_blank id="L1" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;"> 1</a> <a target=_blank id="L2" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;"> 2</a> <a target=_blank id="L3" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;"> 3</a> <a target=_blank id="L4" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;"> 4</a> <a target=_blank id="L5" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;"> 5</a> <a target=_blank id="L6" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;"> 6</a> <a target=_blank id="L7" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;"> 7</a> <a target=_blank id="L8" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;"> 8</a> <a target=_blank id="L9" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L9" rel="#L9" style="color: rgb(102, 102, 102); text-decoration: none;"> 9</a> <a target=_blank id="L10" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L10" rel="#L10" style="color: rgb(102, 102, 102); text-decoration: none;"> 10</a> <a target=_blank id="L11" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L11" rel="#L11" style="color: rgb(102, 102, 102); text-decoration: none;"> 11</a> <a target=_blank id="L12" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L12" rel="#L12" style="color: rgb(102, 102, 102); text-decoration: none;"> 12</a> <a target=_blank id="L13" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L13" rel="#L13" style="color: rgb(102, 102, 102); text-decoration: none;"> 13</a> <a target=_blank id="L14" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L14" rel="#L14" style="color: rgb(102, 102, 102); text-decoration: none;"> 14</a> <a target=_blank id="L15" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L15" rel="#L15" style="color: rgb(102, 102, 102); text-decoration: none;"> 15</a> <a target=_blank id="L16" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L16" rel="#L16" style="color: rgb(102, 102, 102); text-decoration: none;"> 16</a> <a target=_blank id="L17" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L17" rel="#L17" style="color: rgb(102, 102, 102); text-decoration: none;"> 17</a> <a target=_blank id="L18" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L18" rel="#L18" style="color: rgb(102, 102, 102); text-decoration: none;"> 18</a> <a target=_blank id="L19" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L19" rel="#L19" style="color: rgb(102, 102, 102); text-decoration: none;"> 19</a> <a target=_blank id="L20" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L20" rel="#L20" style="color: rgb(102, 102, 102); text-decoration: none;"> 20</a> <a target=_blank id="L21" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L21" rel="#L21" style="color: rgb(102, 102, 102); text-decoration: none;"> 21</a> <a target=_blank id="L22" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L22" rel="#L22" style="color: rgb(102, 102, 102); text-decoration: none;"> 22</a> <a target=_blank id="L23" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L23" rel="#L23" style="color: rgb(102, 102, 102); text-decoration: none;"> 23</a> <a target=_blank id="L24" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L24" rel="#L24" style="color: rgb(102, 102, 102); text-decoration: none;"> 24</a> <a target=_blank id="L25" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L25" rel="#L25" style="color: rgb(102, 102, 102); text-decoration: none;"> 25</a> <a target=_blank id="L26" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L26" rel="#L26" style="color: rgb(102, 102, 102); text-decoration: none;"> 26</a> <a target=_blank id="L27" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L27" rel="#L27" style="color: rgb(102, 102, 102); text-decoration: none;"> 27</a> <a target=_blank id="L28" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L28" rel="#L28" style="color: rgb(102, 102, 102); text-decoration: none;"> 28</a> <a target=_blank id="L29" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L29" rel="#L29" style="color: rgb(102, 102, 102); text-decoration: none;"> 29</a> <a target=_blank id="L30" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L30" rel="#L30" style="color: rgb(102, 102, 102); text-decoration: none;"> 30</a> <a target=_blank id="L31" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L31" rel="#L31" style="color: rgb(102, 102, 102); text-decoration: none;"> 31</a> <a target=_blank id="L32" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L32" rel="#L32" style="color: rgb(102, 102, 102); text-decoration: none;"> 32</a> <a target=_blank id="L33" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L33" rel="#L33" style="color: rgb(102, 102, 102); text-decoration: none;"> 33</a> <a target=_blank id="L34" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L34" rel="#L34" style="color: rgb(102, 102, 102); text-decoration: none;"> 34</a> <a target=_blank id="L35" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L35" rel="#L35" style="color: rgb(102, 102, 102); text-decoration: none;"> 35</a> <a target=_blank id="L36" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L36" rel="#L36" style="color: rgb(102, 102, 102); text-decoration: none;"> 36</a> <a target=_blank id="L37" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L37" rel="#L37" style="color: rgb(102, 102, 102); text-decoration: none;"> 37</a> <a target=_blank id="L38" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L38" rel="#L38" style="color: rgb(102, 102, 102); text-decoration: none;"> 38</a> <a target=_blank id="L39" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L39" rel="#L39" style="color: rgb(102, 102, 102); text-decoration: none;"> 39</a> <a target=_blank id="L40" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L40" rel="#L40" style="color: rgb(102, 102, 102); text-decoration: none;"> 40</a> <a target=_blank id="L41" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L41" rel="#L41" style="color: rgb(102, 102, 102); text-decoration: none;"> 41</a> <a target=_blank id="L42" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L42" rel="#L42" style="color: rgb(102, 102, 102); text-decoration: none;"> 42</a> <a target=_blank id="L43" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L43" rel="#L43" style="color: rgb(102, 102, 102); text-decoration: none;"> 43</a> <a target=_blank id="L44" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L44" rel="#L44" style="color: rgb(102, 102, 102); text-decoration: none;"> 44</a> <a target=_blank id="L45" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L45" rel="#L45" style="color: rgb(102, 102, 102); text-decoration: none;"> 45</a> <a target=_blank id="L46" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L46" rel="#L46" style="color: rgb(102, 102, 102); text-decoration: none;"> 46</a> <a target=_blank id="L47" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L47" rel="#L47" style="color: rgb(102, 102, 102); text-decoration: none;"> 47</a> <a target=_blank id="L48" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L48" rel="#L48" style="color: rgb(102, 102, 102); text-decoration: none;"> 48</a> <a target=_blank id="L49" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L49" rel="#L49" style="color: rgb(102, 102, 102); text-decoration: none;"> 49</a> <a target=_blank id="L50" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L50" rel="#L50" style="color: rgb(102, 102, 102); text-decoration: none;"> 50</a> <a target=_blank id="L51" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L51" rel="#L51" style="color: rgb(102, 102, 102); text-decoration: none;"> 51</a> <a target=_blank id="L52" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L52" rel="#L52" style="color: rgb(102, 102, 102); text-decoration: none;"> 52</a> <a target=_blank id="L53" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L53" rel="#L53" style="color: rgb(102, 102, 102); text-decoration: none;"> 53</a> <a target=_blank id="L54" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L54" rel="#L54" style="color: rgb(102, 102, 102); text-decoration: none;"> 54</a> <a target=_blank id="L55" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L55" rel="#L55" style="color: rgb(102, 102, 102); text-decoration: none;"> 55</a> <a target=_blank id="L56" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L56" rel="#L56" style="color: rgb(102, 102, 102); text-decoration: none;"> 56</a> <a target=_blank id="L57" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L57" rel="#L57" style="color: rgb(102, 102, 102); text-decoration: none;"> 57</a> <a target=_blank id="L58" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L58" rel="#L58" style="color: rgb(102, 102, 102); text-decoration: none;"> 58</a> <a target=_blank id="L59" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L59" rel="#L59" style="color: rgb(102, 102, 102); text-decoration: none;"> 59</a> <a target=_blank id="L60" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L60" rel="#L60" style="color: rgb(102, 102, 102); text-decoration: none;"> 60</a> <a target=_blank id="L61" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L61" rel="#L61" style="color: rgb(102, 102, 102); text-decoration: none;"> 61</a> <a target=_blank id="L62" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L62" rel="#L62" style="color: rgb(102, 102, 102); text-decoration: none;"> 62</a> <a target=_blank id="L63" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L63" rel="#L63" style="color: rgb(102, 102, 102); text-decoration: none;"> 63</a> <a target=_blank id="L64" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L64" rel="#L64" style="color: rgb(102, 102, 102); text-decoration: none;"> 64</a> <a target=_blank id="L65" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L65" rel="#L65" style="color: rgb(102, 102, 102); text-decoration: none;"> 65</a> <a target=_blank id="L66" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L66" rel="#L66" style="color: rgb(102, 102, 102); text-decoration: none;"> 66</a> <a target=_blank id="L67" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L67" rel="#L67" style="color: rgb(102, 102, 102); text-decoration: none;"> 67</a> package info.androidhive.customlistviewvolley.model; import java.util.ArrayList; public class Movie { //title=標題, thumbnailUrl=圖片地址 private String title, thumbnailUrl; //年份 private int year; //評分 private double rating; //類別 private ArrayList<String> genre; public Movie() { } public Movie(String name, String thumbnailUrl, int year, double rating, ArrayList<String> genre) { this.title = name; this.thumbnailUrl = thumbnailUrl; this.year = year; this.rating = rating; this.genre = genre; } public String getTitle() { return title; } public void setTitle(String name) { this.title = name; } public String getThumbnailUrl() { return thumbnailUrl; } public void setThumbnailUrl(String thumbnailUrl) { this.thumbnailUrl = thumbnailUrl; } public int getYear() { return year; } public void setYear(int year) { this.year = year; } public double getRating() { return rating; } public void setRating(double rating) { this.rating = rating; } public ArrayList<String> getGenre() { return genre; } public void setGenre(ArrayList<String> genre) { this.genre = genre; } }
?來自CODE的代碼片 Movie.java
13.在adapter包下新建一個?CustomListAdapter.java? adapter會將item布局加載出來,并且將數據顯示到listview上面
<a target=_blank id="L1" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;"> 1</a> <a target=_blank id="L2" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;"> 2</a> <a target=_blank id="L3" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;"> 3</a> <a target=_blank id="L4" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;"> 4</a> <a target=_blank id="L5" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;"> 5</a> <a target=_blank id="L6" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;"> 6</a> <a target=_blank id="L7" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;"> 7</a> <a target=_blank id="L8" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;"> 8</a> <a target=_blank id="L9" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L9" rel="#L9" style="color: rgb(102, 102, 102); text-decoration: none;"> 9</a> <a target=_blank id="L10" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L10" rel="#L10" style="color: rgb(102, 102, 102); text-decoration: none;"> 10</a> <a target=_blank id="L11" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L11" rel="#L11" style="color: rgb(102, 102, 102); text-decoration: none;"> 11</a> <a target=_blank id="L12" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L12" rel="#L12" style="color: rgb(102, 102, 102); text-decoration: none;"> 12</a> <a target=_blank id="L13" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L13" rel="#L13" style="color: rgb(102, 102, 102); text-decoration: none;"> 13</a> <a target=_blank id="L14" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L14" rel="#L14" style="color: rgb(102, 102, 102); text-decoration: none;"> 14</a> <a target=_blank id="L15" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L15" rel="#L15" style="color: rgb(102, 102, 102); text-decoration: none;"> 15</a> <a target=_blank id="L16" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L16" rel="#L16" style="color: rgb(102, 102, 102); text-decoration: none;"> 16</a> <a target=_blank id="L17" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L17" rel="#L17" style="color: rgb(102, 102, 102); text-decoration: none;"> 17</a> <a target=_blank id="L18" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L18" rel="#L18" style="color: rgb(102, 102, 102); text-decoration: none;"> 18</a> <a target=_blank id="L19" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L19" rel="#L19" style="color: rgb(102, 102, 102); text-decoration: none;"> 19</a> <a target=_blank id="L20" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L20" rel="#L20" style="color: rgb(102, 102, 102); text-decoration: none;"> 20</a> <a target=_blank id="L21" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L21" rel="#L21" style="color: rgb(102, 102, 102); text-decoration: none;"> 21</a> <a target=_blank id="L22" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L22" rel="#L22" style="color: rgb(102, 102, 102); text-decoration: none;"> 22</a> <a target=_blank id="L23" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L23" rel="#L23" style="color: rgb(102, 102, 102); text-decoration: none;"> 23</a> <a target=_blank id="L24" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L24" rel="#L24" style="color: rgb(102, 102, 102); text-decoration: none;"> 24</a> <a target=_blank id="L25" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L25" rel="#L25" style="color: rgb(102, 102, 102); text-decoration: none;"> 25</a> <a target=_blank id="L26" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L26" rel="#L26" style="color: rgb(102, 102, 102); text-decoration: none;"> 26</a> <a target=_blank id="L27" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L27" rel="#L27" style="color: rgb(102, 102, 102); text-decoration: none;"> 27</a> <a target=_blank id="L28" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L28" rel="#L28" style="color: rgb(102, 102, 102); text-decoration: none;"> 28</a> <a target=_blank id="L29" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L29" rel="#L29" style="color: rgb(102, 102, 102); text-decoration: none;"> 29</a> <a target=_blank id="L30" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L30" rel="#L30" style="color: rgb(102, 102, 102); text-decoration: none;"> 30</a> <a target=_blank id="L31" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L31" rel="#L31" style="color: rgb(102, 102, 102); text-decoration: none;"> 31</a> <a target=_blank id="L32" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L32" rel="#L32" style="color: rgb(102, 102, 102); text-decoration: none;"> 32</a> <a target=_blank id="L33" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L33" rel="#L33" style="color: rgb(102, 102, 102); text-decoration: none;"> 33</a> <a target=_blank id="L34" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L34" rel="#L34" style="color: rgb(102, 102, 102); text-decoration: none;"> 34</a> <a target=_blank id="L35" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L35" rel="#L35" style="color: rgb(102, 102, 102); text-decoration: none;"> 35</a> <a target=_blank id="L36" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L36" rel="#L36" style="color: rgb(102, 102, 102); text-decoration: none;"> 36</a> <a target=_blank id="L37" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L37" rel="#L37" style="color: rgb(102, 102, 102); text-decoration: none;"> 37</a> <a target=_blank id="L38" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L38" rel="#L38" style="color: rgb(102, 102, 102); text-decoration: none;"> 38</a> <a target=_blank id="L39" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L39" rel="#L39" style="color: rgb(102, 102, 102); text-decoration: none;"> 39</a> <a target=_blank id="L40" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L40" rel="#L40" style="color: rgb(102, 102, 102); text-decoration: none;"> 40</a> <a target=_blank id="L41" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L41" rel="#L41" style="color: rgb(102, 102, 102); text-decoration: none;"> 41</a> <a target=_blank id="L42" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L42" rel="#L42" style="color: rgb(102, 102, 102); text-decoration: none;"> 42</a> <a target=_blank id="L43" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L43" rel="#L43" style="color: rgb(102, 102, 102); text-decoration: none;"> 43</a> <a target=_blank id="L44" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L44" rel="#L44" style="color: rgb(102, 102, 102); text-decoration: none;"> 44</a> <a target=_blank id="L45" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L45" rel="#L45" style="color: rgb(102, 102, 102); text-decoration: none;"> 45</a> <a target=_blank id="L46" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L46" rel="#L46" style="color: rgb(102, 102, 102); text-decoration: none;"> 46</a> <a target=_blank id="L47" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L47" rel="#L47" style="color: rgb(102, 102, 102); text-decoration: none;"> 47</a> <a target=_blank id="L48" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L48" rel="#L48" style="color: rgb(102, 102, 102); text-decoration: none;"> 48</a> <a target=_blank id="L49" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L49" rel="#L49" style="color: rgb(102, 102, 102); text-decoration: none;"> 49</a> <a target=_blank id="L50" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L50" rel="#L50" style="color: rgb(102, 102, 102); text-decoration: none;"> 50</a> <a target=_blank id="L51" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L51" rel="#L51" style="color: rgb(102, 102, 102); text-decoration: none;"> 51</a> <a target=_blank id="L52" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L52" rel="#L52" style="color: rgb(102, 102, 102); text-decoration: none;"> 52</a> <a target=_blank id="L53" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L53" rel="#L53" style="color: rgb(102, 102, 102); text-decoration: none;"> 53</a> <a target=_blank id="L54" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L54" rel="#L54" style="color: rgb(102, 102, 102); text-decoration: none;"> 54</a> <a target=_blank id="L55" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L55" rel="#L55" style="color: rgb(102, 102, 102); text-decoration: none;"> 55</a> <a target=_blank id="L56" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L56" rel="#L56" style="color: rgb(102, 102, 102); text-decoration: none;"> 56</a> <a target=_blank id="L57" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L57" rel="#L57" style="color: rgb(102, 102, 102); text-decoration: none;"> 57</a> <a target=_blank id="L58" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L58" rel="#L58" style="color: rgb(102, 102, 102); text-decoration: none;"> 58</a> <a target=_blank id="L59" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L59" rel="#L59" style="color: rgb(102, 102, 102); text-decoration: none;"> 59</a> <a target=_blank id="L60" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L60" rel="#L60" style="color: rgb(102, 102, 102); text-decoration: none;"> 60</a> <a target=_blank id="L61" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L61" rel="#L61" style="color: rgb(102, 102, 102); text-decoration: none;"> 61</a> <a target=_blank id="L62" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L62" rel="#L62" style="color: rgb(102, 102, 102); text-decoration: none;"> 62</a> <a target=_blank id="L63" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L63" rel="#L63" style="color: rgb(102, 102, 102); text-decoration: none;"> 63</a> <a target=_blank id="L64" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L64" rel="#L64" style="color: rgb(102, 102, 102); text-decoration: none;"> 64</a> <a target=_blank id="L65" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L65" rel="#L65" style="color: rgb(102, 102, 102); text-decoration: none;"> 65</a> <a target=_blank id="L66" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L66" rel="#L66" style="color: rgb(102, 102, 102); text-decoration: none;"> 66</a> <a target=_blank id="L67" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L67" rel="#L67" style="color: rgb(102, 102, 102); text-decoration: none;"> 67</a> <a target=_blank id="L68" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L68" rel="#L68" style="color: rgb(102, 102, 102); text-decoration: none;"> 68</a> <a target=_blank id="L69" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L69" rel="#L69" style="color: rgb(102, 102, 102); text-decoration: none;"> 69</a> <a target=_blank id="L70" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L70" rel="#L70" style="color: rgb(102, 102, 102); text-decoration: none;"> 70</a> <a target=_blank id="L71" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L71" rel="#L71" style="color: rgb(102, 102, 102); text-decoration: none;"> 71</a> <a target=_blank id="L72" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L72" rel="#L72" style="color: rgb(102, 102, 102); text-decoration: none;"> 72</a> <a target=_blank id="L73" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L73" rel="#L73" style="color: rgb(102, 102, 102); text-decoration: none;"> 73</a> <a target=_blank id="L74" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L74" rel="#L74" style="color: rgb(102, 102, 102); text-decoration: none;"> 74</a> <a target=_blank id="L75" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L75" rel="#L75" style="color: rgb(102, 102, 102); text-decoration: none;"> 75</a> <a target=_blank id="L76" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L76" rel="#L76" style="color: rgb(102, 102, 102); text-decoration: none;"> 76</a> <a target=_blank id="L77" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L77" rel="#L77" style="color: rgb(102, 102, 102); text-decoration: none;"> 77</a> <a target=_blank id="L78" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L78" rel="#L78" style="color: rgb(102, 102, 102); text-decoration: none;"> 78</a> <a target=_blank id="L79" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L79" rel="#L79" style="color: rgb(102, 102, 102); text-decoration: none;"> 79</a> <a target=_blank id="L80" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L80" rel="#L80" style="color: rgb(102, 102, 102); text-decoration: none;"> 80</a> <a target=_blank id="L81" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L81" rel="#L81" style="color: rgb(102, 102, 102); text-decoration: none;"> 81</a> <a target=_blank id="L82" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L82" rel="#L82" style="color: rgb(102, 102, 102); text-decoration: none;"> 82</a> <a target=_blank id="L83" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L83" rel="#L83" style="color: rgb(102, 102, 102); text-decoration: none;"> 83</a> <a target=_blank id="L84" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L84" rel="#L84" style="color: rgb(102, 102, 102); text-decoration: none;"> 84</a> <a target=_blank id="L85" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L85" rel="#L85" style="color: rgb(102, 102, 102); text-decoration: none;"> 85</a> <a target=_blank id="L86" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L86" rel="#L86" style="color: rgb(102, 102, 102); text-decoration: none;"> 86</a> <a target=_blank id="L87" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L87" rel="#L87" style="color: rgb(102, 102, 102); text-decoration: none;"> 87</a> <a target=_blank id="L88" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L88" rel="#L88" style="color: rgb(102, 102, 102); text-decoration: none;"> 88</a> <a target=_blank id="L89" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L89" rel="#L89" style="color: rgb(102, 102, 102); text-decoration: none;"> 89</a> <a target=_blank id="L90" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L90" rel="#L90" style="color: rgb(102, 102, 102); text-decoration: none;"> 90</a> <a target=_blank id="L91" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L91" rel="#L91" style="color: rgb(102, 102, 102); text-decoration: none;"> 91</a> package info.androidhive.customlistviewvolley.adater; import info.androidhive.customlistviewvolley.R;import info.androidhive.customlistviewvolley.app.AppController;import info.androidhive.customlistviewvolley.model.Movie; import java.util.List; import android.app.Activity;import android.content.Context;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGroup;import android.widget.BaseAdapter;import android.widget.TextView; import com.android.volley.toolbox.ImageLoader;import com.android.volley.toolbox.NetworkImageView; public class CustomListAdapter extends BaseAdapter { private Activity activity; private LayoutInflater inflater; private List<Movie> movieItems; ImageLoader imageLoader = AppController.getInstance().getImageLoader(); public CustomListAdapter(Activity activity, List<Movie> movieItems) { this.activity = activity; this.movieItems = movieItems; } @Override public int getCount() { return movieItems.size(); } @Override public Object getItem(int location) { return movieItems.get(location); } @Override public long getItemId(int position) { return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { if (inflater == null) inflater = (LayoutInflater) activity .getSystemService(Context.LAYOUT_INFLATER_SERVICE); if (convertView == null) convertView = inflater.inflate(R.layout.list_row, null); if (imageLoader == null) imageLoader = AppController.getInstance().getImageLoader(); NetworkImageView thumbNail = (NetworkImageView) convertView .findViewById(R.id.thumbnail); TextView title = (TextView) convertView.findViewById(R.id.title); TextView rating = (TextView) convertView.findViewById(R.id.rating); TextView genre = (TextView) convertView.findViewById(R.id.genre); TextView year = (TextView) convertView.findViewById(R.id.releaseYear); // getting movie data for the row Movie m = movieItems.get(position); // thumbnail image thumbNail.setImageUrl(m.getThumbnailUrl(), imageLoader); // title title.setText(m.getTitle()); // rating rating.setText("Rating: " + String.valueOf(m.getRating())); // genre String genreStr = ""; for (String str : m.getGenre()) { genreStr += str + ", "; } genreStr = genreStr.length() > 0 ? genreStr.substring(0, genreStr.length() - 2) : genreStr; genre.setText(genreStr); // release year year.setText(String.valueOf(m.getYear())); return convertView; } }
?來自CODE的代碼片 CustomListAdapter.java
14.打開我們的MainActivity.java。添加如下代碼,我們使用JsonArrayRequest來發送請求,發送json請求我們在Android網絡框架-Volley(四) 使用get和post方法發送json請求?已經講過了。我們將解析來的Movie對象存儲在一個ArrayList中,調用notifyDataSetChanged()方法通知listview去更新我們的數據。
<a target=_blank id="L1" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L1" rel="#L1" style="color: rgb(102, 102, 102); text-decoration: none;"> 1</a> <a target=_blank id="L2" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L2" rel="#L2" style="color: rgb(102, 102, 102); text-decoration: none;"> 2</a> <a target=_blank id="L3" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L3" rel="#L3" style="color: rgb(102, 102, 102); text-decoration: none;"> 3</a> <a target=_blank id="L4" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L4" rel="#L4" style="color: rgb(102, 102, 102); text-decoration: none;"> 4</a> <a target=_blank id="L5" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L5" rel="#L5" style="color: rgb(102, 102, 102); text-decoration: none;"> 5</a> <a target=_blank id="L6" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L6" rel="#L6" style="color: rgb(102, 102, 102); text-decoration: none;"> 6</a> <a target=_blank id="L7" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L7" rel="#L7" style="color: rgb(102, 102, 102); text-decoration: none;"> 7</a> <a target=_blank id="L8" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L8" rel="#L8" style="color: rgb(102, 102, 102); text-decoration: none;"> 8</a> <a target=_blank id="L9" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L9" rel="#L9" style="color: rgb(102, 102, 102); text-decoration: none;"> 9</a> <a target=_blank id="L10" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L10" rel="#L10" style="color: rgb(102, 102, 102); text-decoration: none;"> 10</a> <a target=_blank id="L11" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L11" rel="#L11" style="color: rgb(102, 102, 102); text-decoration: none;"> 11</a> <a target=_blank id="L12" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L12" rel="#L12" style="color: rgb(102, 102, 102); text-decoration: none;"> 12</a> <a target=_blank id="L13" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L13" rel="#L13" style="color: rgb(102, 102, 102); text-decoration: none;"> 13</a> <a target=_blank id="L14" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L14" rel="#L14" style="color: rgb(102, 102, 102); text-decoration: none;"> 14</a> <a target=_blank id="L15" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L15" rel="#L15" style="color: rgb(102, 102, 102); text-decoration: none;"> 15</a> <a target=_blank id="L16" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L16" rel="#L16" style="color: rgb(102, 102, 102); text-decoration: none;"> 16</a> <a target=_blank id="L17" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L17" rel="#L17" style="color: rgb(102, 102, 102); text-decoration: none;"> 17</a> <a target=_blank id="L18" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L18" rel="#L18" style="color: rgb(102, 102, 102); text-decoration: none;"> 18</a> <a target=_blank id="L19" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L19" rel="#L19" style="color: rgb(102, 102, 102); text-decoration: none;"> 19</a> <a target=_blank id="L20" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L20" rel="#L20" style="color: rgb(102, 102, 102); text-decoration: none;"> 20</a> <a target=_blank id="L21" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L21" rel="#L21" style="color: rgb(102, 102, 102); text-decoration: none;"> 21</a> <a target=_blank id="L22" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L22" rel="#L22" style="color: rgb(102, 102, 102); text-decoration: none;"> 22</a> <a target=_blank id="L23" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L23" rel="#L23" style="color: rgb(102, 102, 102); text-decoration: none;"> 23</a> <a target=_blank id="L24" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L24" rel="#L24" style="color: rgb(102, 102, 102); text-decoration: none;"> 24</a> <a target=_blank id="L25" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L25" rel="#L25" style="color: rgb(102, 102, 102); text-decoration: none;"> 25</a> <a target=_blank id="L26" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L26" rel="#L26" style="color: rgb(102, 102, 102); text-decoration: none;"> 26</a> <a target=_blank id="L27" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L27" rel="#L27" style="color: rgb(102, 102, 102); text-decoration: none;"> 27</a> <a target=_blank id="L28" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L28" rel="#L28" style="color: rgb(102, 102, 102); text-decoration: none;"> 28</a> <a target=_blank id="L29" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L29" rel="#L29" style="color: rgb(102, 102, 102); text-decoration: none;"> 29</a> <a target=_blank id="L30" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L30" rel="#L30" style="color: rgb(102, 102, 102); text-decoration: none;"> 30</a> <a target=_blank id="L31" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L31" rel="#L31" style="color: rgb(102, 102, 102); text-decoration: none;"> 31</a> <a target=_blank id="L32" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L32" rel="#L32" style="color: rgb(102, 102, 102); text-decoration: none;"> 32</a> <a target=_blank id="L33" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L33" rel="#L33" style="color: rgb(102, 102, 102); text-decoration: none;"> 33</a> <a target=_blank id="L34" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L34" rel="#L34" style="color: rgb(102, 102, 102); text-decoration: none;"> 34</a> <a target=_blank id="L35" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L35" rel="#L35" style="color: rgb(102, 102, 102); text-decoration: none;"> 35</a> <a target=_blank id="L36" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L36" rel="#L36" style="color: rgb(102, 102, 102); text-decoration: none;"> 36</a> <a target=_blank id="L37" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L37" rel="#L37" style="color: rgb(102, 102, 102); text-decoration: none;"> 37</a> <a target=_blank id="L38" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L38" rel="#L38" style="color: rgb(102, 102, 102); text-decoration: none;"> 38</a> <a target=_blank id="L39" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L39" rel="#L39" style="color: rgb(102, 102, 102); text-decoration: none;"> 39</a> <a target=_blank id="L40" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L40" rel="#L40" style="color: rgb(102, 102, 102); text-decoration: none;"> 40</a> <a target=_blank id="L41" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L41" rel="#L41" style="color: rgb(102, 102, 102); text-decoration: none;"> 41</a> <a target=_blank id="L42" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L42" rel="#L42" style="color: rgb(102, 102, 102); text-decoration: none;"> 42</a> <a target=_blank id="L43" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L43" rel="#L43" style="color: rgb(102, 102, 102); text-decoration: none;"> 43</a> <a target=_blank id="L44" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L44" rel="#L44" style="color: rgb(102, 102, 102); text-decoration: none;"> 44</a> <a target=_blank id="L45" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L45" rel="#L45" style="color: rgb(102, 102, 102); text-decoration: none;"> 45</a> <a target=_blank id="L46" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L46" rel="#L46" style="color: rgb(102, 102, 102); text-decoration: none;"> 46</a> <a target=_blank id="L47" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L47" rel="#L47" style="color: rgb(102, 102, 102); text-decoration: none;"> 47</a> <a target=_blank id="L48" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L48" rel="#L48" style="color: rgb(102, 102, 102); text-decoration: none;"> 48</a> <a target=_blank id="L49" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L49" rel="#L49" style="color: rgb(102, 102, 102); text-decoration: none;"> 49</a> <a target=_blank id="L50" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L50" rel="#L50" style="color: rgb(102, 102, 102); text-decoration: none;"> 50</a> <a target=_blank id="L51" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L51" rel="#L51" style="color: rgb(102, 102, 102); text-decoration: none;"> 51</a> <a target=_blank id="L52" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L52" rel="#L52" style="color: rgb(102, 102, 102); text-decoration: none;"> 52</a> <a target=_blank id="L53" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L53" rel="#L53" style="color: rgb(102, 102, 102); text-decoration: none;"> 53</a> <a target=_blank id="L54" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L54" rel="#L54" style="color: rgb(102, 102, 102); text-decoration: none;"> 54</a> <a target=_blank id="L55" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L55" rel="#L55" style="color: rgb(102, 102, 102); text-decoration: none;"> 55</a> <a target=_blank id="L56" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L56" rel="#L56" style="color: rgb(102, 102, 102); text-decoration: none;"> 56</a> <a target=_blank id="L57" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L57" rel="#L57" style="color: rgb(102, 102, 102); text-decoration: none;"> 57</a> <a target=_blank id="L58" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L58" rel="#L58" style="color: rgb(102, 102, 102); text-decoration: none;"> 58</a> <a target=_blank id="L59" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L59" rel="#L59" style="color: rgb(102, 102, 102); text-decoration: none;"> 59</a> <a target=_blank id="L60" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L60" rel="#L60" style="color: rgb(102, 102, 102); text-decoration: none;"> 60</a> <a target=_blank id="L61" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L61" rel="#L61" style="color: rgb(102, 102, 102); text-decoration: none;"> 61</a> <a target=_blank id="L62" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L62" rel="#L62" style="color: rgb(102, 102, 102); text-decoration: none;"> 62</a> <a target=_blank id="L63" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L63" rel="#L63" style="color: rgb(102, 102, 102); text-decoration: none;"> 63</a> <a target=_blank id="L64" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L64" rel="#L64" style="color: rgb(102, 102, 102); text-decoration: none;"> 64</a> <a target=_blank id="L65" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L65" rel="#L65" style="color: rgb(102, 102, 102); text-decoration: none;"> 65</a> <a target=_blank id="L66" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L66" rel="#L66" style="color: rgb(102, 102, 102); text-decoration: none;"> 66</a> <a target=_blank id="L67" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L67" rel="#L67" style="color: rgb(102, 102, 102); text-decoration: none;"> 67</a> <a target=_blank id="L68" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L68" rel="#L68" style="color: rgb(102, 102, 102); text-decoration: none;"> 68</a> <a target=_blank id="L69" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L69" rel="#L69" style="color: rgb(102, 102, 102); text-decoration: none;"> 69</a> <a target=_blank id="L70" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L70" rel="#L70" style="color: rgb(102, 102, 102); text-decoration: none;"> 70</a> <a target=_blank id="L71" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L71" rel="#L71" style="color: rgb(102, 102, 102); text-decoration: none;"> 71</a> <a target=_blank id="L72" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L72" rel="#L72" style="color: rgb(102, 102, 102); text-decoration: none;"> 72</a> <a target=_blank id="L73" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L73" rel="#L73" style="color: rgb(102, 102, 102); text-decoration: none;"> 73</a> <a target=_blank id="L74" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L74" rel="#L74" style="color: rgb(102, 102, 102); text-decoration: none;"> 74</a> <a target=_blank id="L75" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L75" rel="#L75" style="color: rgb(102, 102, 102); text-decoration: none;"> 75</a> <a target=_blank id="L76" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L76" rel="#L76" style="color: rgb(102, 102, 102); text-decoration: none;"> 76</a> <a target=_blank id="L77" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L77" rel="#L77" style="color: rgb(102, 102, 102); text-decoration: none;"> 77</a> <a target=_blank id="L78" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L78" rel="#L78" style="color: rgb(102, 102, 102); text-decoration: none;"> 78</a> <a target=_blank id="L79" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L79" rel="#L79" style="color: rgb(102, 102, 102); text-decoration: none;"> 79</a> <a target=_blank id="L80" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L80" rel="#L80" style="color: rgb(102, 102, 102); text-decoration: none;"> 80</a> <a target=_blank id="L81" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L81" rel="#L81" style="color: rgb(102, 102, 102); text-decoration: none;"> 81</a> <a target=_blank id="L82" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L82" rel="#L82" style="color: rgb(102, 102, 102); text-decoration: none;"> 82</a> <a target=_blank id="L83" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L83" rel="#L83" style="color: rgb(102, 102, 102); text-decoration: none;"> 83</a> <a target=_blank id="L84" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L84" rel="#L84" style="color: rgb(102, 102, 102); text-decoration: none;"> 84</a> <a target=_blank id="L85" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L85" rel="#L85" style="color: rgb(102, 102, 102); text-decoration: none;"> 85</a> <a target=_blank id="L86" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L86" rel="#L86" style="color: rgb(102, 102, 102); text-decoration: none;"> 86</a> <a target=_blank id="L87" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L87" rel="#L87" style="color: rgb(102, 102, 102); text-decoration: none;"> 87</a> <a target=_blank id="L88" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L88" rel="#L88" style="color: rgb(102, 102, 102); text-decoration: none;"> 88</a> <a target=_blank id="L89" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L89" rel="#L89" style="color: rgb(102, 102, 102); text-decoration: none;"> 89</a> <a target=_blank id="L90" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L90" rel="#L90" style="color: rgb(102, 102, 102); text-decoration: none;"> 90</a> <a target=_blank id="L91" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L91" rel="#L91" style="color: rgb(102, 102, 102); text-decoration: none;"> 91</a> <a target=_blank id="L92" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L92" rel="#L92" style="color: rgb(102, 102, 102); text-decoration: none;"> 92</a> <a target=_blank id="L93" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L93" rel="#L93" style="color: rgb(102, 102, 102); text-decoration: none;"> 93</a> <a target=_blank id="L94" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L94" rel="#L94" style="color: rgb(102, 102, 102); text-decoration: none;"> 94</a> <a target=_blank id="L95" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L95" rel="#L95" style="color: rgb(102, 102, 102); text-decoration: none;"> 95</a> <a target=_blank id="L96" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L96" rel="#L96" style="color: rgb(102, 102, 102); text-decoration: none;"> 96</a> <a target=_blank id="L97" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L97" rel="#L97" style="color: rgb(102, 102, 102); text-decoration: none;"> 97</a> <a target=_blank id="L98" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L98" rel="#L98" style="color: rgb(102, 102, 102); text-decoration: none;"> 98</a> <a target=_blank id="L99" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L99" rel="#L99" style="color: rgb(102, 102, 102); text-decoration: none;"> 99</a> <a target=_blank id="L100" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L100" rel="#L100" style="color: rgb(102, 102, 102); text-decoration: none;"> 100</a> <a target=_blank id="L101" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L101" rel="#L101" style="color: rgb(102, 102, 102); text-decoration: none;"> 101</a> <a target=_blank id="L102" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L102" rel="#L102" style="color: rgb(102, 102, 102); text-decoration: none;"> 102</a> <a target=_blank id="L103" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L103" rel="#L103" style="color: rgb(102, 102, 102); text-decoration: none;"> 103</a> <a target=_blank id="L104" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L104" rel="#L104" style="color: rgb(102, 102, 102); text-decoration: none;"> 104</a> <a target=_blank id="L105" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L105" rel="#L105" style="color: rgb(102, 102, 102); text-decoration: none;"> 105</a> <a target=_blank id="L106" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L106" rel="#L106" style="color: rgb(102, 102, 102); text-decoration: none;"> 106</a> <a target=_blank id="L107" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L107" rel="#L107" style="color: rgb(102, 102, 102); text-decoration: none;"> 107</a> <a target=_blank id="L108" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L108" rel="#L108" style="color: rgb(102, 102, 102); text-decoration: none;"> 108</a> <a target=_blank id="L109" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L109" rel="#L109" style="color: rgb(102, 102, 102); text-decoration: none;"> 109</a> <a target=_blank id="L110" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L110" rel="#L110" style="color: rgb(102, 102, 102); text-decoration: none;"> 110</a> <a target=_blank id="L111" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L111" rel="#L111" style="color: rgb(102, 102, 102); text-decoration: none;"> 111</a> <a target=_blank id="L112" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L112" rel="#L112" style="color: rgb(102, 102, 102); text-decoration: none;"> 112</a> <a target=_blank id="L113" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L113" rel="#L113" style="color: rgb(102, 102, 102); text-decoration: none;"> 113</a> <a target=_blank id="L114" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L114" rel="#L114" style="color: rgb(102, 102, 102); text-decoration: none;"> 114</a> <a target=_blank id="L115" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L115" rel="#L115" style="color: rgb(102, 102, 102); text-decoration: none;"> 115</a> <a target=_blank id="L116" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L116" rel="#L116" style="color: rgb(102, 102, 102); text-decoration: none;"> 116</a> <a target=_blank id="L117" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L117" rel="#L117" style="color: rgb(102, 102, 102); text-decoration: none;"> 117</a> <a target=_blank id="L118" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L118" rel="#L118" style="color: rgb(102, 102, 102); text-decoration: none;"> 118</a> <a target=_blank id="L119" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L119" rel="#L119" style="color: rgb(102, 102, 102); text-decoration: none;"> 119</a> <a target=_blank id="L120" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L120" rel="#L120" style="color: rgb(102, 102, 102); text-decoration: none;"> 120</a> <a target=_blank id="L121" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L121" rel="#L121" style="color: rgb(102, 102, 102); text-decoration: none;"> 121</a> <a target=_blank id="L122" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L122" rel="#L122" style="color: rgb(102, 102, 102); text-decoration: none;"> 122</a> <a target=_blank id="L123" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L123" rel="#L123" style="color: rgb(102, 102, 102); text-decoration: none;"> 123</a> <a target=_blank id="L124" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L124" rel="#L124" style="color: rgb(102, 102, 102); text-decoration: none;"> 124</a> <a target=_blank id="L125" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L125" rel="#L125" style="color: rgb(102, 102, 102); text-decoration: none;"> 125</a> <a target=_blank id="L126" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L126" rel="#L126" style="color: rgb(102, 102, 102); text-decoration: none;"> 126</a> <a target=_blank id="L127" href="http://blog.csdn.net/nugongahou110/article/details/46910149#L127" rel="#L127" style="color: rgb(102, 102, 102); text-decoration: none;"> 127</a> package info.androidhive.customlistviewvolley; import info.androidhive.customlistviewvolley.adater.CustomListAdapter;import info.androidhive.customlistviewvolley.app.AppController;import info.androidhive.customlistviewvolley.model.Movie; import java.util.ArrayList;import java.util.List; import org.json.JSONArray;import org.json.JSONException;import org.json.JSONObject; import android.app.Activity;import android.app.ProgressDialog;import android.graphics.Color;import android.graphics.drawable.ColorDrawable;import android.os.Bundle;import android.util.Log;import android.view.Menu;import android.widget.ListView; import com.android.volley.Response;import com.android.volley.VolleyError;import com.android.volley.VolleyLog;import com.android.volley.toolbox.JsonArrayRequest; public class MainActivity extends Activity { // 用來打Log日志的TAG private static final String TAG = MainActivity.class.getSimpleName(); // JSON地址 private static final String url = "http://api.androidhive.info/json/movies.json"; private ProgressDialog pDialog; //用來存儲Movie對象的list private List<Movie> movieList = new ArrayList<Movie>(); private ListView listView; private CustomListAdapter adapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); listView = (ListView) findViewById(R.id.list); adapter = new CustomListAdapter(this, movieList); listView.setAdapter(adapter); pDialog = new ProgressDialog(this); // 加載框 pDialog.setMessage("Loading..."); pDialog.show(); // 發送一個Json請求 JsonArrayRequest movieReq = new JsonArrayRequest(url, new Response.Listener<JSONArray>() { @Override public void onResponse(JSONArray response) { Log.d(TAG, response.toString()); hidePDialog(); // 解析json數據 for (int i = 0; i < response.length(); i++) { try { JSONObject obj = response.getJSONObject(i); Movie movie = new Movie(); movie.setTitle(obj.getString("title")); movie.setThumbnailUrl(obj.getString("image")); movie.setRating(((Number) obj.get("rating")) .doubleValue()); movie.setYear(obj.getInt("releaseYear")); // Genre是一個json數組 JSONArray genreArry = obj.getJSONArray("genre"); ArrayList<String> genre = new ArrayList<String>(); for (int j = 0; j < genreArry.length(); j++) { genre.add((String) genreArry.get(j)); } movie.setGenre(genre); // 將解析好的一個movie對象添加到list中 movieList.add(movie); } catch (JSONException e) { e.printStackTrace(); } } // 通知listview我們的數據已經改變,現在更新 adapter.notifyDataSetChanged(); } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { VolleyLog.d(TAG, "Error: " + error.getMessage()); hidePDialog(); } }); // 將request添加到requestQueue中 AppController.getInstance().addToRequestQueue(movieReq); } @Override public void onDestroy() { super.onDestroy(); hidePDialog(); } private void hidePDialog() { if (pDialog != null) { pDialog.dismiss(); pDialog = null; } } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } }

總結

以上是生活随笔為你收集整理的Android网络框架-Volley实践 使用Volley打造自定义ListView的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

欧美性一级观看 | 久久这里只有精品23 | 日日色综合 | 97视频免费在线观看 | 五月天婷婷视频 | 国产免费a| 激情欧美一区二区免费视频 | 黄色一级片视频 | 97香蕉久久超级碰碰高清版 | 国内精品久久久久久久影视简单 | 国产99久久久国产精品免费二区 | 国产伦精品一区二区三区免费 | 97国产大学生情侣白嫩酒店 | 精品国产aⅴ麻豆 | 五月天天天操 | 国产日韩精品久久 | 91福利国产在线观看 | 天堂v中文 | 欧美久草视频 | 91激情 | 天天搞天天 | 黄在线免费看 | 亚洲人在线 | av黄色成人| 日韩特黄一级欧美毛片特黄 | 国产一区二区免费 | 婷婷激情综合网 | 九月婷婷人人澡人人添人人爽 | av官网在线| 久久性生活片 | 九九免费在线观看 | 精品999久久久 | 亚洲国产资源 | 精品久久久久久一区二区里番 | 麻花豆传媒mv在线观看 | 国产视频日韩 | 欧美极品久久 | 成人免费观看电影 | 亚洲无人区小视频 | 激情av综合 | 国产97在线看 | 在线黄av | 91香蕉视频污在线 | 成人91在线观看 | 九九热精品在线 | 丰满少妇在线观看资源站 | 四虎在线免费观看视频 | 日韩精品一区二区三区中文字幕 | 夜夜爱av| 亚洲美女免费精品视频在线观看 | 国产人成看黄久久久久久久久 | 久久人人爽人人 | 91在线免费看片 | 玖玖视频免费在线 | 97精品国产97久久久久久 | 欧美伦理一区二区三区 | 日日夜夜狠狠操 | 在线不卡中文字幕播放 | 国产精品入口麻豆www | 色在线网站 | 麻豆av电影| 日韩69av| 久久久穴 | 久久综合久久八八 | 国产专区精品视频 | 97超视频| 精品国产综合区久久久久久 | av电影一区二区三区 | 激情婷婷网| 永久免费毛片在线观看 | 久久精品网站视频 | 欧美日韩精品电影 | 欧美另类xxx | 久久论理| 天天曰天天曰 | 999毛片| 国产高清第一页 | 99久久久久国产精品免费 | 欧美亚洲专区 | 草久视频在线观看 | 日韩在线高清免费视频 | 美女久久久久久久久久久 | 91精品国产一区二区在线观看 | 国产在线更新 | 欧美极度另类性三渗透 | 黄色福利视频网站 | 中文字幕在线专区 | 日日夜夜精品网站 | 日韩精品首页 | 日韩精品视频在线观看网址 | 日韩精品2区 | 91丨九色丨蝌蚪丨对白 | 91av免费在线观看 | va视频在线 | 日韩欧美有码在线 | 国产又黄又爽无遮挡 | 免费黄色在线播放 | 麻花豆传媒mv在线观看 | 日韩综合色 | 免费观看成年人视频 | 日韩毛片在线免费观看 | 97电院网手机版 | 男女激情片在线观看 | h动漫中文字幕 | 欧美日韩国产在线 | 麻豆成人网 | 久久国内免费视频 | 97热久久免费频精品99 | 成年美女黄网站色大片免费看 | 成人免费视频在线观看 | 国内精品久久久久久久 | 国产在线一线 | 超碰97人人干 | 国产亚洲精品久久久久久久久久 | 成年人在线电影 | 99视频这里只有 | 91亚洲激情 | 天天操天天射天天插 | 最新av中文字幕 | 亚洲免费在线播放视频 | 国产精品爽爽爽 | 精品国产成人 | 国产精品99免视看9 国产精品毛片一区视频 | 国产黑丝一区二区三区 | 免费看污污视频的网站 | 国产免费久久av | 亚洲精品美女在线观看 | 亚洲第一区在线播放 | 中文字幕免费观看 | 五月开心婷婷网 | 精品久久福利 | 久久久久久久久久网站 | 99欧美 | 最新av在线免费观看 | 久久视频国产精品免费视频在线 | 丁香九月激情 | 不卡精品| 97人人超碰在线 | 国产高清在线一区 | 97热在线观看 | 天天爱天天射天天干天天 | 国产精品99久久久精品 | 97av.com| 久久免费视频国产 | 欧美精品在线视频 | 国产白浆在线观看 | 91丨九色丨国产女 | 免费在线视频一区二区 | 日韩毛片在线播放 | 久久在线免费视频 | 午夜少妇 | 色婷婷综合久久久中文字幕 | 91av视频免费在线观看 | 国产视频一区二区在线 | 色干综合 | 草久久精品 | 伊人久久影视 | 怡红院av久久久久久久 | 插婷婷| 色插综合 | 久久网站最新地址 | 天天操天天玩 | 色综合天天在线 | 亚洲精品国产精品乱码不99热 | 黄色视屏在线免费观看 | 成人午夜电影网站 | 成人毛片100免费观看 | 日韩最新中文字幕 | 色播五月激情五月 | 激情五月伊人 | 亚洲日韩欧美一区二区在线 | 日本精品xxxx| 日产乱码一二三区别在线 | 在线播放亚洲激情 | 国产精品成人国产乱一区 | 麻花豆传媒一二三产区 | 久久尤物电影视频在线观看 | 久久久久久久久久影院 | 黄色中文字幕 | 亚洲精品美女在线观看 | 午夜免费视频网站 | 成人一级免费视频 | 成人免费看黄 | 91在线播 | 三上悠亚一区二区在线观看 | 日日爽天天爽 | 国产精品热视频 | 国产成人久久精品77777综合 | 久久人人爽人人爽人人片av免费 | 不卡视频在线 | 99久久久久久久久 | 亚洲精品观看 | 亚洲美女精品区人人人人 | 国产高清不卡av | 色视频在线 | 亚洲国产精品久久久久 | 日本精品久久久一区二区三区 | 91片黄在线观看 | 欧美日韩国产精品一区二区 | 日韩三区在线 | 亚洲天堂精品视频 | 国产一区二区在线播放视频 | 免费av大片 | 亚洲精品在线一区二区 | 日韩在线观看视频在线 | 亚洲国产美女精品久久久久∴ | 国产 日韩 在线 亚洲 字幕 中文 | 国产免费嫩草影院 | 人人要人人澡人人爽人人dvd | 久久艹99| 中文字幕色播 | 最新国产精品拍自在线播放 | 在线观看免费黄色 | 91自拍成人 | 欧美日韩国产区 | 好看av在线 | 久久观看免费视频 | 久久综合丁香 | 成人精品国产 | 天天干天天碰 | 人人射人人爽 | 91精品久久久久久久久 | 在线黄色国产电影 | 91在线操| 高清av免费一区中文字幕 | 久久视了 | 欧美激情精品久久久久久免费印度 | 成人在线你懂得 | 久久99国产精品二区护士 | 国产美女视频黄a视频免费 久久综合九色欧美综合狠狠 | 在线观看视频一区二区三区 | 西西大胆啪啪 | 国产精品久久久久婷婷二区次 | 日本女人的性生活视频 | 国产精品igao视频网入口 | 又色又爽的网站 | 免费毛片一区二区三区久久久 | 在线成人小视频 | 久久久久久久久免费 | 久久久激情视频 | 狠狠色丁香久久婷婷综合五月 | 欧美极品久久 | 色网影音先锋 | 亚洲激情婷婷 | www.com黄| 色综合网 | 国产精品手机在线观看 | 在线观看免费成人av | 日韩在线精品一区 | 日韩在线不卡 | 丝袜制服天堂 | 免费a级毛片在线看 | 精品不卡视频 | 黄色免费大全 | 成年人网站免费在线观看 | 欧美精品亚洲精品日韩精品 | 国产爽视频 | 毛片永久免费 | 国产精品久久一 | 国产一卡在线 | 日本女人逼| 亚洲精品在线观看中文字幕 | 日日日日干 | 婷婷在线视频观看 | 在线观看91精品国产网站 | 国产一级特黄电影 | 天天干夜夜爱 | 国产视频久| 婷婷丁香久久五月婷婷 | 国产精品一区二区av | 久久国产美女视频 | 日韩资源在线 | 婷婷色亚洲 | 黄色a在线 | 国产青青青 | 成人免费亚洲 | av九九九| 色综合天天天天做夜夜夜夜做 | 国产精品 日韩精品 | 国产成年人av| 98涩涩国产露脸精品国产网 | 亚洲专区 国产精品 | 99国产情侣在线播放 | 性色av免费在线观看 | 成年人国产在线观看 | 亚洲精品字幕在线观看 | 超碰97人人在线 | 在线观看韩日电影免费 | 热久久在线视频 | 国产亚洲视频在线免费观看 | 丁香婷婷激情网 | 一二三区在线 | 永久av免费在线观看 | 免费福利视频导航 | 午夜视频日本 | 亚洲日韩精品欧美一区二区 | 国产精品久久久久久超碰 | 久久爱导航 | 五月婷婷视频在线观看 | 亚洲精品成人免费 | 国产玖玖视频 | 亚洲精品在线网站 | 国产成人99久久亚洲综合精品 | 一区三区在线欧 | 久久99精品国产一区二区三区 | 97视频总站 | 久草五月 | 中文av网站 | 探花视频在线观看免费 | 丁香六月久久综合狠狠色 | 亚洲国产精品久久久久 | 日本99热| 热99久久精品 | 91毛片在线观看 | 欧美黑人巨大xxxxx | 亚洲一区精品二人人爽久久 | 玖玖色在线观看 | 欧美日韩国产一区二区在线观看 | 久久亚洲在线 | 亚州人成在线播放 | 色的网站在线观看 | 在线成人国产 | 亚洲电影久久久 | av成人在线看 | 国产免费午夜 | www.色五月.com | 亚洲精品男人天堂 | 成人免费观看网址 | 9999精品视频 | av中文在线 | 狠狠干狠狠操 | 碰碰影院| 99久久久国产精品 | 国产一区二区三区 在线 | 91精品在线免费观看 | 国产中文视频 | 久久精品最新 | 欧美精品日韩 | 91天堂素人约啪 | 婷婷 中文字幕 | 午夜三级毛片 | 激情影院在线 | 国产视频一区在线播放 | 97人人模人人爽人人喊网 | 久久视频这里有久久精品视频11 | 久久福利综合 | 手机成人av | 探花视频网站 | 久久噜噜少妇网站 | 五月激情婷婷丁香 | 日韩免费福利 | 免费观看完整版无人区 | 色网站在线免费观看 | 天天操天天干天天操天天干 | 91九色视频国产 | 一区在线观看 | 欧美一二三四在线 | 免费视频久久 | 欧美成人中文字幕 | 少妇搡bbbb搡bbb搡69 | 国产精品久久久久久久av电影 | 又爽又黄在线观看 | 欧美日韩免费在线观看视频 | 亚洲永久精品一区 | 波多野结衣精品 | 香蕉看片 | 99在线看 | 久久 精品一区 | 中文高清av | 日本三级中文字幕在线观看 | 免费黄色看片 | 国产精品毛片一区二区 | 国产成人精品综合久久久久99 | 国产精品福利久久久 | 岛国片在线 | 久久精品视频观看 | 国产最新在线视频 | 欧美激情综合五月色丁香 | av在线com| 成人亚洲综合 | 国产精品自在线 | 69av免费视频 | 在线视频你懂得 | 国产精品一区二区三区在线免费观看 | 精品一区二区三区四区在线 | 涩涩网站在线看 | 免费在线观看不卡av | 欧美男同网站 | 精品久久久久久久久久久久久久久久 | 久久人人爽爽 | 日本三级在线观看中文字 | 人人艹视频| 久久国内精品99久久6app | 四虎在线免费观看视频 | 92国产精品久久久久首页 | 91精品国产入口 | 国精产品一二三线999 | 在线观看精品一区 | 日韩欧美高清 | 69亚洲视频 | 欧美久久99 | 91色国产在线 | 亚洲一级影院 | 成人免费视频在线观看 | 亚洲国产精品电影 | 最新影院| 91在线91| 欧美天堂视频在线 | 国产精品永久在线观看 | 人人要人人澡人人爽人人dvd | 夜夜操夜夜干 | 国产成人一区二区三区影院在线 | 日韩 国产| 成人免费视频播放 | 国产精品九九久久99视频 | 久草a视频| 91桃花视频 | 久久精品电影网 | 欧美福利网站 | av免费高清观看 | 97视频免费在线看 | 成人欧美一区二区三区黑人麻豆 | 色中射 | 992tv在线观看 | 玖玖视频在线 | 日韩黄色免费看 | 天天插夜夜操 | 欧美激情精品久久久 | 91最新在线视频 | av一级一片 | 国产精品九九九 | 9在线观看免费高清完整版在线观看明 | a级免费观看 | 国产精品一区二区三区四区在线观看 | 国产精品午夜久久久久久99热 | 四虎8848免费高清在线观看 | 最新国产在线视频 | 日本午夜免费福利视频 | www日日夜夜 | 亚洲一区视频在线播放 | 91精品国产99久久久久久红楼 | 91色影院| 国产视频亚洲精品 | av午夜电影 | 日韩精品中文字幕在线 | 国产精品6999成人免费视频 | 国产在线美女 | 91中文字幕在线观看 | 久久99精品国产麻豆宅宅 | 精品一区二区精品 | 亚洲 中文 欧美 日韩vr 在线 | 国内精品久久久久久久久久清纯 | 视频在线国产 | 中文字幕在线观看完整版电影 | 亚洲一级久久 | 国产录像在线观看 | 欧美在线a视频 | av理论电影 | 亚洲精品综合欧美二区变态 | 四月婷婷在线观看 | 中文字幕在线看 | 免费在线观看成人av | 精品视频成人 | 在线观看的av网站 | 97激情影院| 国产福利一区二区三区视频 | 人人狠狠综合久久亚洲婷 | 在线小视频你懂的 | 午夜视频在线观看一区二区三区 | 美女免费视频观看网站 | 久久亚洲热 | 午夜丁香网 | 色偷偷88888欧美精品久久久 | 日韩黄色软件 | 日本精品视频一区二区 | 久久社区视频 | 懂色av懂色av粉嫩av分享吧 | 欧美亚洲三级 | 伊人影院得得 | 国产高清不卡av | 在线播放亚洲 | 97精品国产| 人人澡人摸人人添学生av | 国产成人av电影 | 久久综合之合合综合久久 | 亚洲欧洲中文日韩久久av乱码 | 国产精品va在线观看入 | 欧美九九视频 | 三级黄色网址 | 亚洲爽爽网 | 欧美日韩另类在线 | 国产精品都在这里 | 久久草草影视免费网 | 日韩在线一区二区免费 | 青青草国产在线 | 丁香综合五月 | 日韩精品一区二区三区视频播放 | 国产第一页在线播放 | 精品日韩视频 | 日本一区二区高清不卡 | 99日韩精品 | 亚洲免费色 | 高清久久久 | 黄色av网站在线观看免费 | 99热这里只有精品久久 | 日本久久久精品视频 | 一区二区三区韩国免费中文网站 | www.av免费| 狠狠色丁香 | 中国老女人日b | 国产精品去看片 | 久久亚洲欧美日韩精品专区 | 日本久久中文 | 中文字幕亚洲欧美日韩2019 | 国产精品网站一区二区三区 | 麻豆影视在线免费观看 | 国产男男gay做爰 | 一级性生活片 | 欧美日韩高清一区 | 精品自拍sae8—视频 | 日韩特黄一级欧美毛片特黄 | 久久视频精品在线 | 色94色欧美 | av观看免费在线 | www.亚洲精品在线 | 亚洲精品在线观 | 天天综合天天做 | 最近最新中文字幕视频 | 国产99re | 婷婷日 | 久久综合综合久久综合 | 精品国产一区二区三区日日嗨 | 免费91麻豆精品国产自产在线观看 | 91精品对白一区国产伦 | 国产黄色高清 | 在线三级av | 亚洲精品一区二区网址 | 亚洲电影网站 | 国产精品视频地址 | 色天天综合久久久久综合片 | 在线视频黄 | 一区二区精品视频 | 亚洲国产字幕 | 欧美成人在线免费 | 日韩最新理论电影 | 一区二区三区免费看 | 夜夜操天天干 | 久久99这里只有精品 | 久久精品久久99精品久久 | 少妇高潮流白浆在线观看 | 国产91精品久久久久 | 国精产品一二三线999 | 欧美成年人在线视频 | 在线观看午夜 | 日b黄色片| 三级av在线免费观看 | 日日日爽爽爽 | 99国产一区二区三精品乱码 | 国产福利午夜 | 五月天激情视频 | 伊人天天干 | 亚洲电影影音先锋 | 久久精品老司机 | 在线导航av | 成人午夜精品福利免费 | 欧美性成人 | www五月天婷婷 | 国产成人精品网站 | 久久国产品 | www在线观看国产 | 一区二区三区日韩视频在线观看 | 草莓视频在线观看免费观看 | 久久欧美综合 | 国产精品理论在线观看 | 欧美韩国日本在线 | 日韩videos高潮hd | 国产一二三四在线视频 | 国产一级一片免费播放放a 一区二区三区国产欧美 | 日韩在线观看网站 | 午夜电影一区 | 成年人黄色免费网站 | 91麻豆国产福利在线观看 | 草免费视频 | 亚洲视频精选 | 韩国在线一区 | 亚洲国内精品 | 中文av在线天堂 | www日 | 国产精品久久久久久久妇 | 一区二区三区韩国免费中文网站 | 天天干天天干天天干天天干天天干天天干 | 精品a视频 | 色婷婷丁香 | 在线免费观看黄色 | 国产亚洲视频在线免费观看 | 综合激情 | 成人黄色在线观看视频 | 国产中文在线字幕 | 成年人电影免费在线观看 | 911久久香蕉国产线看观看 | 欧美网站黄色 | 免费看高清毛片 | 99精品在线观看 | 狠狠色网 | 亚洲国产午夜视频 | 亚洲黄色片一级 | 天天干天天做天天爱 | 国产成人精品一区二区三区福利 | 成年人在线免费看 | 少妇搡bbb| 欧美最猛性xxxxx亚洲精品 | 97在线看片 | 91在线视频网址 | 免费色视频网址 | 99热最新精品 | 婷婷在线网 | 99tvdz@gmail.com| 337p西西人体大胆瓣开下部 | 久久综合狠狠 | 日韩久久久久久久久 | 国产精品12345 | 99视频+国产日韩欧美 | 久久影院中文字幕 | 国产91免费观看 | 91tv国产成人福利 | 伊人宗合网 | 91麻豆网| 99热免费在线 | 色综合久久综合网 | 欧美另类亚洲 | 日韩欧美视频免费看 | 91尤物国产尤物福利在线播放 | 99热只有精品在线观看 | 综合网在线视频 | 日本公妇色中文字幕 | 超碰公开在线 | 亚洲精品无| 天天爱天天色 | 国产亚洲视频中文字幕视频 | 中文字幕人成一区 | 亚洲伊人婷婷 | 成人性生爱a∨ | 亚洲国产福利视频 | 91精彩视频在线观看 | 69精品视频在线观看 | 香蕉影院在线 | 91人人澡人人爽人人精品 | 久久视频这里有精品 | 国产一线在线 | 日韩有码欧美 | 国产精品99久久久久 | 最近免费中文字幕大全高清10 | 精品久久影院 | 天天干天天干天天干天天干天天干天天干 | 中文字幕视频 | 亚洲一区日韩精品 | 美女网站黄在线观看 | 免费亚洲片 | 国产精品美女999 | 一区二区中文字幕在线观看 | 精品国产三级a∨在线欧美 免费一级片在线观看 | 97超碰在线人人 | 中文超碰字幕 | 国产韩国日本高清视频 | 91爱爱免费观看 | 伊人午夜 | 91精品视频在线免费观看 | 久久视频精品在线 | 91精品久久久久久综合五月天 | 久久久精选 | 久久a免费视频 | 欧美另类高清 videos | 亚洲精品综合久久 | 亚洲精品视频免费看 | 精品国产伦一区二区三区 | 最近中文字幕国语免费av | 大荫蒂欧美视频另类xxxx | 五月婷网站 | 成人一区二区在线 | 久久久久久中文字幕 | 久久综合婷婷国产二区高清 | 久草新在线 | 国产69熟| 免费看污网站 | 国产精品成人久久久久 | 国产黑丝一区二区三区 | 免费欧美 | 日韩av免费一区二区 | 久久久久久久99精品免费观看 | 久久9999久久| 黄色aaa毛片| 国产福利91精品一区二区三区 | 亚洲精品视频免费观看 | 色.www| 97国产精品亚洲精品 | 蜜桃av人人夜夜澡人人爽 | 色欧美日韩 | 日韩 在线a | 亚洲三级精品 | 欧美一区二区在线 | 香蕉91视频 | 日韩v在线| 人人擦 | 色视频网站在线观看一=区 a视频免费在线观看 | 国产精品久久久久久久久久尿 | 91九色视频在线播放 | 一本大道久久精品懂色aⅴ 五月婷社区 | 天天干天天草 | 国产破处在线视频 | 91精品视频在线观看免费 | 日本久久视频 | 天堂成人在线 | 欧美精品久久久久久久亚洲调教 | 欧美视频在线观看免费网址 | 国产成人精品国内自产拍免费看 | 91干干干 | 成人精品亚洲 | 日本在线观看一区二区三区 | 久久精品视频一 | 69欧美视频 | 国产91丝袜在线播放动漫 | 怡春院av | 黄色a视频 | 亚洲精品小视频 | 久久涩涩网站 | av电影免费在线看 | 日韩av图片 | 欧美日本不卡高清 | 日本黄色免费大片 | 国产日韩av在线 | 久久99久久久久 | 一区二区三区在线免费播放 | 国产一区免费在线观看 | 久久久国产精品成人免费 | 亚洲精品在线一区二区 | 欧美亚洲成人xxx | 婷婷av综合 | 国产精品99久久久久久人免费 | av无限看 | 午夜在线观看影院 | 欧美精品九九99久久 | 精品国产一区二区三区免费 | 国产裸体无遮挡 | 亚洲视频综合在线 | 黄色免费看片网站 | 亚洲欧美色婷婷 | 国内视频在线观看 | 成年人国产视频 | 视频 天天草 | 在线观看黄色大片 | 精品亚洲欧美无人区乱码 | 久久免费国产视频 | 在线观看免费成人 | 欧美成人tv | 精品国精品自拍自在线 | 五月天综合色 | 国产精品毛片一区 | 涩涩成人在线 | 人人爽人人爱 | 精品国产乱码久久久久久1区二区 | 天天干天天干天天操 | 日本性视频| 亚洲成人网av | 日韩一级理论片 | 激情五月伊人 | 91精品国产亚洲 | 国产综合在线观看视频 | 久久伊人八月婷婷综合激情 | 欧美精品在线观看免费 | 精品人妖videos欧美人妖 | 久久精视频 | 久久国产精彩视频 | 免费男女网站 | 久草香蕉在线 | 在线看成人 | 女人18片毛片90分钟 | 五月天激情视频 | 91免费观看 | 亚洲天堂精品视频 | 国产午夜精品在线 | 91麻豆传媒 | 黄色的网站在线 | 在线亚洲日本 | 久久久成人精品 | 中文免费观看 | 色婷婷 亚洲 | 久久96国产精品久久99漫画 | 久久久久久久久久久免费视频 | 日本中文字幕视频 | 欧美日韩精品在线观看 | 中文字幕黄色网 | 亚洲一级黄色片 | 91在线免费播放 | 一区二区三区四区不卡 | 国产日韩欧美在线观看 | 亚洲国产中文字幕在线视频综合 | 91免费国产在线观看 | 999视频精品 | 国产精品影音先锋 | 亚洲精品资源在线观看 | 婷婷婷国产在线视频 | 国产精品久久一区二区无卡 | 色综合久久精品 | 精品99久久 | 国产精品美女久久久久久久久久久 | 成人国产一区二区 | 久久免费国产精品1 | av电影不卡在线 | 日韩一级黄色大片 | 在线播放你懂 | 亚洲人成人99网站 | 国产伦精品一区二区三区免费 | 国产999精品久久久影片官网 | 日韩电影一区二区三区在线观看 | 一区二区三区免费在线 | 精品黄色在线观看 | 精品一区av| 久久久免费毛片 | 国产午夜精品久久 | 日韩欧美有码在线 | 午夜在线免费观看视频 | 五月婷婷激情综合网 | 国产亚洲免费观看 | 国产中文字幕在线 | 国产精品免费一区二区三区在线观看 | 69夜色精品国产69乱 | 香蕉视频网站在线观看 | 国内精品一区二区 | 99久久久久| 黄色精品一区二区 | 亚洲干| aaa免费毛片| 日韩高清在线不卡 | 精品国产伦一区二区三区观看方式 | 色偷偷男人的天堂av | www.777奇米| 国产 色 | 激情婷婷亚洲 | 日韩在线观看中文字幕 | 在线成人国产 | 国产视频2 | a资源在线 | 丁香花五月 | 亚洲全部视频 | 天天综合色天天综合 | 日本中文乱码卡一卡二新区 | 天天综合网久久综合网 | 亚洲免费国产 | 国内精品视频在线 | 久久艹影院 | 91麻豆视频 | 亚洲专区路线二 | 欧美在线观看小视频 | 国产在线免费观看 | 97免费在线观看视频 | 亚洲视频免费在线观看 | 在线观看成人福利 | 国产婷婷一区二区 | 国产精品videossex国产高清 | 中文字幕久久久精品 | 亚洲一区日韩在线 | 在线免费观看羞羞视频 | 久久精品久久国产 | 日韩欧美在线中文字幕 | 粉嫩aⅴ一区二区三区 | 午夜精品一区二区三区在线观看 | 美女精品久久久 | 亚洲婷婷网 | 国产美女搞久久 | 亚洲尺码电影av久久 | 成人一级影视 | 日韩精品一区在线播放 | 国产一二区免费视频 | 亚洲日本欧美 | 免费在线观看av片 | 国产一区91 | 国产精品免费不 | 久久久久国| 五月天婷婷在线视频 | 黄色不卡av | 深夜视频久久 | 久艹视频免费观看 | 91久久偷偷做嫩草影院 | 午夜视频在线瓜伦 | 婷婷成人亚洲综合国产xv88 | 免费男女网站 | 三级免费黄 | 国产高清日韩 | 人人澡人人爽 | 国产麻豆精品95视频 | 91 在线视频播放 | 国产精品久久久久9999吃药 | 欧美二区三区91 | 久久精品人 | 又黄又刺激视频 | 色欧美成人精品a∨在线观看 | 日韩一区二区三免费高清在线观看 | 国产99久久久欧美黑人 | 国产va精品免费观看 | 国产99亚洲 | 国产成人精品一区二区在线观看 | a在线播放 | 欧美日韩视频在线观看免费 | 99热最新| 天天干天天射天天操 | 免费人成网ww44kk44 | 久久久伦理 | 精品国产网址 | aaa免费毛片| 999久久久久久久久6666 | 日韩在线电影一区 | 中文字幕中文字幕在线中文字幕三区 | 香蕉视频4aa | 亚洲精品字幕在线 | 特级黄色视频毛片 | 国产成人久久av977小说 | 日韩在线视频一区 | 中文字幕在线观看视频免费 | 久草免费资源 | 欧美性生交大片免网 | 97成人免费 | 亚在线播放中文视频 | 国产在线视频资源 | 亚洲精品视频网址 | 亚洲国产精品久久 | 伊人国产在线播放 | 国产夫妻av在线 | 国产精品电影一区 | 国产在线观看二区 | 中文字幕一区在线观看视频 | 99在线精品观看 | 日韩网站免费观看 | 五月婷婷激情六月 | 亚洲精品小区久久久久久 | 国精产品一二三线999 | 97免费中文视频在线观看 | 伊人天天狠天天添日日拍 | 69绿帽绿奴3pvideos | 97人人视频| 久久99久久99精品 | 69亚洲视频 | 97超在线 | 毛片3 | 国产日韩欧美自拍 | 亚洲免费精品视频 | 久色网| 国产免费中文字幕 | 国产午夜不卡 | 久久精品91久久久久久再现 | 美女视频黄网站 | av片子在线观看 | 国产一区二区观看 | 日本久久久久久 | 免费在线精品视频 | 99久热在线精品视频观看 | 黄色一级大片在线免费看国产一 | 亚洲乱码在线 | 视频在线一区二区三区 | 日韩av男人的天堂 | 国产成人精品在线播放 | 亚洲免费成人 | 久久免费国产 | 日日草av | 91精品国产九九九久久久亚洲 | 久久女同性恋中文字幕 | 亚洲精品中文字幕视频 | 国产1级毛片 | 色综合久久久久综合99 | 欧美乱大交 | 国产真实精品久久二三区 | 2022中文字幕在线观看 | 成人在线黄色电影 | www.亚洲精品在线 | 男女激情免费网站 | 国产尤物在线观看 | 日韩欧美精品在线 | 在线免费视频 你懂得 | 国产亚洲日 | 97人人模人人爽人人喊中文字 | 在线影院中文字幕 | 四虎影视成人 | 久久精品国产精品亚洲 | 欧美a√大片| www国产亚洲精品久久网站 | 在线视频电影 | 91看片淫黄大片一级在线观看 | 91福利视频免费观看 | 日本在线免费看 | a天堂最新版中文在线地址 久久99久久精品国产 | 国产精品爽爽爽 | 一级黄毛片 | 狠狠干五月天 | 国产精品美女免费 | 久久久久久久久久久久av | 在线观看色网站 | 香蕉视频18 | 伊人久久电影网 | 国产精品扒开做爽爽的视频 |