Tuesday, October 20, 2015

// //

Implementing users choice theme/apply theme to all activity programmatically

Hi everyone, are many of you having problems in implementing user choice theme? well we solve it today because i will show you on how are you going to solve it..:)

Ok, heres the code:

in my styles.xml i have 4 themes:



 
    
   

    
    
   
   
    

     
   
   
    

    
The appbasetheme is my parent theme.

Note: please dont be shock if you find errors because you have to provide your own photo.

And then in resources folder, make a new folder and named it xml.
inside the xml folder, create xml file and named it settings.

In settings.xml heres the code:


  

    
        
     
    
    
      




And then add this string array in your strings.xml
 
        Africa
       
          Colorful Beach
          Abstract
        Default
        
    


Continue: Implementing users choice theme/apply theme to all activity programmatically Part 2