teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

もひとつf必要だった

2016/01/08 15:13

投稿

swordone
swordone

スコア20675

answer CHANGED
@@ -2,7 +2,7 @@
2
2
  floatとして扱うには、末尾にfを付ける必要があります。
3
3
  ```java
4
4
  public void animation(){
5
- RotateAnimation animation = new RotateAnimation(0,-360,Animation.RELATIVE_TO_SELF,0.5,Animation.RELATIVE_TO_SELF,0.5f);
5
+ RotateAnimation animation = new RotateAnimation(0,-360,Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f);
6
6
 
7
7
  }
8
8
  ```