Skip to content
This repository was archived by the owner on Nov 22, 2017. It is now read-only.

Resize transformer fix #27

Merged
merged 20 commits into from
Dec 6, 2014
Merged

Conversation

Fiddl3
Copy link
Contributor

@Fiddl3 Fiddl3 commented Dec 5, 2014

Many changes, please look at commit comments.
I tried to commit small code changes related to one issue at time.

ResizeTransformer should now work more smoothly, because layout is redrawn only once in one pass of Drag Listener.

I removed some unnecessary methods an simplified Transformers code...

Gradle wrapper update (2.2.1)
Build Gradle plugin update (1.0.0-rc3)
Build Tools and target SDK updated to lastest
YoutubePlayerApi no longer exist on gradle (not uses jar library)
Fixed SecondView positionig in Maximized State
Fixed Preview in Android Studio (DraggablePanel should be treated as
RelativeLayout) ex: layout\activity_tv_shows_sample.xml
Fixed horizontal drag issues
Every methods/variables related to last position.
This was used in old onLayout() implementation
float to int everywhere except scaleFactor
Changed implementatnio of position calculation
Changed implemenation of getMinWidth() method
Fixed sample app (I forgot about that in prev commit)
Removed unnecesary metods & variables
Methods where size is calculated are merged - now in one pas of
dragEvent dragView is redrawed only once, not twice
@pedrovgs
Copy link
Owner

pedrovgs commented Dec 5, 2014

Nice PR, can you update this branch with pedrovgs:develop?

@Fiddl3
Copy link
Contributor Author

Fiddl3 commented Dec 5, 2014

Travis say Could not find com.android.support:support-v4:21.0.2. xD
There is no support library on maven central (I think is in local repo, when you install android google support libs via SDK Manager)

@pedrovgs
Copy link
Owner

pedrovgs commented Dec 5, 2014

xD Revert your build.gradle changes to use an older version. I'll update that dependencies later.

private static final float X_MIN_VELOCITY = 1300;
private static final float Y_MIN_VELOCITY = 1300;
private static final float X_MIN_VELOCITY = 1500;
private static final float Y_MIN_VELOCITY = 1000;
Copy link
Owner

Choose a reason for hiding this comment

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

Why have you changed X_MIN_VELOCITY, Y_MIN_VELOCITY and MINIMUN_DX_FOR_HORIZONTAL_DRAG?

@Fiddl3
Copy link
Contributor Author

Fiddl3 commented Dec 5, 2014

MINIMUN_DX_FOR_HORIZONTAL_DRAG typo in MINIMU``N word

...MIN_VELOCITY - I've tested various values and this to works ok for me, Y_MIN_VELOCITY was too high for landscape mode.

@pedrovgs
Copy link
Owner

pedrovgs commented Dec 5, 2014

Can you restore the value of MINIMUN_DX_FOR_HORIZONTAL_DRAG to 5?

@Fiddl3
Copy link
Contributor Author

Fiddl3 commented Dec 5, 2014

hmmmm.... I'm thinking MINIMUM_DX & MINIMUM_DY should be density dependent...

@pedrovgs
Copy link
Owner

pedrovgs commented Dec 5, 2014

Yes, should be density dependent. We can do that in other PR.

@pedrovgs
Copy link
Owner

pedrovgs commented Dec 5, 2014

There is something wrong with tv shows sample, ScaleTransformer and this branch :S. Here you have a video https://drive.google.com/file/d/0B9xkpTnF9BXjbDZQcU4tR1ZfblE/view?usp=sharing Can you take a look. This is the last fix needed to merge this PR :)

@Fiddl3
Copy link
Contributor Author

Fiddl3 commented Dec 5, 2014

Whats wrong there? I don't know where I should look

@Fiddl3
Copy link
Contributor Author

Fiddl3 commented Dec 5, 2014

aaa I see, second view content is missing, I'll take look at this

@pedrovgs
Copy link
Owner

pedrovgs commented Dec 5, 2014

Review also how you measure your max bottom position. I've changed your <item name="y_scale_factor" format="float" type="dimen">2</item> to <item name="y_scale_factor" format="float" type="dimen">2.3</item> and is working as you can see in this video: https://drive.google.com/file/d/0B9xkpTnF9BXjZndQOE9vSDNCa0E/view?usp=sharing

@Fiddl3
Copy link
Contributor Author

Fiddl3 commented Dec 5, 2014

travis doesn't like me & lastest google support library....
Travis downloads and installs support library, but then it doesn't see it... https://travis-ci.org/pedrovgs/DraggablePanel/builds/43138658#L935

pedrovgs added a commit that referenced this pull request Dec 6, 2014
@pedrovgs pedrovgs merged commit d172e50 into pedrovgs:develop Dec 6, 2014
@pedrovgs
Copy link
Owner

pedrovgs commented Dec 6, 2014

Thanks @Fiddl3 for this pull request!!!! I'm going to update project readme with a contributors section and you will be there :) What's your name and last name?

@Fiddl3
Copy link
Contributor Author

Fiddl3 commented Dec 6, 2014

No problem :)
I'll continue working on lanscape support when I'll have time
I'm Rafał Pluta

@pedrovgs
Copy link
Owner

pedrovgs commented Dec 6, 2014

If you are using this library in any project, please send me an email with
the project name and link to update README.md file with that information.

2014-12-06 14:20 GMT+01:00 Fiddl3 [email protected]:

No problem :)
I'll continue working on lanscape support when I'll have time
I'm Rafał Pluta


Reply to this email directly or view it on GitHub
#27 (comment)
.

@Fiddl3
Copy link
Contributor Author

Fiddl3 commented Dec 6, 2014

This project is still in dev stage, I still have problems with rtmp stream playback...

@pedrovgs
Copy link
Owner

pedrovgs commented Dec 6, 2014

Ok, let me know once be published! Good luck ;)
On Dec 6, 2014 3:39 PM, "Fiddl3" [email protected] wrote:

This project is still in dev stage, I still have problems with rtmp stream
playback...


Reply to this email directly or view it on GitHub
#27 (comment)
.

@Fiddl3
Copy link
Contributor Author

Fiddl3 commented Dec 6, 2014

I will, thanks.

@Fiddl3 Fiddl3 deleted the ResizeTransformer_fix branch December 8, 2014 13:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants