Android Question Execute Code at runtime. Is this possible?

Discussion in 'Android Questions' started by Gianni Sassanelli, Aug 5, 2019.

  1. Gianni Sassanelli

    Gianni Sassanelli Active Member Licensed User

    i need to customize some user experience of view
    For examble RowHeight, User Color and other

    I have thinked to insert a list of commands in a memo field and run it at runtime.
    Is this possible?
    An example of memo is the following
    Dim LaySetting as String
    LaySetting = 
        txtBarcode.Color         = Colors.RGB(255,192,128)
        txtBarcode.TextSize = 20
    On activity_create event
    i need scan memo field and execute each command line
  2. MarkusR

    MarkusR Well-Known Member Licensed User

    maybe its more like
    txtBarcode.Color = RequestCustom("BarcodeColor")
    txtBarcode.TextSize = RequestCustom("BarcodeSize")

    this sub RequestCustom can use a setting file or database request.
    the config data can be json string or something that can be easy read.
    Erel, Kiffi and Gianni Sassanelli like this.
  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