2010-12-14 1 views
3

私はAndroid開発の初心者ですが、現在はApiDemosプロジェクトでRotate3dAnimationというファイルを使って3Dアニメーションを勉強しています。このクラスはイメージを逆順に表示しますが、イメージを実際の順序で表示するためにこのコントロールを表示しようとしていますが、不運が続きます。画像を逆順に表示する行を教えてください。Android ApiDemos - Rotate3dAnimation

おかげで、 シャン

答えて

3

答えはあなたにapplyed回転を変更する簡単です:

applyRotation(-1、0、90);およびapplyRotation(1,0、90)。私は古い実装をコメントアウトしまし

 if (mPosition > -1) { 
      mStartView.setVisibility(View.GONE); 
      mEndView.setVisibility(View.VISIBLE); 
      mEndView.requestFocus(); 

      //rotation = new Rotate3dAnimation(90, 180, centerX, centerY, 310.0f, false); 
      rotation = new Rotate3dAnimation(-90, 0, centerX, centerY, 310.0f, false); 
     } else { 
      mEndView.setVisibility(View.GONE); 
      mStartView.setVisibility(View.VISIBLE); 
      mStartView.requestFocus(); 

      rotation = new Rotate3dAnimation(-90, 0, centerX, centerY, 310.0f, false); 
      //rotation = new Rotate3dAnimation(90, 0, centerX, centerY, 310.0f, false); 
     } 

:あなたが最初にそれを呼び出すと、あなたは後半のためにそれを呼び出すときに、以下の使用時に

この

です。

関連する問題