inflation, layout, drawing,… Thwre also other applications, cpus are slow, memories are too, everything takes forever. And then you are supposed to save battery.”
Providers for (Comment comment : item.getComments()) {} Parsing of text, JSONu,…, complicated formatting,.. Html.fromHtml() Complicated layouts “I can go home, it’s runs smooth on my phone.” Critical code can be hidden (deep) in the abstraction
…,or it has to be preprocessed You don’t have to show it right away → use tmp placeholders void onScrollStateChanged(…, int newState) mHandler.postDelayed(deferredBind, DELAY } ☝ it’s crucial to keep this balanced Test on various devices (low-end, tablets) …and with various data StrictMode
will run to make sure it won’t cause delays Lollipop+ (RenderThread), support lib 25.1 setItemPrefetchEnabled(true) Supported by built-in LayoutManageres (API for custom ones) Watch out for onBindViewHolder - no animations,… setInitialPrefetchItemCount(N) You can see the difference with your naked eye