Android Tutorial Create online theme

Discussion in 'Tutorials & Examples' started by omidaghakhani1368, May 30, 2015.

  1. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

    Hi,
    I found a site that create style and theme for your app.
    You can select color and views and android sdk and other
    It return res folder for you that can use in your app.
    For use theme in your project :
    SetApplicationAttribute(android:theme, "@android:style/themename")

    http://android-holo-colors.com/
     
    iz0ndg, amir lotfi, eSolution and 9 others like this.
  2. Jeboiii

    Jeboiii Member Licensed User

    It's not working. Did I miss something? SetApplicationAttribute(android:theme, "@android:style/MyAppTheme")
    Here's the error message:

    AndroidManifest.xml:14: error: Error: No resource found that matches the given name (at 'theme' with value '@android:style/MyAppTheme').
     
  3. ac9ts

    ac9ts Active Member Licensed User

    It's a guess but removing "android:" fixed a similar problem I had with a different theme issue.

    Code:
    SetApplicationAttribute(android:theme, "@style/MyAppTheme")
     
  4. Jeboiii

    Jeboiii Member Licensed User

    Thanks!
     
  5. fabjj77

    fabjj77 New Member Licensed User

    hi
    listen where i have to put res folder than i download from the website that you post before?
    i custom theme i apply a my custom name at theme, also i download a zip file
    inside zip file res folder.
    so i try to put everywhere but not work
    also i set SetApplicationAttribute(android:theme, "@android:style/themename")
    but nothing
    please can you help me?
     
Loading...
  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