Android :: Transparent Background
Jun 24, 2010How can i make the background 50% transparent? Let's say the background of an AbsoluteLayout so it's dark but you can still see through it?
View 1 RepliesHow can i make the background 50% transparent? Let's say the background of an AbsoluteLayout so it's dark but you can still see through it?
View 1 Repliesseems pretty straightforward.
CODE:..............
But doesn't work!
It scrunches the layout background as the background to each button, I want it to span all three buttons...
My use case is writing an overlay controller activity for a landscape camera preview. I followed the instructions from a couple of tutorials for writing a transparent theme.When I start this activity from my root activity, the layout gets drawn correctly, but the background stays black. I tried to use @android:style/Theme.Translucent instead, but this Theme inherits the orientation from the calling activity (landscape) and thats not what I want.The application holding the camera preview is set to landscape view as it does not display the preview correctly in portrait orientation. (see old google bug report)What I wanted to do was to put an independent activity for user interaction interface in front of the camera surface holder (this activity should be set to 'portrait', or even better to 'sensor')
View 3 Replies View RelatedI want to be able to specify an android:src, but I want android:background="" - complaints that string types are not allowed when compiling.
I basically want a button without any background (but that *does* have a 'src').
I am using a web view in which i am adding a image view..now i want to set the background of this image view transparent.i hv tried setting code...
View 1 Replies View RelatedIn my android application i am using progress dialogue in my splashscreen.
I would like to see only the progressbar with loading message without the background.
Is there any way that i can change the background to transparent in android.
How can I set the Background for a button to a transparent Color, like transparent Blue for eg, instead of a solid blue? When I use button.setBackgroundColor(Color.BLUE) it sets it to a solid blue.
View 2 Replies View RelatedI have run into an requirement of my application that i cant find a way to do this.
I need my application to be fullscreen and no title bar (done), and this application will have a background image. However, all the activities/views of my application must be transparent/translucent so the application background will be visible all the time behind the information i am displaying.
Basically i would like to have this behavior
http://www.geeky-gadgets.com/wp-content/uploads/2010/05/amazon-kindle-android-app.jpg
supousing that the image you see is not the phone wallpaper, but the application background image. What would be the application configuration in the manifest file and what would be the configuration for eacy activity/view?
I also noticed that, i need to setup each activity to be fullscreen without title bar. Is there a way to do this globaly in the application so all activities will behave this way?
OK, So I want to set the background to a transparent image and change the color of the background on an event firing. I can set the background image to a resource in an xml file, and I can also change the color of a TextView on event firing, but for some reason I can't do both at the same time. Do I need to create a drawable or something? Also, how do I reference the top level LinearLayout. I'm programming using eclipse JEE Galileo with the ADT Plugin and the android sdk. O.S. android 2.1-update1 (eclair). My friend can do it in actionscript and I have to do it in java to beat him lol.
View 1 Replies View RelatedI believe I have found a graphics bug introduced in the 1.5 platform. I'm looking for some confirmation (or a description of what I'm doing wrong) before reporting it as a real bug.
I have a SurfaceView that fills the screen and on top of that I have a LinearLayout that wraps some other components that overlay the surface. These other components are not visible most of the time, and the LinearLayout has a transparent background so that the SurfaceView is unobstructed until the other components are made visible. Under 1.0 and 1.1 this all worked with a background of #00000000 for the LinearLayout. Now under 1.5 there is a black rectangle obstructing my surface unless I give the LinearLayout background some color. I can still keep the transparency so it is still invisible as it should be but it is strange that it can't be black and invisible anymore. My layout is below. The background of #00000001 works, but changing it to #00000000 results in a black rectangle. code...
Why i get a Black screen with a translucent transparent background on my HTC Hero ? I used the code sample.It is OK with the emulators 1.5 and 2.1.Is there a way to have it on my Hero ?
View 3 Replies View RelatedI have problem with the List view scrolling. Here I have a list view contains more 50 items. I am setting the list view background as transparent. While scrolling the list view it is showing with black background. Can any one tell me how to remove this black portion?
View 3 Replies View RelatedI need to display image has background and transparent text at particular location of the image text,here my problem is it display well in some devices and not being proper alignment in larger screens,even i used separate resource file like layout,layout-large,layout-small but in some case it's not working well,i set. Code...
View 1 Replies View RelatedI'm using a ListView with a transparent background. It works fine in Android 1.5 & 1.6, but in Android 2.0 and later, the ListView background turns white while scrolling. I want it to stay transparent, just like in 1.5 & 1.6.
Does anyone know what's going on, or better yet, how I can get this working correctly?
Any good quotes widget with transparent background, which is free as-well.
View 1 Replies View RelatedI'm looking for a transparent background for the stock Weather widget(2.2). I found a few apks but they won't install. I found a couple .zips but they just for close, I think they are for 2.1.
View 4 Replies View Related I have a bunch of png images that I imported to my phone from my PC. I dumped them straight in my DCIM folder.
On the PC, these images have transparent backgrounds, however, when I view them using androids gallery app, the background is black. Similarly, when using these images as stickers for my text messaging app (Naver Line), the backgrounds will also show as black.odate.
I have already found how can I do an ImageButton with Transparent background, but I would like to ask, how can I set the effective of it ?
How can I do it more transparent ?
My way as I do it: <gradient android:startColor="#aaffffff" android:endColor="#aaffffff" ...>
What should I write in to the color to be more transparent ?
How to add a background theme and/or background wallpaper to my app? Right now my app background is plane.
View 2 Replies View RelatedI'm trying to make an app that requires me to draw over a layout with buttons, etc. I want to build a transparent canvas over the current layout and draw onto that canvas. How is this done?
View 3 Replies View RelatedI am using opengl for drawing 3d stuff, but so far I've been unable to use transparent textures...
This is what I do...
CODE:..............
I have a class to make a transparent panel to overlay in any view of my application which I found the tutorial on the internet. The thing is.. it's not painting with transparency .. just gray... does it have to do with this element?
How can I change this values to make it be transparent?
CODE:...............
How to make a button as transparent in android?...
View 5 Replies View RelatedI have an application that shows only a list of some images. But the previous application (like mainmenu/home screen) should be visible and my list will be transparent type. Please let me know how can I achieve this?
I have tried using android.R.style.Theme_Translucent_NoTitleBar and transparent color.
But everytime the below application is invisible.
I am implementing Gesture in my Activity in Android. Every time I am doing a Gesture, yellow line is being drawn on the screen. Kindly provide the code to set the GestureColor as transparent.
View 1 Replies View RelatedI am detecting gestures on one of my activities - I am using it to navigate through photos. Every time I am doing a gesture, yellow line is being drawn on the screen. Is there any way to set GestureColor as transparent?
View 1 Replies View RelatedIs there any example or sample how the transparent text over desktop is achieved by the "devtools/Development settings/show running processes"?
I would like to write some text over the desktop like that one from a service if possible. The aplication will be for development purposes like the "show running processes" but with other data displayed ...
I am able to get a GLSurfaceView to have a transparent background with:
CODE:............
when I set the Activity's window background to transparent and the GLSurfaceView is the contentView of the Activity.
But, let's say my GLSurfaceview is parented by a ViewGroup and I want GLSurfaceView bg to be transparent to see the Viewgroup's background - I am not able to do so with the code above. Is this a limitation or am I missing something?
Is there any way to create a transparent text field?
View 4 Replies View RelatedI can't seem to get GLUtils.texImage2D to use my full RGBA (A=my alpha component).
I've tried doing setEGLConfigChooser(8, 8, 8, 8, 0, 0); getHolder().setFormat(PixelFormat.RGBA_8888);
I've tried converting the source image (.png in ARGB) to RGBA.. which works ok for the ordering of data before texImage2D, but when it draws, it draws yellow where it should be "transparent white"... which suggests it's diminishing the "B"(blue) component instead of the A(alpha) component. But the same thing happens when I just use the orignal ARGB data instead ("B" diminishes instead of "A", leaving yellow).