You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Style of file/image detail download needs improvement #710
@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?
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.
@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).
@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.
@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).
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.
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).
Activity
Kernald commentedon Nov 6, 2014
I'll be happy to!
jancborchardt commentedon Nov 6, 2014
@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?
Kernald commentedon Nov 6, 2014
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.
enoch85 commentedon Nov 6, 2014
👍 Finally
tobiasKaminsky commentedon Nov 6, 2014
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?
davivel commentedon Nov 6, 2014
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.
Kernald commentedon Nov 6, 2014
@tobiasKaminsky The one we're interested in here is
file_download_fragment.xml. However, it's specified on thepreview_image_fragment.xmlto black, but not on the genericfile_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).
Kernald commentedon Nov 6, 2014
@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.davivel commentedon Nov 6, 2014
WTF. I just discovered my IRC client is crashed... I'll try to recover.
@Kernald , are you in owncloud-android at IRC?
2 remaining items
jancborchardt commentedon Jul 23, 2015
From @tobiasKaminsky's comment in #1032:
http://www.google.com/design/spec/components/progress-activity.html#progress-activity-types-of-indicators
The first one "determinate"
AndyScherzinger commentedon Jul 23, 2015
I'll cover this if you want me too :)
AndyScherzinger commentedon Jul 23, 2015
Going in the right direction?
jancborchardt commentedon Jul 23, 2015
@AndyScherzinger yeah, most definitely! :) For images, it should only be the downloading bar and the x, with a dark background. :)
tobiasKaminsky commentedon Jul 23, 2015
@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).
AndyScherzinger commentedon Jul 23, 2015
How would we proceed on this matter since my PR also contains a fix for this except for images :)
jancborchardt commentedon Jul 24, 2015
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.
tobiasKaminsky commentedon Jul 24, 2015
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).
download fixing for #710
colored background black for image download #710 as proposed by @janc…
AndyScherzinger commentedon Jul 26, 2015
@jancborchardt changed it to the dark background as discussed :)
masensio commentedon Aug 20, 2015
Fixed in master branch.
@AndyScherzinger thanks!!
AndyScherzinger commentedon Aug 20, 2015
@masensio it has only been merged against develop!!!!!
masensio commentedon Aug 20, 2015
@AndyScherzinger, master is updated also with develop!!