2

How can I set Styles and Themes to linearlayout, in android programmatically ?

Viju
  • 91
  • 2
  • 6

1 Answers1

0

You can implement it by using a dynamic structure where all the designing info will come from server

  1. For that you have to create a xml having list of themes what names you required to give associated with an id.
  2. Parse xml and show its content to a list then at selection of an item of list save id associated with it in your shared preferences.
  3. Each time when the designing part will be loaded you will send id with it as http://xyz.abc.com/images/menu-images/your_id which will respond you with an image or design info related to that theme id.
  4. To save downloading each time of content indroduce a check that if value saved in preferences then use existing image saved or cached in application.
Marvin Pinto
  • 30,138
  • 7
  • 37
  • 54
ashish.n
  • 1,234
  • 14
  • 30