Tek, sorry to bother you, but I'm trying to use your second method with the 9 patch. I have myself a 9 patch and it is in my drawable/ mywindow.9.png I added that as a background to my root node in layout/main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="294dp" android:layout_height="72dp" android:orientation="horizontal" android:background="@drawable/mywindow"> But now i still have the ugly title bar at the top, which I just want to remove, and how can I change the vertical alignment to be in the middle of the screen? Thanks for your help thus far Mike On May 31, 4:35 pm, tek <tek.bas...@gmail.com> wrote: > 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 <maldwo...@gmail.com> 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 <jude...@gmail.com> wrote: > > > > It seems at core/res/style.xml > > > > Best Regards > > > > Eric Chen > > > > On Sun, May 31, 2009 at 8:01 PM, tek <tek.bas...@gmail.com> 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 <maldwo...@gmail.com> 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 android-framework@googlegroups.com To unsubscribe from this group, send email to android-framework+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---