简体   繁体   中英

How do I add a button to my list when I'm forced to use simple_list_item_1?

I have a list, and I want 'Next' and 'Previous' buttons at the bottom of the list. I've tried to make the ListAdapter for the list something other than simple_list_item_1, but Android won't let me. I keep getting '... can't be resolved'.

Now, simple_list_item_1 is some kind of magical unicorn that is impossible to find, so I can't change it.

How can I put my buttons on the screen?

It is not necessary for you to use simple_list_item_1. Can you elaborate the "cant be resolved error". Also post your layout file and the code using those layout components.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM