Custom theme dialog : transparent background

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Postby FreakDev » Tue Nov 17, 2009 9:43 am

i'll (re)test... but it didn't work yesterday...
FreakDev
Junior Developer
Junior Developer
 
Posts: 12
Joined: Sun Nov 15, 2009 3:42 pm

Top

Postby FreakDev » Wed Nov 18, 2009 1:06 am

i finally found a solution (partial)

here is the theme i use :
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <style name="Theme" parent="android:Theme"></style>
  3.  
  4.  
  5.  
  6. <style name="Theme.Transparent">
  7.  
  8.         <item name="android:windowIsTranslucent">true</item>
  9.  
  10.         <item name="android:windowBackground">@color/transparent</item>    
  11.  
  12.         <item name="android:windowNoTitle">true</item>
  13.  
  14.         <item name="android:windowIsFloating">true</item>
  15.  
  16.         <item name="android:backgroundDimEnabled">false</item>
  17.  
  18. </style>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4


but i still have a little black bar, don't know where does it come...
Attachments
screenshot.png
screenshot.png (79.79 KiB) Viewed 1190 times
FreakDev
Junior Developer
Junior Developer
 
Posts: 12
Joined: Sun Nov 15, 2009 3:42 pm

Postby markww » Wed Nov 18, 2009 1:12 am

Ah that top graphic is probably like the windowFrame attribute or whatever, see I wanted the cool fade to dark effect the default dialog has so that works for me.

What I did was just look at the master theme file at the project source - I think you can look at the PanelLight theme because that one also has a completely transparent background, check it out:

http://android.git.kernel.org/?p=platfo ... 43;hb=HEAD
markww
Freshman
Freshman
 
Posts: 9
Joined: Sun Feb 24, 2008 7:36 am

Postby FreakDev » Wed Nov 18, 2009 1:25 am

Thanks for the link, i'll take a look at it.
For the black background, just remove the backgroundDimEnabled item (that was just for the screenshot)

Edit : I found which attribute is responcible for the little black line. it is the "android:windowContentOverlay" attribute which I set to "@null", and the result is perfect either on the emulator or on the real phone :)

thanks for your advice and help ;)
FreakDev
Junior Developer
Junior Developer
 
Posts: 12
Joined: Sun Nov 15, 2009 3:42 pm

Top
Previous

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests