B4A Class XmlViewEx - Use standard Android Layouts in B4A

Discussion in 'Additional libraries, classes and official updates' started by corwin42, Sep 29, 2015.

  1. corwin42

    corwin42 Expert Licensed User

    This class/library is a simple helper project I need sometimes to load standard Android layout files and access the views in them to set some properties. A common usecase is a preview and configuration activity for a homescreen widget (My example WorldClock widget uses an early version of this class).

    It is provided as an example project. The main module has some example code for testing purposes.
    The XmlViewEx class module contains the useful stuff. You can/should compile it to a library.
    It depends on the Reflection and JavaObject libraries.

    The XmlViewEx module only has the subs I needed so far. It is possible to extend it to access much more properties of views.

    If you extend the class with new useful subs, please post them here so I can add them to the standard project.

    Attached Files:

  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