I am want to add cells to GridView dynamically when the user reach the last row of cells its like the show more?
I am want to add cells to GridView dynamically when the user reach the
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check out CommonsWare EndlessAdapter. Very straight-forward
Adapterimplementation.You could also manually use an
OnScrollListeneron theGridView. Use theonScrollStateChanged()callback to figure out when the grid isOnScrollListener.SCROLL_STATE_IDLE, then determine if the last grid item is visible. If so, get more items for yourAdapter, and callnotifyDataSetChanged().