Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved ImageZoom screen #68

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Improved ImageZoom screen #68

wants to merge 2 commits into from

Conversation

saketkumar
Copy link
Contributor

@saketkumar saketkumar commented Mar 3, 2018

This PR improves the ImageZoom Screen and added the animations of opening the activity.

  • Apply the AndroidStyle.xml style template to your code in Android Studio.

  • Run the checks with ./gradlew check to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them.

Here is the screenshot after changes :
screenshot_1520060327

@sagar15795 Please review! :)

@saketkumar
Copy link
Contributor Author

@sagar15795 I haven't added the download and share image feature in this PR. Here is the demo of those feature : https://drive.google.com/file/d/1J-FPEhInuQLrP20mE_gAQwKjzfVBDHIc/view Let me know if it looks good to implement. I will implement those too. :)

@Hiteshgautam01
Copy link
Contributor

Hey, @saketkumar95 according to me the white background is perfect in image zoom. This black background looks odd to the application because the application theme is blue and white. So, I suggest you do not change the background colour inside image zoom. What do you think @sagar15795

@saketkumar
Copy link
Contributor Author

@Hiteshgautam01 Yeah you are right but if you will check other applications like whatsapp or slack app. The ImageZoom screen is full black. The background as well as the status bar color. And It looks good to me according the google's new material design.

This black background looks odd to the application because the application theme is blue and white.

I think application theme doesn't matters here. I just tried to make it like a lightbox screen. https://material.io/guidelines/style/imagery.html#imagery-best-practices

Copy link
Member

@sagar15795 sagar15795 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@saketkumar95 Change the background and status bar using style.xml theme.

@saketkumar
Copy link
Contributor Author

@sagar15795 Done! For download and share image option , I will create it in another PR. 👍

@sagar15795
Copy link
Member

@saketkumar95
Please add image option in this PR.
Don't put it in separate PR.

@saketkumar
Copy link
Contributor Author

@sagar15795 Done! Please review now! :)

@saketkumar
Copy link
Contributor Author

@sagar15795 Here are the screenshots :

screenshot_1520153998
screenshot_1520154006
screenshot_1520154016

Copy link
Member

@sagar15795 sagar15795 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@saketkumar95 Please change the requested changes. Also, follow the MVP architecture.

@@ -225,4 +298,89 @@ public void onDestroyView() {
super.onDestroyView();
mImageZoomPresenter.detachView();
}

public class DownloadImage extends AsyncTask<String, Integer, String> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use RxJava2 and Retrofit 2 to download a workflow Image.

@asfgit asfgit force-pushed the master branch 2 times, most recently from 03f68fd to f997f57 Compare May 22, 2018 17:19
@sagar15795
Copy link
Member

@saketkumar could you please remove this commit dea42ee or Use RxJava2 and Retrofit 2 to download a workflow Image so that we can merge it.

@saketkumar
Copy link
Contributor Author

yes sure @sagar15795 Just give me 1 day. I'm a bit busy with my work. I will complete it by thursday night.

@ianwdunlop
Copy link
Contributor

Do we really care if RxJava and Retrofit are used? If it works and is better then we can worry about that later.

@sagar15795
Copy link
Member

@ianwdunlop It will work. But it might crash the app sometimes because of the async task.

@ianwdunlop
Copy link
Contributor

Ok. Thanks for the advice @sagar15795 . How hard is it to change to RxJava/Retrofit? I assume there is a pattern in the existing code that uses it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants