r/RedReader • Developer 🦡 • Jun 22 '13

Progress update for version 2

Main Features

Version 2 will primarily involve writing a lightweight alternative to the bloated mess that is Android's system of activities and fragments. Activites are one of the main sources of inefficiency in this app. They are slow to open/close, they make it difficult to implement a lot of the features people have suggested, and Android's complicated and unpredictable management of them has lead to lots of bugs and crashes.

The new fragment system in version 2 will cause the following (previously difficult) fixes/features to be added:

  • Things will load immediately when they are clicked. No half-second delay.

  • Ability to show images/websites in the right pane on tablets (will be optional)

  • Ability to select a default "home" screen

  • Ability to have tablet-mode in landscape only

  • Will reliably save state when relaunching from the home screen (in the same way as it does when loading from the recent apps menu)

  • Will allow for smooth transitions between screens

  • The inbox/profiles/etc will be full screen on phones, and will take up the full screen height on tablets

  • Full-screen mode, where actionbar is hidden and main fragment (right col) fills whole screen

  • Various crashes (caused by background activities not being able to do certain things) will be fixed

  • Handling intents/urls from other applications

  • Better memory management

  • In the (distant) future, it will be possible to implemented a tabbed interface. No promises on that though.

What's more, version 2 will use a custom-built alternative to Android's ListView:

  • Scrolling will be incredibly smooth (in my current dev build, drawing takes less than 1 ms)

  • Rendering is multithreaded (and hence mind-bogglingly complicated)

  • Items in the post list will be highlighted when clicked

  • Flinging posts will no longer be interrupted when new posts stream in

  • Comment flinging will be possible

  • Comments, posts, and inbox messages can easily co-exist in the same list, allowing for saved comments for reddit gold users

And finally, it'll include all the other features I've promised but don't want to implement until after the above overhaul.

Progress so far

The custom fragment manager and list view are mostly done. Hopefully I'll be able to finish them off over the next few days, and work on rewriting the existing UI code to use them instead of Android's implementations.

When's it going to be released?

When it's done :)

44 Upvotes

28 comments sorted by

View all comments

1

u/Serdontos Aug 21 '13

Any significant progress?

2

u/QuantumBadger Developer 🦡 Aug 21 '13

It's going a lot slower than I hoped unfortunately, partly because I released a load of updates for the v1.8.x branch over the last few weeks.

As of this afternoon the custom list view (and associated multithreaded view hierarchy) is bug free, and very smooth. I'm hoping to have something alpha-ish ready within the next couple of weeks (no promises though).

It's possible to see changes as they happen on GitHub (the v2 branch is currently coloured pink).

1

u/Serdontos Aug 22 '13

Can we expect push notifications?

1

u/QuantumBadger Developer 🦡 Aug 22 '13

/u/Rroia is having a look into this now - it might be in v2.