這期內(nèi)容當中小編將會給大家?guī)碛嘘P(guān)如何在Android應(yīng)用中分批顯示 ListView數(shù)據(jù),文章內(nèi)容豐富且以專業(yè)的角度為大家分析和敘述,閱讀完這篇文章希望大家可以有所收獲。
Android ListView數(shù)據(jù)的分批顯示
布局文件activity_call_safe2.xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" > <TextView android:text="黑名單管理" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:text="添加" /> </RelativeLayout> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="11" > <LinearLayout android:id="@+id/ll_pb" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:visibility="invisible" android:orientation="vertical" > <ProgressBar android:layout_width="wrap_content" android:layout_height="wrap_content" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="玩命加載中..." /> </LinearLayout> <include android:id="@+id/list_view_callsafe" layout="@layout/list_view_callsafe"/> </FrameLayout> </LinearLayout>邏輯文件,實現(xiàn)頁面的分頁顯示,監(jiān)聽ListView的滑動事件,滑動的時候就更新數(shù)據(jù)
本文標題:如何在Android應(yīng)用中分批顯示ListView數(shù)據(jù)-創(chuàng)新互聯(lián)
當前地址:http://chinadenli.net/article38/desgpp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站制作、網(wǎng)站導(dǎo)航、移動網(wǎng)站建設(shè)、服務(wù)器托管、企業(yè)建站、網(wǎng)站策劃
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容