2017-01-06 56 views
0

我有一個包含動畫標籤的svg文件,用於網頁中的動畫。如何在android Splash Screen中使用帶有動畫taf的SVG文件

我試着將文件導入Android Studio,但不支持動畫標籤。

我試過尋找庫,但是我發現的所有庫都只有使用路徑數據繪製svg文件的功能。我的動畫不僅僅是繪製路徑。我想要像在網頁中一樣動畫。

我讀過AnimatedVectorDrawable可以使用的一些文章,但它在文檔中說它可以用來將一個形狀轉換成另一個。我不想那樣。

我有svg文件與動畫的開始。如果我可以想出在android中使用這種方式,我的團隊準備以相同的格式準備整個動畫。

由於字數限制,我無法上傳完整文件,但我刪除了svg文件的某些部分並上傳了。

<?xml version="1.0" encoding="utf-8"?> 
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> 
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> 
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="750px" 
    height="750px" viewBox="0 0 750 750" enable-background="new 0 0 750 750" xml:space="preserve"> 
<g id="Layer_1"> 

     <image overflow="visible" width="102" height="157" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAACdCAYAAAExjT0uAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAK 
T2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AU 
kSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXX 
Pues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgAB 
eNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAt 
AGAnf+bTAICd+Jl7A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Iohfjo6/a84EIUdHtHlbYEtsKqm4QBvCQM1o9HjxT/bEvI9fnS2gP5HE 
s8VxvJyX0nO4RYoII5Vq13Olyg0zvbEpO6MZ6HEFrnIkQGZGUrEVMCLGy7rWuC7X/pev7e7/66Pl 
qV9d1bTmDiM0ZrWEJgvO7fqWEgWaKmQxRc72s3 
Fjo+8EK5Uk0qa93lXSlgOt3oBJOIELJJnPWrbzWaMdCW+pd3Dm7+8GQ9CI9VJqDXAVlZYDpcFwDg 
SInfjJ27OWnbf7Uxlf7067v6kbQsjPq19V1ahbU+a3mNrvWRvmt0/f8AzPzlCkGC41sAAAAASUVO 
RK5CYII=" transform="matrix(0.72 0 0 0.72 338 318)"> 

    </image> 

    <animate id="Layer_1" 
      attributeName="opacity" 
      from="0" to="1" dur="1s" 
      begin="0s;animation2.end" /> 
    <animate id="Layer_1" 
      attributeName="opacity" 
      from="1" to="0" dur="1s" 
      begin="animation1.end" /> 

</g> 

<g id="Layer_2" opacity="0"> 

     <image overflow="visible" width="138" height="184" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIoAAAC4CAYAAAFLMkRUAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAK 
T2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AU 
kSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXX 
Pues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgAB 
eNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAt 
AGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3 
AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88Su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2zY8K8oZvmjB27K/W3TyzTU3pELco9+98MX//wQ8OjR6eu/HLF4/7j3+Y 
P6tOTZ8CRUkpRercYyUFipICRUmBopSJ+v8BAN+fiyUrEY21AAAAAElFTkSuQmCC" transform="matrix(0.72 0 0 0.72 288.3198 279)"> 

    </image> 

    <animate id="Layer_2" 
      attributeName="opacity" 
      from="0" to="1" dur="2s" 
      begin="1s" fill="freeze"/> 
    </g> 

</svg> 

回答

0

看來你有你的SVG文件中.png圖像,而不是載體。因此,您可以嘗試將png圖像分割爲幾個單獨的ImageView s並將這些圖像應用於這些ImageView s。

+0

我收到了同事的同樣建議,但我希望有一個更簡單的方法可以做到這一點...沒有其他方法嗎?沒有任何圖書館可以幫助我實現這一目標嗎?你提到的過程需要時間,因爲我的動畫有點大。因此,只有在開始之前,我確定沒有第三方實現來實現我的任務... –

+0

其他方法 - 將'svg'中的位圖轉換爲向量,但它更復雜。 –

+0

好的謝謝。我會嘗試你告訴的第一種方法。謝謝 –

相關問題