android-kenburnsview

Define zoom/pan start position with KenBurnsView

☆樱花仙子☆ 提交于 2020-01-10 05:24:05
问题 I'm working with the library KenBurnsView and I have a problem: the overview or this nice library says the following: "Highly extensible: you can define how the rectangles to be zoomed and panned will be generated" and that's exactly what I want to do but I don't know exactly how. I would like to be able to tell the library to zoom or pan from a specified region (a RectF I presume) of my image. I think I have to implements my own TransitionGenerator and write a custom generateNextTransition()

Define zoom/pan start position with KenBurnsView

天涯浪子 提交于 2020-01-10 05:24:01
问题 I'm working with the library KenBurnsView and I have a problem: the overview or this nice library says the following: "Highly extensible: you can define how the rectangles to be zoomed and panned will be generated" and that's exactly what I want to do but I don't know exactly how. I would like to be able to tell the library to zoom or pan from a specified region (a RectF I presume) of my image. I think I have to implements my own TransitionGenerator and write a custom generateNextTransition()

Create KenBurns with minimum possible zoom

牧云@^-^@ 提交于 2019-12-25 08:54:27
问题 I am using this library I am trying to create app with minimal possible zoom. In my application I have small area where the images are presented as slide show. But the images are big so when kenburns effect starts it it zoomed too much. How can I set the zoom level ? 回答1: You need to create your own TransitionGenerator . If you want the keep the random movement and control the zoom, a good place to start is to base your custom TransitionGenerator off this one. The highlighted line (120) uses

KenBurnsView how to set image resource?

◇◆丶佛笑我妖孽 提交于 2019-12-24 02:30:31
问题 I'm trying to use Faria's KenBurnsView library in my application. KenBurnsView is some extension of ImageView, with a nice animating effect. You may have seen the effect in Foursquare app's images. For the actual picture, the view uses the XML defined "android:src" property. But I want to set the image resource during run-time through Java code. I have tried setImageResource, setBackgroundResource, set".."drawabale and many other methods. But no matter what, my image setting command always

animate scaleType=“centerCrop” in ImageView

安稳与你 提交于 2019-12-13 15:09:31
问题 Is there a way to animate scaleType="centerCrop"? I need to scale my image to certerCrop so the image can cover the entire area of the imageView. But I need to animate it to show the user the actual look of the image before it is being scaled I was planning to do it this way imageView.animate().scaleX(2.0f).setDuration(2000) but the problem is that I will be doing this on multiple image for a slide show so each image will have a different size and orientation. I also found this library https:

Implementation of KenBurns effect on Android with dynamic bitmaps setting

♀尐吖头ヾ 提交于 2019-11-30 12:04:40
问题 Background I am working on an implementation of the "KenBurns effect" (demo here) on the action bar , as shown on this library's sample (except for the icon that moves, which I've done so myself). In fact, I even asked about it a long time ago (here), which at this point I didn't even know its name. I was sure I've found a solution, but it has some problems. Also, since I sometimes show the images from the device, some of them even need to be rotated, so I use a rotatableDrawable (as shown

Implementation of KenBurns effect on Android with dynamic bitmaps setting

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 02:27:22
Background I am working on an implementation of the " KenBurns effect " (demo here ) on the action bar , as shown on this library 's sample (except for the icon that moves, which I've done so myself). In fact, I even asked about it a long time ago ( here ), which at this point I didn't even know its name. I was sure I've found a solution, but it has some problems. Also, since I sometimes show the images from the device, some of them even need to be rotated, so I use a rotatableDrawable (as shown here ). The problem The current implementation cannot handle multiple bitmaps that are given

Define zoom/pan start position with KenBurnsView

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 15:48:26
I'm working with the library KenBurnsView and I have a problem: the overview or this nice library says the following: "Highly extensible: you can define how the rectangles to be zoomed and panned will be generated" and that's exactly what I want to do but I don't know exactly how. I would like to be able to tell the library to zoom or pan from a specified region (a RectF I presume) of my image. I think I have to implements my own TransitionGenerator and write a custom generateNextTransition() mtehod but I don't know what to do inside. Can anyone help me ? Thanks. Adrian You need to implement