android-animation

    0熱度

    1回答

    所以我試圖用ValueAnimator動畫從100值爲0這樣 animator = ValueAnimator.ofInt((int) expansion * 100, targetExpansion * 100); animator.setInterpolator(interpolator); animator.setDuration(duration); animator.addUpd

    0熱度

    1回答

    我是新來的動畫在android(和一般),我使用庫RichPath,事情是,我想要的SVG的邊界線動畫,然後填充顏色。 它的動畫不錯,但我覺得我的SVG需要別的東西,因爲它只是在做外邊框,然後填寫,我做了它在Inkscape的基於文本: 期望: 我asuming這是一些有關的,因爲代碼的微調路徑動畫: RichPathAnimator.animate(svg) .trimPathEn

    0熱度

    1回答

    我想點擊一個按鈕,一個按鈕就會變成對話框,就像圖片一樣。我不知道如何做到這一點。 picture

    1熱度

    1回答

    我想使用TransitionDrawable類製作動畫,但需要單獨的文件transition.xml。在那裏我定義了我改變的圖像。 我需要在Java代碼中定義它們,因爲我不知道我將更改哪些圖像。我有很多圖像,我不小心只會得到兩個圖像,這兩個圖像會相互變化。我能做什麼?也許我需要另一堂課。 代碼transition.xml: public class TransitionActivity exten

    0熱度

    1回答

    我試圖通過動畫顯示給用戶的字符的行或路徑來顯示我的Android應用程序中插圖的導出SVG文件的動畫效果(例如:日文&漢字)。但是當我運行該應用程序時,它只會動畫角色的邊緣/中風並恢復到原始狀態。有沒有人曾經遇到過這種情況? 這裏是我的SVG繪製 <vector xmlns:android="http://schemas.android.com/apk/res/android" andr

    0熱度

    1回答

    我可以看到點擊按鈕時的動畫在onClick方法中的東西完成後開始,並且是想知道這是Android錯誤還是正常行爲?。我可以找到幾個帖子(this one e.g.)關於搜索動畫結束後如何開始的東西的人,所以我並不孤單,我想,但是我不認爲這是邏輯的所有?

    0熱度

    2回答

    我嘗試ValueAnimator但我無法設置多個屬性。 ValueAnimator animate = ValueAnimator.ofInt(leftO, left, topO, top, rightO, right, bottomO, bottom); animate.setDuration(250); animate.addUpdateListener(new Value

    1熱度

    1回答

    我正在按照下面的教程添加五彩紙屑。 final KonfettiView konfettiView = (KonfettiView)findViewById(viewKonfetti); konfettiView.build() .addColors(Color.RED, Color.GREEN) .setSpeed(1f, 5f)

    0熱度

    1回答

    我有一個圖像。我需要它在左下角旋轉一個小角度。當我點擊屏幕時,此動畫可以工作。圖像出現在那裏並旋轉。但對於不同的職位,這個關鍵是不變的。我怎樣才能以編程方式動態設置每個案例的樞紐? ?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" a

    5熱度

    1回答

    我有一個漫畫家,infinite_rotation,定義爲: <set xmlns:android="http://schemas.android.com/apk/res/android"> <objectAnimator android:propertyName="rotation" android:repeatCount="infinite" an