Skip to content

Style of file/image detail download needs improvement #710

Closed

Description

@jancborchardt

Currently when you swipe through the images, you often see this ugly download view (as noted by @enoch85):
screenshot_2014-11-06-14-07-28

  • the background should be black, as it is for the pictures for the rest of the background
  • the loading bar should have a nice native Android look
  • the cancel button should look better and have a native Android look
  • the text »Download in progress …« should be centered and say simply »Downloading …«, and be light grey on the black background.

@Kernald @lukeowncloud @tobiasKaminsky @stoyicker anyone of you wants to take this up?

Activity

  1. Kernald commented on Nov 6, 2014

    @Kernald
    Contributor

    I'll be happy to!

  2. jancborchardt commented on Nov 6, 2014

    @jancborchardt
    ContributorAuthor

    @Kernald that would be cool, thanks! :)

    @LukeOwncloud the above is a screenshot of loading a file in the details view, on stock Android (with a Nexus 4.) Maybe you have a modified Android, like from Samsung or so?

  3. Kernald commented on Nov 6, 2014

    @Kernald
    Contributor

    I have exactly the same UI on a stock Samsung Galaxy S4, however, the progress bar is blue on a (stock too) Sony Xperia Z3 Compact.

  4. enoch85 commented on Nov 6, 2014

    @enoch85

    👍 Finally

  5. tobiasKaminsky commented on Nov 6, 2014

    @tobiasKaminsky
    Contributor

    I have not found a specific colour in file_details_fragment.xml
    Maybe the default colour from the android theme is being used?

    But this should be overridden to keep in sync with the owncloud colour scheme, or?

  6. davivel commented on Nov 6, 2014

    @davivel
    Contributor

    May you believe it or not, but the color of the bar is native, depending on the Android version. Talking from memory, but I'd say the progress bar is created without specifying a color, so it's just showing the default.

    An option to improve this is just defining a color, no matter what version of Android is running.

    Another weird property of the bar making it seeming 'non-native' is its height. It's very thick.

  7. Kernald commented on Nov 6, 2014

    @Kernald
    Contributor

    @tobiasKaminsky The one we're interested in here is file_download_fragment.xml. However, it's specified on the preview_image_fragment.xml to black, but not on the generic file_download_fragment.xml, which is also use for non-image files. I don't really know how we should proceed here.

    Note that I started to work on this in Kernald/owncloud-android@16e94087d1d80be518f28f84860470ca99c4be63 (I can't find any way to link the branch).

  8. Kernald commented on Nov 6, 2014

    @Kernald
    Contributor

    @davivel That's actualy wrong. A drawable is set on this specific progress bar. It's what is defining its height too. Replacing it by a generic style (style="?android:attr/progressBarStyleHorizontal") gives the default Holo look.

  9. davivel commented on Nov 6, 2014

    @davivel
    Contributor

    WTF. I just discovered my IRC client is crashed... I'll try to recover.

    @Kernald , are you in owncloud-android at IRC?

  10. 2 remaining items

  11. AndyScherzinger commented on Jul 23, 2015

    @AndyScherzinger
    Contributor

    I'll cover this if you want me too :)

  12. AndyScherzinger commented on Jul 23, 2015

    @AndyScherzinger
    Contributor

    Going in the right direction?

    screenshot_2015-07-23-15-03-21

  13. jancborchardt commented on Jul 23, 2015

    @jancborchardt
    ContributorAuthor

    @AndyScherzinger yeah, most definitely! :) For images, it should only be the downloading bar and the x, with a dark background. :)

  14. tobiasKaminsky commented on Jul 23, 2015

    @tobiasKaminsky
    Contributor

    @jancborchardt
    Why? :) I would keep the design the same, whether is is a file or an image.
    And then the thumbnail could be displayed instead of the mimetype icon. (there is already a PR that is doing this for the "file detail" view).

  15. AndyScherzinger commented on Jul 23, 2015

    @AndyScherzinger
    Contributor

    How would we proceed on this matter since my PR also contains a fix for this except for images :)

  16. jancborchardt commented on Jul 24, 2015

    @jancborchardt
    ContributorAuthor

    Why? :) I would keep the design the same, whether is is a file or an image.

    Cause images never had the detail view shown, and they have a dark background when shown. When you swipe through a folder of images, the flash of bright and technical info will always look strange. A good point though is showing the thumbnail above the loading bar so it’s alread visible what will load – the rest of the info is not necessary though.

  17. tobiasKaminsky commented on Jul 24, 2015

    @tobiasKaminsky
    Contributor

    Ah. Of course you are right.
    (This would slightly be outdated when #982 will be merged as then the download of the resized image should be done within a sec).

  18. AndyScherzinger commented on Jul 26, 2015

    @AndyScherzinger
    Contributor

    @jancborchardt changed it to the dark background as discussed :)

  19. masensio commented on Aug 20, 2015

    @masensio

    Fixed in master branch.
    @AndyScherzinger thanks!!

  20. AndyScherzinger commented on Aug 20, 2015

    @AndyScherzinger
    Contributor

    @masensio it has only been merged against develop!!!!!

  21. masensio commented on Aug 20, 2015

    @masensio

    @AndyScherzinger, master is updated also with develop!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions