In my android application I used umano`s sliding up panel (Click here)
I am tring to twist(rotate) ImageView as in the picture below. The changes of ImageView depends on how far panel opened. Is it possible to twist(rotate) ImageView by sliding of panel?
Here is the method in which slideOffset shows how much panel was opened but I dont know how to correctly use it in my case to rotate the ImageView. By the way I used slideOffset for change the color gradually by sliding panel.
@Override
public void onPanelSlide(View panel, float slideOffset) {
Log.i(TAG, "onPanelSlide, offset " + slideOffset);
//Here is the code which change titleBar color gradually
titleBar.setBackgroundColor((int) colorEvaluator.evaluate(slideOffset, Color.parseColor("#03A9F4"), Color.parseColor("#F44336")));
}
Thanks for any help!