Z
Z
Zestxx2016-01-15 17:03:05
Android
Zestxx, 2016-01-15 17:03:05

How to properly implement a news feed in an Android application?

Friends, tell me who knows. How to implement a news feed in an android application. The bottom line is that the information should come gradually from the server as the tape scrolls and not all at once. I remember I stumbled upon a similar article, but then I didn’t attach any importance to it, but now it’s needed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Gamega, 2016-01-15
@gadfi

The bottom line is that the information should come gradually from the server as the tape scrolls and not all at once.

limit on the number of data returned in api, as you scroll, load more data, for example, there are 3 news left that the user has not yet seen (3 from the ceiling depends on the size of the news, screen, etc.) load new ones.
then the size of the photo, for example for the avatar https://pp.vk.me/c402330/v402330401/9760/pV6sZ5wRG... weighs 2 kb for the preview, there should also be a non-full-size photo, otherwise you can forget about smoothness

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question