如何在android下载后滚动到10之后加载listview项目
答案 0 :(得分:1)
首先在数组列表中添加10个项目
$Query = $conn->query("SELECT count(*) as notificationCount FROM r_job_invitations where email='".$_SESSION['user_email']."' and inv_res=0") or die(mysqli_error());
$notification = mysqli_fetch_assoc($Query);
$_SESSION['notificationCount'] = $notification['notificationCount'];
if ($updateStatus) {
$response['message'] = "<strong>Success!</strong> Job Rejected.";
$response['notificationCount'] = $_SESSION['notificationCount'];
$response['success'] = true;
} else {
$response['message'] = "<strong>Warning!</strong> There is an error in Job Rejection please try again";
$response['success'] = false;
}
echo json_encode($response);
exit;
}
滚动到结尾后,将加载10个项目