Android Question Animated SVG View (json?)

Discussion in 'Android Questions' started by victormedranop, Jul 26, 2019.

  1. victormedranop

    victormedranop Well-Known Member Licensed User

  2. DonManfred

    DonManfred Expert Licensed User

    The library needs the data in a specific format.
    You can use json or xml and convert the data from the json/xml in the correct format for the library.... It is up to you.

    The library does not provide a direct method for json and xml. At least as far as i can tell after looking at the example code.

    Edit: There is no single mention of xml or json on the Github-project site too...


    Code:
    asvgv5.GlyphStrings = Array As String("M481,452.9c0,15.5-12.6,28.1-28.1,28.1H59.1C43.6,481,31,468.4,31,452.9V59.1C31,43.6,43.6,31,59.1,31h393.8c15.5,0,28.1,12.6,28.1,28.1V452.9z", _
                  
    "M256.4,397.8l-0.1-0.1l-119.9-71.4v-115l0,0l120.4,64.2l0,0l0.1,0l0,0V398l0,0l-0.1-0.1L256.4,397.8z", _
                  
    "M375.7,211.3l-118.8,64.3V398l118.8-71.9L375.7,211.3L375.7,211.3z", _
                  
    "M375.7,211.3v84.2L312.3,328l-55.5-52.4v0L375.7,211.3L375.7,211.3z", _
                  
    "M433.3,244.4L375.7,274l-64,32.9l-54.8-31.3v0l118.8-64.3l0,0L433.3,244.4z", _
                  
    "M255.2,147l120.5,64.3l0,0l54.5-31.3l-54.5-30.7l-63-35.4L255.2,147L255.2,147L255.2,147L255.2,147z", _
                  
    "M78.6,178.3l57.6-29.6l64-32.9l54.8,31.3v0l-118.8,64.3l0,0L78.6,178.3z", _
                  
    "M255.1,147l1.8,128.7l-0.1,0l-120.5-64.3L255.1,147z", _
                  
    "M256.9,275.7L256.9,275.7L255.1,147l0,0l0.1,0l120.5,64.3L256.9,275.7z", _
                  
    "M256.9,275.7V350l-91-48.6l9.6-6.1l23.8,13.4L256.9,275.7L256.9,275.7z", _
                  
    "M256.8,275.6L256.8,275.6l-0.1,122.3l0.2,0.1L256.8,275.6L256.8,275.6z", _
                  
    "M256.8,275.6l-120.5-64.3l0,0l-54.5,31.3l54.5,30.7l63,35.4L256.8,275.6L256.8,275.6L256.8,275.6L256.8,275.6z")
        asvgv5.FillColors = 
    Array As Int(0xFF41A4C40xFFD955450xFFC54C3F0xFFAA44380xFFF4F3EE0xFFF4F3EE0xFFF4F3EE0xFFD2D1CC0xFFDCDAD60xFFC54C3F0xFFD955450xFFF4F3EE)
     
    Last edited: Jul 26, 2019
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice