Seekbar not showing in layout editor

Discussion in 'Application Development' started by Ridiculous, Sep 29, 2010.

  1. Ridiculous

    Ridiculous New Member
    5

    Sep 29, 2010
    1
    0
    5
    Hello folks, I have a problem.
    I had a SeekBar, and everything was ok. But then I moved some of it's attributes to a style and gave the SeekBar that style.
    and now it doesn't show up in the layout designer, although the AVD emulator and my android phone display it just fine.
    Can anyone tell me what am I doing wrong?

    (I'm using Eclipse 3.5 with ADT 0.9.9 BTW.)

    This is the relevant part of the layout code:
    Code (Text):
    1.     <RelativeLayout android:id="@+id/RelativeLayout01"
    2.         style="@style/edit_alarm_segment"
    3.         android:layout_width="wrap_content"
    4.         android:layout_height="wrap_content">
    5.  
    6.         <! -- some irrelevant stuff -->
    7.  
    8.         <SeekBar android:id="@+id/ea_radius"
    9.             style="@style/seek_bar"
    10.             android:layout_below="@+id/TextView05"/>
    11.            
    12.     </RelativeLayout>
    And this is the relevant part of the style code:
    Code (Text):
    1.     <style name="seek_bar">
    2.         <item name="android:paddingLeft">10dp</item>
    3.         <item name="android:paddingRight">10dp</item>
    4.         <item name="android:layout_height">wrap_content</item>
    5.         <item name="android:layout_width">fill_parent</item>
    6.     </style>
     

    Advertisement

Share This Page

Loading...