Here is what you want I believe, notice the inheritance from the
parent.
<resources>
    <style name="Theme.CustomDialog" parent="android:style/
Theme.Dialog">
                <item name="android:windowIsFloating">true</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:padding">10dp</item>
        <item name="android:backgroundDimAmount">0</item>
        <!--<item name="android:windowBackground">@drawable/
filled_box</item>-->
    </style>
</resources>

The drawable is commented out, it will take the parents drawable....
the custom drawable should be a 9 patch if you want to incorporate
that part

I think you already know, just an FYI, this would go in to a
styles.xml file under res/values


On May 31, 9:34 am, mike <[email protected]> wrote:
> Ugh, so I have to download the source code to get at these? quite a
> pain...
>
> On May 31, 8:37 am, Eric Chen <[email protected]> wrote:
>
> > It seems at core/res/style.xml
>
> > Best Regards
>
> > Eric Chen
>
> > On Sun, May 31, 2009 at 8:01 PM, tek <[email protected]> wrote:
>
> > > What is it you are trying to acheive? Reason I ask is I've found you
> > > can do a lot more using 9 patch png files backed by a basic style
> > > theme. I have examples if you can tell me more about what you are
> > > trying to achieve.
>
> > > Regards.
>
> > > On May 31, 12:53 am, mike <[email protected]> wrote:
> > > > I was basically creating a custom Dialog.Theme, and inheriting from
> > > > the parent. I used the help herehttp://
> > > developer.android.com/guide/topics/ui/themes.html#inTheManifest
> > > > and was able to add the style as a parent in the styles.xml. However I
> > > > got to the point where I had:
>
> > > > <?xml version="1.0" encoding="utf-8"?>
> > > > <resources>
> > > >   <style name="Theme.CustomDialog" parent="@android:style/
> > > > Theme.Dialog">
> > > >     <item name=""></item>
> > > >         </style>
> > > > </resources>
>
> > > > and then it hit me, I don't know what name attributes I can use to
> > > > apply or modifty to Theme.Dialog. I know there has to be some but I
> > > > couldn't find any. I eventually found some guy's post with these
>
> > > > <item name="android:windowNoTitle">true</item>
> > > >     <item name="android:windowIsFloating">true</item>
> > > >         <item name="android:windowNoTitle">true</item>
> > > >         <item name="android:padding">10dp</item>
> > > >         <item name="android:backgroundDimAmount">0</item>
> > > >         <item name="android:shadowColor">#000000</item>
> > > >         <item name="android:shadowRadius">5</item>
>
> > > > My question is, Are there more? Where can I find a listing of the
> > > > available attributes that I can edit from the Theme.Dialog?
>
> > > > Thanks,
>
> > > > Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to