POJO's versus Cursors in Android

后端 未结 4 1449
甜味超标
甜味超标 2020-12-13 02:43

I usually tend to define the model layer of my apps using POJO\'s, such as Article, Comment, etc.

I was about to implement an AlphabetIndexer in the adapter of one o

4条回答
  •  臣服心动
    2020-12-13 03:08

    Answers are 4 years old. I think now we have enought CPU power to get away with more stuff. My idea would be to work only with POJOs and ArrayLists; and extending CursorLoader to map cursor to POJOs in the background and deliver arraylist to activity;

    unless youre queries hundreds of rows but then, how often are you doing that vs. niceness of using POJOs, getters and setters

提交回复
热议问题