Advanced

Complex Animation

Complex Animation #

A complex animation is similar to CSS3, within any point of the transition from 0% (start) to 100% (end) you can have a property set to a value, Kustom will then move smoothly to that. So if you say that X should be at 100 at position 50 Kustom will move by 100 in the first half of the animation then stop.

Lets start with an example, lets say you want to:

...

Resources (kfile)

Kustom resources #

As you might notice when you start using formulas for Bitmaps or other type of objects you might realize that Kustom refers internally to resources using the form kfile://provider/path, this is the internal URL scheme for looking up local and remote files.

The provider represents the “source” and can be of two different types:

  • Relative: when source is not known and Kustom has to look it up, a relative provider is always “org.kustom.provider”, this is the default when you export a preset and it will tell Kustom to search all available sources for a given preset and search for “path”
  • Absolute: when source is known, this can generaly be
    • A provider from an APK pack (their content provider)
    • Kustom own provider (so for KWGT org.kustom.widget.provider)
    • The SD card provider (starts with SDxx)
    • The internal storage provider (starts with storage)

Please never hardcode a provider in a KFile, always use the relative path if you need to reference files manually

...

Send a message to Kustom from the internet

Send a message to Kustom via HTTP POST #

Starting from version 3.70 you can send variables from the Internet directly to Kustom via HTTP POST. This could be useful in many situations like:

...

SVG Paths in Shapes

Shapes path #

From version 3.73 onwards users can use custom SVG paths in Shapes, just add a Shape module and select “Path” as type. This powerful feature allows creating your own shapes while maintaining all the great functionalities of Shapes, such as gradients, masks, and bitmaps. Furthermore, formulas can be used inside the path definition, offering even more customization options! You could use this to generate a graph for example.

...




Privacy Policy