Giter VIP home page Giter VIP logo

Comments (9)

Tommy-Geenexus avatar Tommy-Geenexus commented on June 11, 2024

@thestinger

I've implemented an menu option to view document properties here (almost finished):
79ae289

Here's a screenshot:
doc_props

Are the visuals ok like this? (Displayed metadata matches the PDF.js demo)

Additionally, i made some further UI changes (Opening the document is now a Floating Action Button, Menu is being hidden initially). Should i pr them too? (I think the UI could use some overhauling to make it prettier)

from pdfviewer.

thestinger avatar thestinger commented on June 11, 2024

Yes, that looks like a good start. It doesn't need to be perfect to be a useful improvement.

from pdfviewer.

thestinger avatar thestinger commented on June 11, 2024

Additionally, i made some further UI changes (Opening the document is now a Floating Action Button, Menu is being hidden initially). Should i pr them too? (I think the UI could use some overhauling to make it prettier)

That makes sense, but I wouldn't want that floating button there after a document is open.

from pdfviewer.

Tommy-Geenexus avatar Tommy-Geenexus commented on June 11, 2024

Of course. The button gets hidden once a PDF is opened.
The benefit with the Floating Button is that the menu item disabling stuff can be removed and the action bar menu can be hidden initially.

However, there's still a lot of room for changes / improvements:

  • With the Floating Button present the menu could be reworked to replace the "open document" menu item with something like "close document", which would then proceed to close the current PDF and go back to initial screen (in my opinion this would be superior to keeping the "open document" item, however would need additional code which handles closing the PDF (i'm not too familiar with javascript))
  • There's a lot of unused space initially, could be used to implement f.e. a recyclerview which shows most recently opened files or something else
  • Possibly more + the stuff on the issue tracker

from pdfviewer.

thestinger avatar thestinger commented on June 11, 2024

I'm not sure if I want that floating action button but the metadata display is definitely wanted.

from pdfviewer.

Tommy-Geenexus avatar Tommy-Geenexus commented on June 11, 2024

@thestinger
I forgot to mention: The floating button would add a dependency on the design support library, so i presume it's out.
I've simply decided to hide all menu items except for "open document" initially, what do you think about it?
(https://github.com/Applications-Development/platform_packages_apps_PdfViewer/commit/6b844e000f779c9f0d44e0fbb59c464f45c88f73)

Would also allow dropping some ugly code.

from pdfviewer.

thestinger avatar thestinger commented on June 11, 2024

Design Support library, etc. are in AOSP so that's fine.

from pdfviewer.

thestinger avatar thestinger commented on June 11, 2024

Hiding them seems like a good approach.

from pdfviewer.

Tommy-Geenexus avatar Tommy-Geenexus commented on June 11, 2024

Alright, good to know, so i can overhaul https://github.com/CopperheadOS/platform_packages_apps_PdfViewer/pull/17 and use a more modern edit text.
I'll wait for you to review the existing pr's, before sending out more (there are few more incoming).

from pdfviewer.

Related Issues (20)

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.