日韩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的全部內容,希望文章能夠幫你解決所遇到的問題。

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

在线99视频| 国产福利中文字幕 | 91在线视频播放 | 亚洲视频久久久 | 久久久网站 | 最新国产精品拍自在线播放 | 国产免费又爽又刺激在线观看 | 国产色在线,com | 97精品一区二区三区 | 99电影456麻豆 | 久久精品免费播放 | 欧美日韩免费看 | 久久免费视频一区 | 精品国产一区二区三区不卡 | 日日夜操 | 国产亚洲一区二区在线观看 | 国产精品短视频 | 一级欧美一级日韩 | 国产在线最新 | 人人爽人人爽人人爽学生一级 | 国产综合精品久久 | 国产精品视频一二三 | 国产手机在线视频 | 国产传媒中文字幕 | av免费观看网址 | 久久乐九色婷婷综合色狠狠182 | 五月婷婷视频 | 国产精品日韩高清 | 日韩美女av在线 | 国产精品麻豆三级一区视频 | 国产手机在线 | 免费av网址在线观看 | 亚洲日韩精品欧美一区二区 | 超碰在线个人 | 欧美天天射 | 黄色av高清 | 香蕉久久国产 | 97超级碰| a色视频 | 国产无遮挡又黄又爽在线观看 | 久久99热这里只有精品国产 | 中文字幕黄色av | 麻豆视频免费在线播放 | 久久久久亚洲精品中文字幕 | 欧美巨大荫蒂茸毛毛人妖 | 欧美日韩在线观看一区二区三区 | 中文字幕日韩免费视频 | 国产一区二区免费在线观看 | 成人欧美在线 | av一区在线播放 | 日韩亚洲国产精品 | 在线小视频你懂得 | 久久综合狠狠综合 | 91视频下载| 久草在线视频在线 | 久久免费99精品久久久久久 | 亚洲专区路线二 | 久久理伦片 | av成人免费在线看 | 成人网中文字幕 | 在线久久 | 亚洲综合一区二区精品导航 | 香蕉在线观看 | 亚洲成人精品久久 | 国产视频导航 | 成人免费观看电影 | 一级全黄毛片 | 婷婷久久亚洲 | 中文字幕成人一区 | 久久一区二区三区超碰国产精品 | 五月婷婷毛片 | 日本久久综合视频 | 欧美国产三区 | 91av在线电影| 五月婷久 | 成人国产精品电影 | 日韩中文幕| 久久免费视频8 | 久久99精品国产91久久来源 | 久久精品在线免费观看 | 久久日韩精品 | 激情综合啪 | 免费成人在线观看视频 | 欧美国产日韩久久 | 亚洲激情 | 成人av网页| 久久久久久久久网站 | 免费电影播放 | www.久久久com | 亚洲一区二区三区在线看 | 亚洲黄色av一区 | 最近中文国产在线视频 | 91九色成人蝌蚪首页 | 亚洲理论片在线观看 | 午夜手机电影 | 91在线最新| 天堂av在线7 | 探花视频免费在线观看 | 激情欧美一区二区三区免费看 | 日韩免费观看高清 | 国产99久久久国产精品成人免费 | av888.com| 激情欧美一区二区免费视频 | 日韩在线免费播放 | 欧美日韩二区三区 | 国产中文伊人 | 午夜精品一区二区三区可下载 | 涩涩成人在线 | 亚洲精品视频免费在线观看 | 天天射天天操天天干 | 久久免费的精品国产v∧ | 韩国在线视频一区 | 精品视频123区在线观看 | 在线观看av不卡 | 国产精品s色 | 久久久免费 | 中文在线8新资源库 | 精品一区精品二区高清 | 免费av小说| 500部大龄熟乱视频使用方法 | 久久久久久毛片精品免费不卡 | 亚洲精品乱码久久久久 | 最近的中文字幕大全免费版 | 日韩精品在线一区 | 超碰在线97国产 | 九九爱免费视频在线观看 | 天天天干天天天操 | 久久国产精品99久久人人澡 | 97视频人人澡人人爽 | 精品毛片在线 | 久热久草| 日本黄色免费看 | 免费a v网站 | 成人精品一区二区三区中文字幕 | 成人91免费视频 | 91香蕉视频 mp4| 日韩在线字幕 | 久久男人影院 | 黄色中文字幕 | 免费观看一区二区 | 亚洲一区二区三区四区精品 | 天堂av免费观看 | 综合色婷婷 | 综合天天网 | 亚洲免费成人 | 久久久久久免费视频 | 精品国产不卡 | 欧美一区二区三区免费看 | 在线不卡视频 | 欧美老人xxxx18| 中文字幕一区二区三区四区 | 操操操夜夜操 | 日韩精品一区电影 | 日韩大片在线播放 | 国产精品视频永久免费播放 | 夜夜看av | 久久久久久久久黄色 | 日躁夜躁狠狠躁2001 | 丁香5月婷婷久久 | 国产一区二区影院 | 在线观看国产一区 | 国产成人av片 | 亚洲天堂网在线播放 | 国产美女免费观看 | 日韩a在线 | 久久久久一区二区三区四区 | 天天操天天摸天天射 | 奇米网在线观看 | 欧美日韩超碰 | 久久精品免费电影 | 98久9在线 | 免费 | 成人毛片在线观看视频 | avove黑丝| 久久这里只有精品视频首页 | 欧美性做爰猛烈叫床潮 | 麻豆影视网站 | 二区视频在线观看 | 久久免费国产 | 亚洲精品免费在线视频 | 欧美精品久久久久久久免费 | 不卡av电影在线观看 | 91视视频在线直接观看在线看网页在线看 | 久久国精品 | 久久99精品国产麻豆宅宅 | 超碰在线公开 | 中文字幕丝袜一区二区 | 国模精品一区二区三区 | 日本动漫做毛片一区二区 | 日韩一二三| 韩国一区二区三区在线观看 | 久久99久久99精品免视看婷婷 | 日本激情中文字幕 | 日韩电影一区二区在线观看 | 午夜丁香视频在线观看 | 最近最新中文字幕视频 | 开心色插 | 日本aaa在线观看 | 日韩午夜在线 | 精品国产欧美一区二区 | 国产伦精品一区二区三区高清 | 亚州精品天堂中文字幕 | 久久久久福利视频 | 99自拍视频在线观看 | 国产在线精品国自产拍影院 | 亚洲午夜精品久久久久久久久 | 偷拍区另类综合在线 | 日日爽日日操 | 香蕉免费在线 | 五月开心婷婷网 | 亚洲国产欧洲综合997久久, | 国产精品久久久久久久久久 | 91视频在线自拍 | 奇米影视777影音先锋 | 日韩中文字幕免费视频 | 97干com| 天天综合网在线观看 | 婷婷六月丁 | 色就色,综合激情 | 国产精品久久久久久模特 | 久久激五月天综合精品 | 亚洲2019精品 | 欧美日韩视频免费看 | 亚洲激情婷婷 | 欧美 日韩 国产 中文字幕 | 不卡精品 | a午夜电影 | 91麻豆高清视频 | 免费观看91视频大全 | 精品在线观看一区二区 | 色综合天 | 国产资源在线免费观看 | 色综合天天综合 | 在线看中文字幕 | 黄色三级在线观看 | 五月天欧美精品 | 日韩毛片在线一区二区毛片 | 久久免费视频8 | 天天夜夜亚洲 | 国产黄色大片免费看 | 欧美日韩二三区 | 久久久免费视频播放 | 中文字幕国产精品一区二区 | 国产视频在线看 | 亚洲在线网址 | 激情欧美国产 | 久久久国产精品亚洲一区 | 久色小说 | 亚洲精品久久久久中文字幕m男 | 国产精品视频999 | 日本久久久久久 | 黄色三级在线看 | 亚洲国产中文字幕 | 亚洲精品在线二区 | 国内精品视频久久 | 黄色毛片在线看 | 五月婷婷综合在线观看 | 500部大龄熟乱视频 欧美日本三级 | 中文字幕在线观看一区二区 | 成年人免费观看在线视频 | 欧美一级片免费观看 | 午夜18视频在线观看 | 东方av免费在线观看 | 免费在线黄 | 国产精品美女在线 | 亚洲一级片在线看 | 中文字幕国产视频 | 制服丝袜在线 | 5月丁香婷婷综合 | 91福利区一区二区三区 | av网站地址 | 在线成人一区 | 欧美人牲| 天天综合网久久综合网 | 国产特级毛片aaaaaaa高清 | 在线看免费 | 亚洲专区视频在线观看 | 久久久久久久久久免费视频 | 国产精选在线观看 | 天天射天天操天天色 | av在线精品 | 久久一二三四 | 天天射日 | 黄色毛片视频免费 | 黄色在线看网站 | 最新色站 | 久久久久成人精品免费播放动漫 | 久久精品国产久精国产 | 亚洲欧美国产精品 | 国产一级不卡毛片 | 欧美一区二视频在线免费观看 | 亚洲乱码久久久 | 1024手机基地在线观看 | 99爱视频在线观看 | 久久久久久久久艹 | 精品国产不卡 | 夜夜操网| 国产精品免费久久久 | 国产视频99 | 精品一区欧美 | 国产呻吟在线 | 天天色综合1| 日韩中文在线视频 | 美女福利视频一区二区 | 精品影院一区二区久久久 | 婷婷激情综合五月天 | 亚洲91中文字幕无线码三区 | 一性一交视频 | wwwwwww黄| 高清一区二区三区 | 在线a视频免费观看 | 国产精品久久久久一区二区三区 | 在线观看国产一区二区 | 丁香婷婷成人 | 久久久999精品视频 国产美女免费观看 | 69精品在线观看 | 欧美精品一区二区蜜臀亚洲 | 在线观看一级视频 | 成人午夜电影网 | 人人射人人爱 | www.com黄色 | 欧美日本啪啪无遮挡网站 | 国产精品欧美一区二区 | 干天天 | 成x99人av在线www | 国产91综合一区在线观看 | 在线看岛国av | 亚洲一区 av | 狠狠色网| 在线免费观看视频你懂的 | 99热官网| 亚洲欧美国产视频 | 精品视频区 | 国产精品丝袜久久久久久久不卡 | 人人插人人 | 丰满少妇一级片 | 嫩嫩影院理论片 | 丁香六月激情婷婷 | 久久久久久久久亚洲精品 | 国产一区二区免费 | 丰满少妇高潮在线观看 | 黄a在线观看 | 婷婷激情综合五月天 | 手机在线观看国产精品 | 天天爽夜夜爽精品视频婷婷 | av 一区二区三区四区 | 久久久久久久久久久综合 | 香蕉视频在线看 | 亚洲视频专区在线 | 成人免费观看大片 | 在线免费观看视频a | 啪一啪在线| 亚洲妇女av| 久久一区国产 | 一区二区三区免费在线观看视频 | 亚洲五月婷 | 九热精品 | 91日韩精品| 欧美在线观看视频免费 | 日韩欧美高清 | 国产综合在线视频 | 亚洲精品久久久蜜臀下载官网 | 国产精品白丝jk白祙 | 久草精品视频在线观看 | 一 级 黄 色 片免费看的 | 成人免费共享视频 | 韩日精品在线观看 | 欧美三级高清 | 99热精品国产 | 黄色的片子 | 国产黄色免费 | 五月婷香 | 国产精品婷婷午夜在线观看 | 国产高清免费 | 欧美精品在线视频 | 中文字幕在线免费观看视频 | 女人18毛片a级毛片一区二区 | 精品久久国产一区 | 久99久精品| 亚洲最大的av网站 | www.五月婷| 麻豆传媒视频在线免费观看 | 超碰在线人人97 | 免费观看国产精品视频 | 久草在线视频精品 | 国产精品va最新国产精品视频 | 精品国内自产拍在线观看视频 | 欧日韩在线视频 | 国产精品福利小视频 | 免费久久网站 | 久久精品一二三区 | 激情综合网五月婷婷 | 久久天天躁夜夜躁狠狠85麻豆 | 欧美久久久久久久 | 久久九精品 | 韩国av永久免费 | 91九色综合 | 国产真实在线 | 夜夜操狠狠操 | 正在播放 国产精品 | 91黄视频在线观看 | av在线中文 | 日韩一三区 | 91九色网站| 国产精品一区二区三区免费视频 | 日韩精品久久久久 | 日韩久久久久 | 人人玩人人弄 | 欧美日本不卡高清 | 亚洲高清色综合 | av中文天堂 | 91在线一区 | 久久久激情网 | 在线看污网站 | 91精品国产自产在线观看永久 | 99久久婷婷国产综合精品 | 一区二区三区在线观看免费 | 九九热免费精品视频 | 亚洲免费精品一区二区 | 99热精品国产 | 激情综合啪啪 | 亚洲精品国产成人 | 人人爽人人爽人人爽 | 97超碰人人澡人人爱 | 成年人免费电影 | 97精品欧美91久久久久久 | 精品国产成人av在线免 | 成人免费视频在线观看 | av日韩在线网站 | 亚洲午夜精品久久久 | 久久网站免费 | 成年人免费在线观看网站 | 天天艹天天 | 国产精品99精品久久免费 | 久久这里 | 美女免费黄网站 | 久草免费在线观看视频 | 亚洲国产三级在线观看 | 中文字幕在线观看视频一区 | 欧美日韩一区二区视频在线观看 | 一区二区三区电影 | 国产精品久久久久久久久久久杏吧 | 黄色成人av网址 | 玖玖精品视频 | 国产亚洲情侣一区二区无 | 日韩网站免费观看 | 黄色一区二区在线观看 | 久久久久国产精品午夜一区 | 日韩精品字幕 | 欧美日韩视频在线观看一区二区 | 天天天天爽| 久久综合网色—综合色88 | 日韩黄色在线观看 | 久久久久久国产精品999 | 国产日本高清 | 免费观看国产视频 | 激情偷乱人伦小说视频在线观看 | 色婷婷免费视频 | 五月天婷婷在线播放 | av电影免费在线 | www.久久色 | 中文字幕国产在线 | 国产精品99久久久久久人免费 | 亚洲国产电影在线观看 | 91视频中文字幕 | 国产精品欧美日韩 | 国产女人40精品一区毛片视频 | 911在线 | 日精品| 国产在线无 | 在线一二三四区 | www.日日操.com| 中文字幕色综合网 | 高清不卡一区二区在线 | 中文字幕精品三级久久久 | 中文字幕日韩伦理 | 黄色成年片 | 免费www视频 | 啪啪免费试看 | 天躁狠狠躁 | 成人黄色电影在线 | 激情视频一区 | 国产一级片免费观看 | 国产黄色精品视频 | 亚洲一级电影 | 在线亚洲午夜片av大片 | 国产原创av片 | 久久久久久免费网 | 美女久久视频 | 黄色一级性片 | 色婷婷色| 四虎在线免费视频 | 国产精品乱码一区二区视频 | 在线 高清 中文字幕 | 手机在线黄色网址 | 中文字幕在线播放第一页 | 天堂av免费观看 | 久久精品国产精品亚洲 | 爱干视频| 欧美一区二区三区不卡 | 91在线观看视频 | 99r精品视频在线观看 | 午夜成人影视 | 韩国在线视频一区 | 国产精品av免费在线观看 | 2019中文字幕第一页 | 三级黄色片子 | 黄色激情网址 | 国产黄色视 | 骄小bbw搡bbbb揉bbbb | 久久久久这里只有精品 | 99久久精品国产一区二区三区 | 99高清视频有精品视频 | 久久婷婷久久 | 99久久精品免费看 | 精品欧美一区二区三区久久久 | 中文字幕 91 | 一级做a视频 | 天天色天天射天天干 | 欧美日韩久久一区 | 天天干,天天草 | 91福利在线导航 | 国产成人a亚洲精品v | 91av蜜桃 | 婷婷伊人五月天 | 狠狠色狠狠色综合日日小说 | 91精品入口 | 久久久久免费视频 | 激情久久小说 | 国产群p视频 | 91大神一区二区三区 | 在线黄色国产电影 | 人人狠狠综合久久亚洲 | 91mv.cool在线观看 | 天天爱天天操天天干 | 亚洲精品视频在线免费播放 | 国产精品一区二区在线免费观看 | 日韩丝袜 | 色视频网站在线观看一=区 a视频免费在线观看 | 很污的网站| 久久在线精品视频 | 国产大片免费久久 | 天天射天天添 | 91超在线| 日韩在线观看视频一区二区三区 | 日韩欧美综合视频 | 国产精品福利午夜在线观看 | 高清av在线 | 狠狠干婷婷色 | 91精品国产自产在线观看永久 | 久久久久久久久久久久久国产精品 | 亚洲综合色激情五月 | 日韩精选在线 | 欧美激情视频久久 | 亚洲第一av在线 | 免费成人在线观看视频 | 国产婷婷vvvv激情久 | 99视频在线精品免费观看2 | 久久国语 | 日本中文字幕在线电影 | 国产18精品乱码免费看 | 色婷婷激情五月 | 国产午夜精品一区二区三区在线观看 | 免费网站色 | 国产精品毛片一区二区 | 久久久久久看片 | 国产在线91在线电影 | 日日干天天爽 | 国产97在线看 | 91av视频网站| 亚洲视频免费 | 日韩动态视频 | 91片黄在线观看动漫 | 欧美性生活大片 | 国产高清免费av | 国产高清视频在线播放一区 | 日韩日韩日韩日韩 | 99高清视频有精品视频 | 国产 视频 高清 免费 | 男女激情片在线观看 | 久久尤物电影视频在线观看 | 亚洲视频精品在线 | 国产 欧美 日本 | 一区二区三区精品在线视频 | 色94色欧美| 欧美人人| 日韩视频一区二区在线观看 | 日本公妇色中文字幕 | 手机成人在线电影 | www.亚洲精品在线 | 99久热精品 | 久精品视频在线 | 久久国产午夜精品理论片最新版本 | 免费三级在线 | 看v片| 国产亚洲精品久久久久久久久久久久 | 五月婷婷色综合 | 久久精品亚洲一区二区三区观看模式 | 久久久久久久久久免费视频 | 人人插人人澡 | 人人干狠狠干 | 久久久久久久国产精品影院 | 国产福利在线 | 欧美一级性| 亚洲精品视频在线观看免费 | 狠狠色噜噜狠狠狠 | 亚洲夜夜网 | 丁香婷婷激情 | a级片久久久 | 亚洲精品视频在线免费播放 | 日韩在线观看你懂得 | www在线观看视频 | 成年人黄色大片在线 | 欧美一进一出抽搐大尺度视频 | 欧美一二三四在线 | 久草精品视频在线观看 | 人人网人人爽 | 九九九九免费视频 | 免费看黄网站在线 | 中午字幕在线观看 | 日韩精品一区二区三区不卡 | 国产精品久久久久久久久毛片 | 黄色的网站免费看 | 人人看人人 | 亚洲资源| 精品国产中文字幕 | 婷婷激情五月综合 | 国产综合激情 | 久久夜色精品国产欧美乱极品 | 狠狠色伊人亚洲综合成人 | 黄色大片中国 | 欧美视频网址 | 日本三级久久 | 综合久久综合久久 | 九九视频在线观看视频6 | 97精品国产97久久久久久春色 | 在线观看免费高清视频大全追剧 | 亚洲四虎在线 | 日韩videos高潮hd | 99超碰在线观看 | 粉嫩一区二区三区粉嫩91 | 欧美日韩精品在线一区二区 | 一区二区三区在线播放 | 国产理论影院 | 国内精品久久影院 | 免费在线观看av | 99热国产在线 | 久久婷亚洲五月一区天天躁 | 亚洲精品激情 | 久久99国产精品免费网站 | av在线网站免费观看 | 久久夜色精品国产欧美一区麻豆 | 亚洲午夜久久久久久久久久久 | 中文字幕日本电影 | 成人免费视频网站在线观看 | 午夜久久网 | 精品在线观| 一区久久久 | 久久超碰在线 | 国产精品久久久777 成人手机在线视频 | 久久久久国产精品免费免费搜索 | 久草久草久草久草 | 深爱激情综合网 | 久久综合狠狠综合久久激情 | 成人免费在线电影 | 欧美精品成人在线 | 国产成人免费高清 | 亚洲精品乱码久久久久久蜜桃动漫 | 国产精国产精品 | 国产va在线 | 成人免费视频网址 | 色丁香综合 | 2018好看的中文在线观看 | 中国美女一级看片 | 丁香九月激情综合 | a久久久久| 麻豆视频在线免费观看 | 日本中文一区二区 | 亚洲精品天天 | 中文字幕日本在线 | 国产午夜三级一区二区三 | 精品在线观看国产 | 中文字幕人成人 | 久插视频 | 成人动漫一区二区 | 国产一级在线 | 国产又黄又猛又粗 | 精品久久久久久久久中文字幕 | 成人亚洲精品久久久久 | 亚洲 欧美 91| 夜夜夜精品 | 中文字幕一区二区三区在线视频 | 亚洲精品视频免费在线观看 | 欧洲激情在线 | 免费日韩 | 91成人网在线播放 | 五月激情久久 | 美女免费黄网站 | 国产va饥渴难耐女保洁员在线观看 | 狠色狠色综合久久 | 摸阴视频 | 在线观看www.| 成片免费观看视频 | 99草视频在线观看 | 色综合久久综合中文综合网 | 香蕉在线播放 | 在线国产视频 | 激情视频区 | 91mv.cool在线观看 | 日韩草比 | 五月天婷亚洲天综合网精品偷 | 99r在线 | 亚洲涩综合 | 久久久国产精品人人片99精片欧美一 | 日韩免费不卡av | 免费精品人在线二线三线 | 超碰97人人在线 | 亚洲黄在线观看 | 一区三区在线欧 | 久久资源在线 | www免费网站在线观看 | 精品久久久久久一区二区里番 | 最近中文字幕免费大全 | 久久人人爽人人爽人人片av软件 | 中文字幕精品视频 | 国产视频一二区 | 婷婷色网址| 久久精品一区二区三区中文字幕 | 91视频首页 | 97小视频 | 婷婷丁香九月 | 日韩免费一二三区 | 中文字幕亚洲综合久久五月天色无吗'' | 日本在线观看一区二区三区 | 国产明星视频三级a三级点| 国产一区二区高清不卡 | 久久综合狠狠综合久久狠狠色综合 | 日日干天夜夜 | 成人久久18免费网站麻豆 | 色www精品视频在线观看 | 国产成年免费视频 | 国产精品视频永久免费播放 | 中文字幕在线观看播放 | 成人精品国产 | 日韩在线视频不卡 | 久草久热 | 丝袜美腿亚洲 | 免费av网站观看 | 夜夜躁日日躁狠狠久久88av | 97福利社| 国产精品国产三级国产aⅴ入口 | 亚洲国产黄色片 | 操操操日日 | 国产天天综合 | 久久99精品国产99久久 | 青青看片 | 欧产日产国产69 | 天天干天天射天天插 | 国产精品久久一区二区三区, | 亚洲美女视频在线 | 黄色毛片在线观看 | 天天操天天操天天操天天操天天操 | 亚洲人成人在线 | 丰满少妇在线观看网站 | 久久国产亚洲精品 | 丁香午夜 | 日韩精品高清不卡 | 国产黄在线看 | 国产资源免费在线观看 | 亚洲精品国精品久久99热一 | 超碰国产在线观看 | 国产成人免费在线 | 97av.com| 狠狠做深爱婷婷综合一区 | 亚洲电影在线看 | 久久精品99国产精品亚洲最刺激 | 天天·日日日干 | 国产在线观看你懂得 | 国产人免费人成免费视频 | 久久久久欧美精品 | 亚洲精品乱码久久久久久写真 | 国产正在播放 | 777视频在线观看 | 青青五月天 | 日韩成人免费在线电影 | 久久综合色影院 | 成人av在线资源 | 欧美性生活免费看 | 91丨九色丨蝌蚪丨老版 | 亚洲精品黄色在线观看 | 西西www4444大胆视频 | 欧美成人h版在线观看 | 欧美少妇18p| 亚洲精品视频在线 | 国产精品成人aaaaa网站 | 久久黄色片 | 狠狠操操网| 91最新地址永久入口 | 国产黄色成人av | 欧美一二三四在线 | 日韩极品视频在线观看 | 欧美精品一级视频 | 久久久免费观看 | 婷婷久久久 | 中文字幕欧美日韩va免费视频 | 高清不卡免费视频 | 三级黄色网络 | 九九涩涩av台湾日本热热 | 亚洲综合少妇 | 美女久久久久久久 | 免费黄色看片 | 最近日本字幕mv免费观看在线 | 国产精品久久久久一区二区国产 | 国产91在| 播五月综合 | 毛片888 | 天天草天天干天天 | 久久精品久久综合 | 日本黄色免费播放 | 久久午夜精品影院一区 | 亚洲综合涩 | 日韩在线国产 | 六月丁香伊人 | 亚洲综合激情小说 | 免费一区在线 | 精品久久在线 | 香蕉日日| 麻豆一级视频 | 欧美做受高潮1 | 天天色图 | 中文字幕4 | 日韩久久精品一区二区三区下载 | 亚洲我射av | 久久精品高清视频 | 天天操天天综合网 | 黄色精品久久 | 91麻豆精品国产午夜天堂 | 国产日本亚洲高清 | 激情欧美丁香 | 精品视频资源站 | 伊人午夜视频 | 91九色精品国产 | 麻豆成人精品视频 | 免费国产一区二区视频 | 久久精品99国产精品酒店日本 | 在线观看香蕉视频 | 国产小视频免费观看 | 中文字字幕在线 | 丁香网五月天 | 激情五月播播久久久精品 | 国产成人精品在线播放 | 久久免费视屏 | 欧美日韩国产一区 | 免费不卡中文字幕视频 | 91在线视频免费观看 | 日本午夜免费福利视频 | 亚洲精品免费在线视频 | 国产亚洲在线视频 | 97视频亚洲| 成全免费观看视频 | 久久久久久久久久久久久久电影 | 天天操月月操 | 99精品免费久久久久久日本 | 欧美性做爰猛烈叫床潮 | 黄色一级大片免费看 | 91视频高清 | 亚洲资源视频 | 干天天| 97免费视频在线 | 久久久久国产精品免费 | 日韩精品短视频 | 九色精品免费永久在线 | 亚洲电影成人 | 久久黄网站| 欧美淫视频| 久草视频在线资源 | 99精品在线免费视频 | 亚洲国产一区二区精品专区 | 99热99| 激情综合亚洲 | 激情一区二区三区欧美 | 亚洲天天综合网 | 国产色秀视频 | 一区二区在线影院 | 亚洲精品一区二区久 | 精品在线免费观看 | 精品一二三区视频 | 麻豆影视在线免费观看 | 日韩 在线| 国产黄色在线看 | 91天天操| 久久久久久久久久久久99 | 免费看三级网站 | 视频在线99 | 婷婷亚洲最大 | 中文在线a在线 | 久久久久影视 | 亚洲成人二区 | 99免费精品视频 | 国产男女无遮挡猛进猛出在线观看 | 日本深夜福利视频 | 久久综合色综合88 | 美女免费视频一区二区 | 亚洲成人av影片 | 国产精品色在线 | 亚洲视频分类 | 成人黄色大片 | 国产乱码精品一区二区三区介绍 | 国产黄色精品在线观看 | 日韩欧美综合精品 | 午夜黄色 | 久久观看最新视频 | 91污污 | 欧美性生交大片免网 | 美女一二三区 | 色999视频 | 婷婷九月激情 | 五月婷婷在线视频观看 | 免费看的黄色 | 色吊丝在线永久观看最新版本 | 国产亚洲永久域名 | 国内精品一区二区 | 久久激情视频网 | 午夜精品久久久久久久99 | 国产剧情一区二区 | 国产综合香蕉五月婷在线 | 一区二区 精品 | 免费能看的黄色片 | 超碰免费97 | 成年人黄色免费视频 | 日韩免费高清在线观看 | 久久99国产精品视频 | 久久久久久久久久久久久影院 | 97小视频| 丁香在线视频 | 国产小视频在线免费观看视频 | 国产一区二区三区免费观看视频 | 五月天激情视频在线观看 | 精品国产乱码久久久久 | 精品国产成人在线影院 | 日韩av成人在线 | 美女网站久久 | 欧美有色 | 日本最大色倩网站www | 欧美成人精品欧美一级乱黄 | 九色精品在线 | 国产人成精品一区二区三 | www.久久com| 黄色成人av网址 | 久精品在线 | 久久久久女人精品毛片九一 | 麻豆久久精品 | 99精品视频一区 | 久久九九网站 | 九九热在线精品 | 精品福利网站 | 亚洲小视频在线观看 | 日韩午夜视频在线观看 | 手机在线观看国产精品 | 黄色av电影一级片 | 一区电影 | av中文字幕在线免费观看 | 天天干亚洲| 成年人黄色大片在线 | 夜夜躁日日躁狠狠久久av | 韩国av在线播放 | 中文资源在线播放 | 99久久精品免费看国产 | 网站在线观看日韩 | 日本成人免费在线观看 | 国产精品视频999 | 久久精品成人热国产成 | 中文字幕资源网在线观看 | 国产一区二区视频在线 | 国产精品99久久久久久大便 | 日日夜夜天天人人 | 9797在线看片亚洲精品 | 欧美精品免费一区二区 | 成人免费视频视频在线观看 免费 | 亚洲一级性 | 久久久久久久久久国产精品 | 日本在线观看中文字幕无线观看 | 91人人爽人人爽人人精88v | 亚洲精品伦理在线 | 美女视频免费一区二区 | 亚洲成人频道 | 国产伦精品一区二区三区… | 99av国产精品欲麻豆 | 欧美 日韩 国产 成人 在线 | 国产黄网站在线观看 | 九九导航| 91中文在线观看 | 天天在线操 | 999视频网站 | 国产高清免费观看 | 日韩欧美视频免费看 | 麻豆传媒视频在线播放 | 午夜精品视频福利 | 深爱激情久久 |