0

I want to allow users to set some layout parameters in an external file, that will be reloaded each time by the application, and wonder if there's a simple way of doing it.

I don't want to define the entire layout in code, but only some specific parameters. I can extract the parameters from xml to dimens file, but I don't know if there's a way to override this file at runtime. Maybe there's some other ways.

Tamir
  • 625
  • 1
  • 12
  • 27
  • 1
    You can use the `SharedPReferences`. The dimens file(s) **can't be written**. – Phantômaxx Jul 25 '15 at 09:42
  • I need to read the data from external file so SharedPreferences won't help. I can just read values and then override in code the values I read from xml, just wondered if there's any mechanism I can use without writing extra code. – Tamir Jul 25 '15 at 13:02
  • `without writing extra code` **NO**. – Phantômaxx Jul 25 '15 at 13:03

0 Answers0