質問編集履歴

3

簡略化しました

2016/07/26 00:11

投稿

tanaka201011
tanaka201011

スコア10

test CHANGED
File without changes
test CHANGED
@@ -1,51 +1 @@
1
- android tween アニメを学んでますが、Transelateで四角形のような動きができたのですが、この動きを10回Repeat したいのですが、どのうに書き換えればよいですかぜひ教えてください。よろしくです
1
+ android アニメを学んでますが、四角形のような動きができたのですが、この動きを10回Repeat したいのですがよろしく。
2
-
3
- いくつかの回答をもらいましたが、正確に機能しませんので、他の回答案を待ってます。よろしく。
4
-
5
- <translate
6
-
7
- android:duration="800"
8
-
9
- android:fillAfter="true"
10
-
11
- android:fromXDelta="0%p"
12
-
13
- android:startOffset="300"
14
-
15
- android:toXDelta="75%p" />
16
-
17
- <translate
18
-
19
- android:duration="800"
20
-
21
- android:fillAfter="true"
22
-
23
- android:fromYDelta="0%p"
24
-
25
- android:startOffset="1100"
26
-
27
- android:toYDelta="70%p" />
28
-
29
- <translate
30
-
31
- android:duration="800"
32
-
33
- android:fillAfter="true"
34
-
35
- android:fromXDelta="0%p"
36
-
37
- android:startOffset="1900"
38
-
39
- android:toXDelta="-75%p" />
40
-
41
- <translate
42
-
43
- android:duration="800"
44
-
45
- android:fillAfter="true"
46
-
47
- android:fromYDelta="0%p"
48
-
49
- android:startOffset="2700"
50
-
51
- android:toYDelta="-70%p" />

2

まだ解決していない事。

2016/07/26 00:11

投稿

tanaka201011
tanaka201011

スコア10

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  android tween アニメを学んでますが、Transelateで四角形のような動きができたのですが、この動きを10回Repeat したいのですが、どのように書き換えればよいですかぜひ教えてください。よろしくです。
2
2
 
3
-
3
+ いくつかの回答をもらいましたが、正確に機能しませんので、他の回答案を待ってます。よろしく。
4
4
 
5
5
  <translate
6
6
 

1

反復方法を知りたく追加

2016/07/23 01:56

投稿

tanaka201011
tanaka201011

スコア10

test CHANGED
@@ -1 +1 @@
1
- アンドロイド tween animation translateについて連続動き方法
1
+ アンドロイド tween animation translateについて連続性と反復の動き
test CHANGED
@@ -1,43 +1,51 @@
1
- android tween アニメを学んでますが、Transelate 画像を左右にかすことはできたのですが、四角形ような動きをしたく思考てしばらたちます。検索しても参考になる資料が見当たりません。
1
+ android tween アニメを学んでますが、Transelateで四角形のようなきができたのですが、の動きを10回Repeat したいのですが、どのように書き換えればよいですかぜひ教えてださい。よろしくす。
2
-
3
- たとえば、アンドロイドアイコンの画像をまず、水平に左から右へ動かし、次に下へ、次に左へ、そして上へと、元の位置に戻る感じです。連続したシークエンスを使うと思うのですが、どうすればよいかわかりません。ヘルプをよろしくお願いしまう。
4
2
 
5
3
 
6
4
 
7
- res>anim>comb(連続のために新しく作成したxml) のなかで以下のコードを書いてますが機能しません。ただしひとつだけの <translateだと機能するのですが?
5
+ <translate
8
6
 
7
+ android:duration="800"
9
8
 
9
+ android:fillAfter="true"
10
10
 
11
- <set xmlns:android="http://schemas.android.com/apk/res/android">
11
+ android:fromXDelta="0%p"
12
12
 
13
- <translate
13
+ android:startOffset="300"
14
14
 
15
- android:fromYDelta="0%p"
15
+ android:toXDelta="75%p" />
16
16
 
17
- android:fromXDelta="0%p"
17
+ <translate
18
18
 
19
- android:toYDelta="0%p"
19
+ android:duration="800"
20
20
 
21
- android:toXDelta="90%p"
21
+ android:fillAfter="true"
22
22
 
23
- android:repeatCount="1"
23
+ android:fromYDelta="0%p"
24
24
 
25
- android:duration="3000"/>
25
+ android:startOffset="1100"
26
26
 
27
- <translate
27
+ android:toYDelta="70%p" />
28
28
 
29
- android:fromYDelta="0%p"
29
+ <translate
30
30
 
31
- android:fromXDelta="90%p"
31
+ android:duration="800"
32
32
 
33
- android:toYDelta="90%p"
33
+ android:fillAfter="true"
34
34
 
35
- android:toXDelta="90%p"
35
+ android:fromXDelta="0%p"
36
36
 
37
- android:repeatCount="1"
37
+ android:startOffset="1900"
38
38
 
39
- android:startOffset="3000"
39
+ android:toXDelta="-75%p" />
40
40
 
41
- android:duration="3000"/>
41
+ <translate
42
42
 
43
+ android:duration="800"
44
+
43
- </set>
45
+ android:fillAfter="true"
46
+
47
+ android:fromYDelta="0%p"
48
+
49
+ android:startOffset="2700"
50
+
51
+ android:toYDelta="-70%p" />