1. Are you ready for the Galaxy S20? Here is everything we know so far!

Styles

Discussion in 'Android Development' started by ArchanaHithesh, Apr 11, 2012.

  1. ArchanaHithesh

    Thread Starter

    Hi,


    I am fresh into android development i want to know how to add styles and theam into app through library, i referred a link styling in android,"http://blog.stylingandroid.com/archives/537", and i am running into errors,

    "com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup
    Couldn't find theme resource attr/vpiTabPageIndicatorStyle for the current theme
    Couldn't find theme resource attr/vpiTabTextStyle for the current theme
    Exception details are logged in Window > Show View > Error Log
    The following classes could not be found:
    - com.viewpagerindicator.TabPageIndicator$TabView (Fix Build Path, Edit XML, Create Class)"

    Please help me ,thank in advance.....
     



    1. Download the Forums for Android™ app!


      Download

       
  2. alostpacket

    alostpacket Over Macho Grande?

    are you using r17 of the SDK?

    They changed the way libraries (.jars) worked in r17

    Libraries in SDK 17 - android - Stack Overflow

    Also can you post some code/XML?


    Finally I might recommend avoiding styles and themes when you are just learning and just doing the graphics and stuff in the layout XML

    Themes are trickier than they seem.
     
Loading...
Similar Threads - Styles
  1. Rgarner
    Replies:
    9
    Views:
    1,813
  2. Alex FHN
    Replies:
    6
    Views:
    1,069
  3. catdog123555
    Replies:
    0
    Views:
    1,902
  4. developer Sout
    Replies:
    7
    Views:
    5,995
  5. Milo Williamson
    Replies:
    1
    Views:
    1,177
  6. Lane Lester
    Replies:
    7
    Views:
    785
  7. App Update
    Replies:
    0
    Views:
    543
  8. marieamana
    Replies:
    0
    Views:
    732
  9. frappydan
    Replies:
    0
    Views:
    1,780
  10. Samsung
    Replies:
    0
    Views:
    1,144

Share This Page

Loading...