How to generate 5 Image objects or Buttons using code (maybe Java) in Tasker?

Discussion in 'Tasker Guides / Examples / Ideas Forum' started by darkpixie, Oct 8, 2017.

  1. darkpixie

    darkpixie New Member

    Oct 8, 2017
    Likes Received:
    When creating for example image by code, there is some code snippet inside. I wanted to replace the x position in there with variable PosX, which I would like to set beforehand. Unfortunately the code does not recognize nested variables.

    What I wanted to achieve is some kind of a line made from images in form of rectangles automatically after I click the button or start a task.

    I would like to set the distance between rectangles as well as their size, but Tasker is so mysterious with the nested Java code for image and variable PosX and PosY don't work inside.

    Any ideas? Thanks.
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Feb 3, 2015
    Likes Received:
    Do you mean in a scene? If you're willing to go into Java code I suggest you whip up a quick web screen to do that or use one of the presets :)

Share This Page