Hi TrianguloY

Hi TrianguloY

is it possible to have some bindings for creating battery widget like that ?

https://lh4.ggpht.com/jW67cubo49BeRmCvTX1p3LnFGCCJFkn_t5cJrKjr_hsDAwL24cyp_Za6lyJ1aXFp4vo=h900-rw

the picture is from Gauge Battery widget

trying to have LLx without any external widget

I think it’s very easy for the hand but need help for displaying (or not) % and the main img (BG)

https://lh4.ggpht.com/jW67cubo49BeRmCvTX1p3LnFGCCJFkn_t5cJrKjr_hsDAwL24cyp_Za6lyJ1aXFp4vo=h900-rw
]]>

15 Commentsto Hi TrianguloY

  1. Anonymous says:

    < ![CDATA[

    I know I can do it easily with 3 items but really if 1 item it will be even better

    ]]>

  2. Anonymous says:

    < ![CDATA[

    If it’s only the angle of the needle that changes along with the text percentage it could be done with two items: one for the background and text and one for the needle.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    yes but looking if possible with only 1 item 🙂

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Bruno-Isa LAMOUR-ARNOULD I don’t think it is. I’m pretty sure rotation is only supported on the item itself not its contents meaning you need an item to rotate and another to stay level.



    Probably a way to do it with scripts and a custom view but I have no idea what I’m doing when it comes to that. 

    ]]>

  5. Anonymous says:

    < ![CDATA[

    TrianguloY is making miracles here

    ]]>

  6. Anonymous says:

    < ![CDATA[

    There is a way (with lightning there is almost always a way! ) but not what James is thinking.


    The way is to simply draw the thing as the background of the item, like my battery binding. Unfortunately making a customizable one will make it so long that I prefer not to do it, sorry.


    Choose one (from the picture or not) and I’ll try to make it. You can always read it and make changes yourself.

    ]]>

  7. Anonymous says:

    < ![CDATA[

    TrianguloY Your battery binding? Do you have a link to that?

    ]]>

  8. Anonymous says:

    < ![CDATA[

    James Coyle sorry James, I meant the analog clock binding (https://plus.google.com/105066926163073195690/posts/AnDFCcahtZa)


    I said battery because I think Bruno used the clock as so.

    ]]>

  9. Anonymous says:

    < ![CDATA[

    TrianguloY Ah. Didn’t realize you could generate images like that. How resource intensive is that? 

    ]]>

  10. Anonymous says:

    < ![CDATA[

    Not really sure. It is not as intensive as creating new images (it is only drawing) but I can’t tell how much.


    Pierre Hébert​?

    ]]>

  11. Anonymous says:

    < ![CDATA[

    TrianguloY the first one ,please

    ]]>

  12. Anonymous says:

    < ![CDATA[

    TrianguloY could you add a PNG for charging ?

    ]]>

  13. Anonymous says:

    < ![CDATA[

    It’s quite cheap performance wise because the image is only created once, then reused (although copies may happen). Time to render the image will then mostly depends on drawing instructions. 

    ]]>

  14. Anonymous says:

    < ![CDATA[

    I would say, use the JavaScript-widget itself in a webView; if you want the exact thing.


    You can communicate values from LL to the view via the item.tag


    This is Ofcourse way more battery/resource expensive.

    ]]>

  15. Anonymous says:

    < ![CDATA[

    Jappie Toutenhoofd good idea


    Trying to have main widgets from LL

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *