List View as Alternative to Grid View on ThreadsActivity/BoardsActivity/FavoritesActivity
#126 opened on Mar 3, 2015
Repository metrics
- Stars
- (52 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Request from a review:
The only gripes I have is that there is no option to remove grid view on the boards
Grid view to see the catalog is annoying because you see so little text, so I recomended looking at the catalog in your browser.
This is relatively straightforward although not exactly a small task. The settings pane/activity needs a checkbox or something to switch between grid and list view for a board, favorites etc. A new view_thread_list.xml (analogous view_board_list.xml) should be created (and the respective PostListEntryView.java or something) and depending on the setting either view_thread or view_thread_list is inflated in the respective adapter. Depending on the setting a LinearLayout or possible the same Gridlayout with column count 1 must be used. Maybe an abstract PostView class should be created with children TilePostView and ListEntryPostView. Since the non-tile view can show more information this should be exploited.
Don't forget to check in onResume if the setting has been changed to possibly update the layout (or cheap solution would be to need a restart which would be okay if activity backstack could be recreated).