Just wanted to mention, that is my style for custom dialog classes, I
go about this a different way for extending Activity.... Simply set
your activity theme to translucent in the manifest
<activity android:name=".activity.RenameLabelActivity"
android:theme="@android:style/Theme.Translucent">
</activity>
Then you can simply define a background (9 patch) for the top most
layout object in your layout xml file. Works very well. Then you can
blur or dim behind in your code....
//getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
WindowManager.LayoutParams lpWindow = new WindowManager.LayoutParams
();
lpWindow.flags = WindowManager.LayoutParams.FLAG_DIM_BEHIND;
lpWindow.dimAmount = 0.75f;
lpWindow.windowAnimations = android.R.anim.accelerate_interpolator |
android.R.anim.fade_in | android.R.anim.fade_out;
getWindow().setAttributes(lpWindow);
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
-~----------~----~----~----~------~----~------~--~---