Skip to main content

Module feed

Module feed 

Source
Expand description

The feed view for Avestruz: the notes of the people the account follows, newest first, in a scroller.

The notes are in a VirtualList, so only the rows on screen are ever built, however far the feed has been scrolled into the past.

What is on show is the reader’s, and stays put. Notes that turned up since are offered by a button over the list, as Jumble does.

ConstantsΒ§

ACCOUNT_AVATAR_SIZE πŸ”’
How wide the account’s picture is above the feed: as the buttons beside it are.
COG_MENU_ITEMS πŸ”’
How many things the menu under the cog offers, and the room above and below the line the cog is in.
COG_SIZE πŸ”’
How wide and tall the cog above the feed is, which its menu opens under.
FEED_MODE_WIDTH πŸ”’
How wide each choice of which notes to show is, at the least: the two are as wide as each other, whatever their words.
HEADER_PADDING πŸ”’
LOAD_OLDER_WITHIN πŸ”’
How close to its end, in pixels, a list of notes is scrolled before the next older page is fetched: about two popups’ worth, so the page is usually there before the end is.
NEW_NOTES_AVATARS πŸ”’
The button that offers new notes: how many of their authors it shows, how wide each picture is and how far each starts from the one before, and the most notes it counts before saying only that there are more.
NEW_NOTES_AVATAR_SIZE πŸ”’
NEW_NOTES_AVATAR_STEP πŸ”’
NEW_NOTES_COUNTED πŸ”’
NEW_NOTIFICATIONS_COUNTED πŸ”’
The most new notifications the bell counts before saying only that there are more.