Java Code Examples for android.widget.ImageView.setPivotX()

The following are Jave code examples for showing how to use setPivotX() of the android.widget.ImageView class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: BrotherWeather   File: CustomRefreshLayout.java   Source Code and License Vote up 5 votes
private void rotateImageView(ImageView imageView, float spend) {
  imageView.setPivotX(imageView.getWidth() / 2);
  imageView.setPivotY(imageView.getHeight() / 2);
  imageView.setRotation(spend / mHeaderViewPadding * 180);
}
 
Example 2
Project: BrotherWeather   File: CustomRefreshLayout2.java   Source Code and License Vote up 5 votes
private void rotateImageView(ImageView imageView, float spend) {
  imageView.setPivotX(imageView.getWidth() / 2);
  imageView.setPivotY(imageView.getHeight() / 2);
  imageView.setRotation(spend / mHeaderViewPadding * 180);
}