Android :: Poor Transparency On Images
Apr 2, 2010
I am having problems getting transparency to work well on an ImageView. The images at(http://img265.imageshack.us/img265/6233/whatn.png) were screen captured from a Droid (hdpi). The top image I made in Photoshop and left the background white. The bottom image is the same image with the background transparent and the layout's color (white) shows through. Whenever I have transparent backgrounds in images it dithers shadows like this. Also, it only happens on hdpi devices, on my G1 (mdpi) it looks just fine. What is going on? How can I make the bottom image look as good as the top one?
View 1 Replies
Jul 23, 2010
I use to own a palm pre before I switched to HTC EVO. I think the evo is a great phone but the two things I missed so much about my palm pre is the camera and the sound qualities.
The EVO is said to use 8MP for its camera but honestly the camera quality is nothing compare to the palm pre. Simply put, the camera and the sound output on the evo sucks.
You can clearly notice the difference between the pictures I took using the pre and the evo. The pre gives far better picture quality and also better sound output. I always enjoy plays my sounds or using pandora on my pre, but with the evo the different is the case. The sound quality with the evo is horrible even when plugged to good speakers.
I bearly take picture with the evo because I am used to good picture quality with my pre.
I have had the evo for less than two weeks and i am seriously thinking of returning it because of these two issues.
I really want to know, is this poor picture and poor sound qualities a thing with the evo in general or is it just with the particular evo that I got.
View 30 Replies
View Related
May 26, 2010
I (like hundreds of others) have had a call quality problem with the two Droid Incredibles I purchased for my wife and myself when they were released on April 30th. Verizon recognized that there was a problem and replaced both devices with ones manufactured about a month later (5/02) and the same issue with poor voice quality continued.
We love the device EXCEPT for the lack of ability to understand callers. So, I asked Verizon to extend our 30-day opt out to give them an opportunity to work out the issues with this device. I just received a call from Verizon customer service (which I could barely understand) and was told they would not extend the 30 day period and my option was to live with the poor sound quality or switch to another device. Verizon has no other devices that were interested in at this time so well be canceling these two lines (and one other) and returning to T-Mobile. T-Mobile may not have the best coverage, but they do have great customer service, unlike Verizon.
View 32 Replies
View Related
May 27, 2009
I am rendering this PNG with no transparency just fine: http://n4te.com/temp/test.png However if I try to render this PNG (with transparency) with the exact same code, I just get a white box: http://n4te.com/temp/ball.png
I am loading the PNG into a texture like this: Bitmap bitmap = BitmapFactory.decodeStream(input); int[] temp = new int[1]; gl.glGenTextures(1, temp, 0); textureID = temp[0]; gl.glBindTexture(GL10.GL_TEXTURE_2D, textureID); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_NEAREST); // GL_LINEAR for quality. gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_CLAMP_TO_EDGE); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_CLAMP_TO_EDGE); GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); bitmap.recycle();
I am using this blending: gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA); How is it possible to render a PNG with transparency in OpenGL ES?
View 7 Replies
View Related
Jul 14, 2010
I would like to change the transparency of a whole View in Android. How can I do that? The View has a nontransparent background.
View 2 Replies
View Related
Mar 20, 2010
Is there a way to set the Astrid widget to be partially transparent/translucent? I'd like it to let some of the background show through like the default search widget and the default calendar widget.
View 5 Replies
View Related
Mar 3, 2010
why is the transparency for drawables attached to ImageButtons not honoured? i have to change them to ImageViews so they look right.
View 5 Replies
View Related
Feb 1, 2010
I need to set initial transparency for a TextView but I don't know how to do it. On iPhone it can be done easily with alpha property. I've tried to set alpha using AlphaAnimation but no good it doesn't work. It just returns to 100% alpha when it ends.
CODE:................
View 2 Replies
View Related
Apr 25, 2009
I have a lot of Views where I have set a background image on the top LinearLayout and then I have nested a new linear layout below with a background that is semi-transparent. This works great in 1.1, but in 1.5 the transparency is just disregarded and this breaks my app as the text on top is now unreadable.
Is this a bug or a feature? Is there a better way of doing this? Very grateful for any tips!
Code example:
CODE:....................
View 13 Replies
View Related
Nov 19, 2010
Basically I have a fully functional ogl program (2D game) in opengl es 1.1, everything works fine except for one problem: glcolor
I'm trying to set some of my texture to half transparent and I would like to do it as follows;
gl.glColor4f(1f, 1f, 1f, .5f);
obj.draw(gl);
...
gl.glColor4f(1f, 1f, 1f, 1f);
I'm using VBO for my vertice, my textures and indices. (if that is relevant)
the problem is that nothing gets set to 50% transparency...
I'm don't think relevant to post all my code (mainly because it is spread out several classes with several GL options changing (blends, scissors etc etc).
What I would like is for people to tell me what state of OGL could prevent glcolor form working like I want, what functions should I check, what state should I call.
View 1 Replies
View Related
Jun 22, 2009
I have tried to replicate the Transparency/Translucency effects created in the API Demo(which works flawlessly) and the code i wrote works on the emulator but not on my actual device(Google ION)I copied the styles and colors.xml files from the API demos code and set the theme of my activity I want to be transparent to "@style/ Theme.Transparent" in my activity i set my content view to a layout which contains only a TextView containing : <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/text" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical|center_horizontal" android:text="should have transparent background" /> i have also tried setting the theme using: setTheme (R.style.Theme_Transparent).
View 2 Replies
View Related
Oct 17, 2009
Anyone know if you can make part (i.e. a section which you could measure in pixels) of an image transparent? What graphics features would I need to look at?
View 4 Replies
View Related
Apr 4, 2010
To explain i have a bitmap which is constructed as follows
Paint a rectangle color yellow I want now to paint a smaller circle over the top of the rectangle, but i want to use transparency. so that the circle results as a hole in the rectangle. {like swiss cheese with holes }
So if i painted the bitmap over a background the background would still be visible in the Circle/hole.
setting the drawcolor drawColor(Color.TRANSPARENT) just paints a transparent object. i.e. it doesn't erase the circle area of the rectangle.
How to do...?
One option is to set the circle color to say black and then look for an option to replace black with transparent within the bitmap.... but i can't find a solution for this either.
View 5 Replies
View Related
Aug 7, 2009
When applying an alpha value to an imageview, Eclipse displays the view accurately in layout mode. But when exporting to a target device (such as a phone), the alpha appears to be ignored. This impacts developers trying to create fade ins/outs of elements in a widget. Has anyone else come across this issue yet? Not sure if this behavior is by design or by error.
View 2 Replies
View Related
Jul 19, 2013
I want to edit the transparency in my statusbar (Stock Gingerbread 2.3.5), I read I had to edit in systemui.apk value/drawable.xml. But I only get hide the status bar, really nice, but isn't what i want. I am editing the wrong file.
View 1 Replies
View Related
Jul 31, 2012
How to remove transperency from themes and roms. Galaxy s3
View 1 Replies
View Related
Nov 2, 2009
I'm basically using the same method of loading bitmaps in OpenGL that the SpriteMethodTest example uses and have been unable to get rid of an annoying outline that appears around all of my images.
For example, If I were to load an image of a white circle on a white background, I would expect to see nothing. Instead, I would see my circle because its edge would be gray. In SpriteMethodTest, I replaced the background image with white and was able to see that the edges of the android images flying around also don't seem to be rendered correctly.
Does anyone know how to load images in OpenGL without having a thin outline appear around the images?
View 4 Replies
View Related
Jun 4, 2014
How to make statusbar transparent only in home launcher and opaque in other apps just like in MIUI.
How can I make the statusbar bg function like in MIUI?
View 1 Replies
View Related
Apr 6, 2010
I'm working to convert some background images to nine patch so they scale better on different phones.
The problem is that if I have the following resource structure: drawable-hdpi/background.png drawable-hdpi/button.png drawable-mdpi/background.png drawable-mdpi/button.png drawable-ldpi/background.png drawable-ldpi/button.png and then I drop a new drawable-hdpi/background.9.png file into the mix, it breaks button.png during the pre-compile. The error is "No resource found that matches the given name (at 'background' with value '@drawable/button').Simply removing that one nine patch file fixes the build. Should I be able to have some nine patch images and some normal ones, or to have nine patch only in hdpi but not mdpi or ldpi? This is Eclipse 3.5.1 with the latest ADT.
View 3 Replies
View Related
Nov 17, 2009
I got tired of the messing with the people widget so I created shortcuts to people. I have a couple of folders that I put these shortcuts into, one for texting and one for calling. Is there any setting to change the transparency of the folder?
View 3 Replies
View Related
May 24, 2012
I'm looking for a camera app that displays a picture on my screen in transparency when taking another picture with the camera of the phone in order to do the same pic as done before ...
Any app already exists ? Or is there a tip to do this ? Taking a picture with a printed photo in the other hand is not very effective.
View 1 Replies
View Related
May 12, 2013
Is it possible for a Nova theme to make notifier bar and bottom bar (with home back and recent apps) 100% transparency or would that have to be built into the launcher.
If it is possible does such a theme exist?
View 4 Replies
View Related
Jul 18, 2010
Just curious how many have this issue.If you are unsure select the link below and find out pls.
View 30 Replies
View Related
Aug 24, 2010
Is there a way to load an image file into an ImageView object, and then define a transparent color for this object?
View 1 Replies
View Related
Jun 23, 2010
1.myJpegFile = new File("images/jpegImage.jpg");
2.output = new BufferedOutputStream(new FileOutputStream(myJpegFile));
3.encoder = JPEGCodec.createJPEGEncoder(output);
4.encoder.encode(myJpegImage); Please could you give me the equivalent code for line no. 3 and 4 in Android?
View 1 Replies
View Related
Jul 16, 2009
I'm having a weird problem with GPS accuracy. Basically, I check the GPS accuracy in a background thread after the user clicks a report button, and show the accuracy in a progress dialog, changing second by second. (Code is below.) The following strange thing happens:
1. If the user clicks more or less immediately on the button after taking the phone out, accuracy is unsurprisingly pretty poor to start off with, say more than 100m. But the accuracy never really improves very much while the user is running the background thread. There is some improvement, but it's slow and it never gets very accurate. 2. However, if the user gets the phone out and then waits for several seconds *without* clicking on the button and running the background thread, and *then* clicks on the button, the accuracy quickly improves and becomes very good. When they click on the button, the accuracy shows up as fine - within the same length of time............
View 8 Replies
View Related
Apr 17, 2010
I have a map in my android application that shows many markers (~20-50). But the app performs very poor when i try to scroll/zoom (in Google Android Maps i did a sample search for pizza and there were also some 20-50 results found and i didn't notice any particular performance problems when zooming/scrolling through the map).
onCreate() {
....
drawable = this.getResources().getDrawable(R.drawable.marker1);
itemizedOverlay = new MyItemizedOverlay(drawable,mapView);
...
callWebServiceToRetrieveData();
createMarkers();
}..............................
View 4 Replies
View Related
Jan 30, 2010
So I'm doing some simple 2D stuff with OpenGL on Android and found the performance to be very, very poor. To give you an example, I made an app with a full screen LSurfaceView. I loaded a 512x1024 texture (containing a 480x854 image), set up an orthogonal 2D matrix, and set it to draw a 480x854 pixel quad with that texture, using vertex and texture arrays. Lighting, dither, blending, etc. is disabled.
I would expect this to run at 60fps without problem, but that simple operation already drags the frame drawing time to 19ms/frame. If I add some more small textured quads around the screen, the drawing time goes up to 22/24ms. If I enable blending it balloons to 28/30ms. This is testing on a Motorola Milestone, running 2.0.1. Is this normal? Am I doing something wrong or is it just a common problem in Android?
View 24 Replies
View Related
Jun 11, 2010
Ok,this is my first android phone,coming from a bb I've notice that the battery life on my EVO sucks,I bought the phone yesterday and put it to charge while playing around with it.I unplugged the phone this morning at 7am,I make a 5min call,watched a 5min video on YouTube,I had Friend Stream running until noon along with Background Data,surged the web for around 2min,listened to 2 songs and a couple of txt messages and the battery on my phone is @ 40% as I'm writting this,notice that background data was turned off around 1pm at that point battery life was @ 60%.is there any way to improve this?I am not running ATk,by the way I love the phone,a lil bit of help will be apreciated.
View 11 Replies
View Related
Jun 22, 2010
I'm encountering very poor roaming performance. When my device switch from 3G to Wifi and vice versa, my application can't connect to the INTERNET for about 10 minutes. The given error is connection timeout: socket is not connected. I've already posted a similar problem here: http://groups.google.com/group/android-developers/browse_thread/threa... But I've noticed that it's not related to HttpUrlConnection. I've tried Apache Api to make my connections and the result is the same. Am I the only one facing this problem ? Could it be a platform bug?
View 11 Replies
View Related