我创建了一个recyclerView。我想要的是,当它滚动到最终项目时,它会加载更多项目列表。
当我评论行print (Publisher['Title'].str.contains('(?:\s|^|[,;])JavaScript(?:\s|$|[,;])'))
58 True
63 True
90 True
96 True
158 True
209 False
Name: Title, dtype: bool
print (Publisher['Title'].str.contains('(?:\s|^|[,;])Java(?:\s|$|[,;])'))
58 False
63 False
90 False
96 False
158 False
209 True
Name: Title, dtype: bool
中的代码时,应用程序没有崩溃但是当我删除上面的注释时,应用程序开始崩溃,但它在logcat中没有显示任何内容。有人可以帮我弄这个吗?
list_more_res.addAll(tmp_more);
答案 0 :(得分:0)
我认为你必须这样做:
public function __construct() {
parent::__construct();
$this->load->helper('form');
// Load session library
$this->load->library('session');
// Load database
$this->load->model('User_model');
}
public function index()
{
$this->load->view('index');
}
public function project()
{
$this->data['posts'] = $this->User_model->getPosts(); // calling Post model method getPosts()
$this->load->view('tables', $this->data);
// $this->load->aview('project');
}
public function get_project()
{
$this->User_model->get_project($data);
}
public function signin()
{
$data = array(
'email' => $this->input->post('email'),
'password' => $this->input->post('password')
);
$this->User_model->signin($data);
}
public function logout()
{
$this->session->unset_userdata($_SESSION['email']);
// $this->session->sess_destroy();
redirect('User');
}
public function signup()
{
$data = array(
'name' => $this->input->post('name'),
'phone' => $this->input->post('phone'),
'email' => $this->input->post('email'),
'password' => $this->input->post('password')
);
if($this->User_model->signup($data))
{
echo "no insert";
}
else
{
$this->load->view('index', $data);
}
}
}