0

i am using a project from codepanda "gestureimageview" succesfully, and i've got to move and rotate any View, but, when i touch another View, whatever, my rotated View is returned to the original position and with no rotation. In some cases i've got to keep the view in the last rotated position, executing:

imgRotate.buildDrawingCache(false);
imgRotate.destroyDrawingCache();

But this option keep freezed my View imgRotate, and after that if i want to move again i have to execute:

imgRotate.buildDrawingCache(true);

Anyway, if i do that last sentence, my View is returned again to the original position.

What am i missing in my code?

Thanks guys!!!

Billyjoker
  • 729
  • 1
  • 10
  • 31
  • what do you want to achieve? – pskink Feb 11 '14 at 11:11
  • These is my desire flow: 1- Translate and rotate imgRotate. OK 2- Draw imgRotate into a Bitmap. OK 3- Share mBitmap with diferent vias (WhatsApp, Line...). OK 4- Keep imgRotate with the final position rotated and translated. NOK – Billyjoker Feb 11 '14 at 11:59
  • see my yesterdays answer for this: http://stackoverflow.com/questions/21633545/android-imageview-scaling-and-translating-issue/21657145#21657145 – pskink Feb 11 '14 at 12:09
  • Thanks @psKink but my point was using the codepanda project... – Billyjoker Feb 17 '14 at 11:38
  • Finally i've got with the solution, as simple as to comment the last line inside the event @onMeasure inside the GestureImageView class as follow: // initialiseImage(); That method obviously reinitiasised my view.... – Billyjoker Feb 17 '14 at 11:41
  • this codepanda doesnt support rotating with pivot between the fingers – pskink Feb 17 '14 at 11:49
  • this codepanda doesnt support rotating with pivot between the fingers – pskink Feb 17 '14 at 11:49
  • "rotation with pivot"...mmmh i do not know exactly what you mean but in fact you can rotate the view by two ways operating with two fingers: 1.One finger static, second one move and rotate the whole View. 2. Each finger at the end of the view and rotate synchronously....i do not guess certainly more ways to rotate a view – Billyjoker Feb 17 '14 at 15:16
  • in both cases the pivot (the point that everything turns around) is not between your fingers but at position (0, 0) – pskink Feb 17 '14 at 15:46

0 Answers0