Giter VIP home page Giter VIP logo

comic-reader-home-android's Introduction

Read Comics - Android client

An android client for reading comics at home (my home).

This is just a client for my other project comic-reader-home.

comic-reader-home-android's People

Contributors

jgasteiz avatar

Stargazers

Efreak avatar

comic-reader-home-android's Issues

Add bookmark support

The BE, comic-reader-home, supports bookmarks (see code here). Let's add bookmark support to this app.

Suggested approach

  • First, build a new bookmarks endpoint in comic-reader-home project so we can fetch all existing bookmarks via API.
  • Load all bookmarks on app load.
  • When loading any directory, look for matches between the comics in the directory and the stored bookmarks. Bookmarks only store a comic path and its bookmarked page.
  • Display some bookmark controls on the rows where there's a bookmark for the row comic.
    • It should be possible to delete/remove the bookmark.
    • It should be possible to continue reading from the bookmark.
    • It should be possible to read from the beginning.
  • Store the bookmarks offline and pull them to keep them in sync every once in a while.
  • While reading a comic, it should be possible to bookmark the current page at any time.

Extra points

  • Add a drawer to the app with a bookmarks option.
  • Add a bookmarks activity to list all existing bookmarks.
  • The list of bookmarks should link the user to the bookmarked comic in the right page.

Proper offline support

  • Build an activity that should load a list with the offline items.
  • The app should work completely offline. If loaded offline or the server is unreachable, show a proper message and take the user to the downloads page.

Add comic offline support

It would be nice if it was possible to download entire comics for offline or simply "out of home" reading. The way things are built now, this app will only really work at my home network, which means it's not possible to read anywhere else. With comic offline support, that would be possible.

Suggested approach

  • We need to add "actions" per row in the list of comics/directories.
  • Add the "download" action to comics.
  • The download action, on a background task, should first fetch the details of the comic itself (there's an endpoint for it, api_comic_detail (code), which will return the number of pages of the comic.
  • Once we have that, download every image of the comic.
  • Store the images on a local directory named using the comic "path" property, which is the full path of the actual comic on the server encoded using base64. There won't be clashes.

Add a drawer to the app

For now, let's keep it simple. Add it with only one menu item, Root directory.

In the future, we'll add a section for the "favorites" directories (supported already by comic-reader-come, but not exposed via api yet), another menu item for "downloads" and another one for "bookmarks".

Implement "Go to page"

Add some reading controls to the ReadingActivity with a "Go to page" control. A simple popup with a number input to type the page number should be enough.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.