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

Set zoom causes view to shrink #4

Open
srodenberg opened this issue Apr 8, 2015 · 1 comment
Open

Set zoom causes view to shrink #4

srodenberg opened this issue Apr 8, 2015 · 1 comment

Comments

@srodenberg
Copy link

If you start with a zoom of 2 in an xml, then change the zoom to 1 programmatically, the view shrinks. Shouldn't the view maintain its position and the zoom of the drawable in the view should change?

<it.dex.movingimageviewlib.DexMovingImageView
    android:id="@+id/image"
    android:layout_width="match_parent"
    android:layout_height="420dp"
    android:layout_alignParentTop="true"
    app:drawer="scale"
    app:zoom="2"
    app:angle="0"
    app:generator="base"
    app:evaluator="simple"
    tools:src="@drawable/hotdogs1400" />

That is the xml I have, I would like to scale this image so that it keeps its position but shrinks in size. Similar to a ken burns effect like shown here https://www.youtube.com/watch?v=nNTiyRDhlRY

@dexlex
Copy link
Owner

dexlex commented Apr 10, 2015

Good point. You can not do it for now because they are all asynchronous operations. You can create your generator to make the ken burns effect. Otherwise, You can wait for me, because I add this as a new feature for the next version.

Thank you

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

No branches or pull requests

2 participants