Code Monkey home page Code Monkey logo

Comments (2)

flavioarfaria avatar flavioarfaria commented on July 21, 2024

Hi Sahildave,

That doesn't happen on the demo app. Are you using
android:configChanges="orientation" in your manifest file? That's
probably happening because the view is being resized while a transition is
running.

On Mon, May 12, 2014 at 4:36 PM, sahildave [email protected] wrote:

Hi. I downloaded and started using your lib. I just created a new project
in Eclipse with default Full Screen activity. Just changed the default
textview to

<com.flaviofaria.kenburnsview.KenBurnsView
android:id="@+id/fullscreen_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/your_drawable" />

..and didnt change anything else, not even TransitionGenerator.

Whenever I rotate the device (scenario Landscape to Potrait) first the
image sticks to the top leaving the bottom part empty with a background
color.

Images:

[image: land]https://cloud.githubusercontent.com/assets/6861255/2949213/6bac70d8-da0c-11e3-8f0d-5a4ea4d61b22.jpg
[image: potrait]https://cloud.githubusercontent.com/assets/6861255/2949214/6bb72bfe-da0c-11e3-96ad-772336bda649.jpg

The same happens for Potrait to Landscape rotation, with image zoomed in
too much in the landscape view.

Next, when the ongoing transition is completed. The app crashes with the
following stacktrace http://pastebin.com/q5B2SvMj


Reply to this email directly or view it on GitHubhttps://github.com//issues/8
.

from kenburnsview.

sahildave avatar sahildave commented on July 21, 2024

Thanks for the quick reply. I just rebooted my system, it takes time to start. Meanwhile, as I said I didnt change anything in the project. Just added your library and changed the activity_main.xml. I'll see if there is a android:configChanges value defined as a default paramater.

EDIT: Well, it was there android:configChanges="orientation|keyboardHidden|screenSize". You may want to add this somewhere, firstly because this was the default value added by either Eclipse or by SDK (atleast when using FullScreen Activity), secondly many devs use this tag to handle config changes. Moreover, I think the solution to last few comments in Issue#2 is also the same.

Cheers mate! Nice library!

from kenburnsview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.