I want to rotate a needle in an dealer, needle is image view and value comes from server. how to achieve this, i have also used rotation animation but no use. here is my sample code.
needle_img = (ImageView)findViewById(R.id.needleView2);
RotateAnimation rotate = new RotateAnimation(0, 360, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
needle_img.setAnimation(rotate);
rotate.start();
any help will be appreciable