Pierre Hébert​ would you please provide some sample code using getRootView to modify the hierarchy?

Pierre Hébert​ would you please provide some sample code using getRootView to modify the hierarchy? Because I am not able to change anything of these views via script.

]]>

6 Commentsto Pierre Hébert​ would you please provide some sample code using getRootView to modify the hierarchy?

  1. Anonymous says:

    < ![CDATA[

    Do you mean adding or removing view, or changing properties ?


    There are quite a lot of properties that cannot be set because they are handled by the container (visibility, position, layout params). Adding views is somewhat not possible since the hierarchy is made of single child view groups (for instance the “BoxLayout” can only manage one child).

    ]]>

  2. Anonymous says:

    < ![CDATA[

    I tried to open the LLX apk, but you obfucated everything, even the layout files…. Maybe just give us the (xml) files to see the structure, etc ?

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Layout files are not obfuscated, there are encoded using to be used by the Android xml pull/push parser for best efficiency, you need a tool to reformat code.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Also you wont see a layout file for items view since they are built with code only.

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Pierre Hébert I even tried to replace a view, but that didn’t work either.

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Lukas Morawietz I think I will create a new item type “Custom view”. That’s the only way to handle things cleanly.It will have a hook to create the view through script, maybe other specific hooks (destroy, anything else?).


    (this is yet another pandora box…)

    ]]>

Leave a Reply

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