Android :: Gradient Banding On High DPI Devices
Nov 2, 2009
I've been looking at some issues with the background of our application, particularly on high-density devices (240 dpi, 480x854). I managed to eliminate banding on existing devices (i.e. G1/G2, 160 dpi) by applying the android:dither="true" attribute to our nine-patch image, which is a 1x480px PNG with no noise added. Looks great. However, if I use the same image on a higher resolution device, the banding is pretty nasty looking. Same happens regardless of whether I use a shape+gradient, a noisy nine-patch PNG, or an android:dithered nine-patch PNG -- even if I create an 854px-tall image. Is the use of gradients going to become a problem on high screen density devices, purely because of the display colour depth, or is there any way to solve this?
View 5 Replies
Oct 29, 2010
Seems my original post ("ugly pngs...") somehow disappeared :( nvm.
I have a problem with a png resource that has gradient fade-out alpha.
The png looks great in the emulator, but displays an artefact known as "color banding" (http://en.wikipedia.org/wiki/Colour_banding)
Has anyone surpassed this issue ?
My designer wants to trop a shadow behind his icons, and that's where the bands appear.
What are my options ?
View 13 Replies
View Related
Jul 26, 2010
In my app i have gradient as drawable which i am using as background and i want it to make it look as smooth as possible. After googling and trying by myself i came up with the following. On nexus one if you call only setDither(true) your gradient is still banding so you have to set PixelFormat like this Window.setFormat(PixelFormat.RGBA_8888). But on the other side G1 does not support RGBA_8888 so calling it make the gradient even uglier than before so Window.setFormat(PixelFormat.RGBA_8888) will not work well on devices that don't support it.What is the correct way smooth my gradient on all devices on which my app will run.
View 1 Replies
View Related
Sep 7, 2010
I want to publish an application that specifically runs only on 800x480 or higher screens. I don't want users with 480x320, 320x240 etc devices to get it from Android Market. How do I configure it? Market Filters seems to have the answer but I still don't get it.
View 4 Replies
View Related
Nov 15, 2010
I read the official document about supporting multiple screens http://developer.android.com/guide/practices/screens_support.html
According to that document, I should just create different directories for different resolultion.
Now the question. How to support devices with normal screen and high density or low density?
I ask it because, there are two posibilities (WVGA800 (480x800) and WVGA854 (480x854)) and (WQVGA400 (240x400) and WQVGA432 (240x432)) and I don't know where to store some background images for them.
I would take drawable-normal-hdpi or drawable-normal-ldpi, but how to make difference between 480x800 and 480x854 or between 240x400 and 240x432?!
View 1 Replies
View Related
Jan 16, 2010
Just wondering if anyone else had noticed faint flickering issues with their Behold 2 screens? I especially notice it with smooth gray scale gradients, soft focus wallpapers, or solid color mid tones. Also, some color banding in grey mid tones... looks like faintly alternating horizontal lines of green and magenta. I work in digital imaging professionally, so I really notice such things. Can't decide if I'm being overly critical, or if my phone has an issue.
View 17 Replies
View Related
Feb 28, 2013
The default android video player and the other one provided by my vendor display clear banding when playing videos. The video itself is fine because when played with BSPlayer with HW experimental there is no banding visible.
The videos are played through the MediaPlayer interface of Android. I am still not sure if it is a dithering issue or a surface format issue. I tried different modifications to the player/machine without success.
1. Build.prop settings: persist.sys.use_dithering=1 (tried 2 as well) and video.accelerate.hw=1
2. Adding the dither flag with addFlags( WindowManager.LayoutParams.FLAG_DITHER )
3. Making sure the surfaces are in RGBA_8888 with setFormat of surfaces
4. Forcing dithering in View.smali of framework.jar
How I could fix this issue with the default player. Wondering if it could be related to drivers or native code.
I ran those two apks listed here and no banding visible at all: [URL]
View 2 Replies
View Related
Jan 25, 2010
Any of you see a lot of banding on the camera app in medium to low lighting. The flash usually prevents banding from appearing in pictures but when recording there is huge amounts of banding. is this normal?
YouTube - video-2010-01-25-23-31-41
View 2 Replies
View Related
Jun 12, 2010
My speaker buzzes all the time on my phone (not the speaker phone - it works fine). It's not a network buzz, it's a vibration buzz of the metal or speaker. The center camera is also off-center a little bit, which makes me think something up there is off-center, misglued or loose.
We have two other evos and neither of them buzz on the same call. I called the Sprint Nav Voice Address thing from all 3 phones since that would be the exact same voice and words every time. Only mine buzzes. The other two don't have the camera problem either.
View 3 Replies
View Related
Jul 23, 2010
Is there a way to have 2 gradients in a drawable xml using either a <layer-list> or <shape> or some combination of them?
View 1 Replies
View Related
May 28, 2010
How can I get rid of the gradient at the top of my screen (the very top of the blue in the screenshot below... below the notification bar)?
View 1 Replies
View Related
Jun 5, 2009
I have a LinearLayout and I am setting a Background image. I am using a PNG24, and the image has a gradient in it. When I see the image on the computer the gradient is perfect, but when I see it on the emulator or on a real phone, some colors are lost and I see only like 10 colors, so I see lines and not a perfect gradient. Is the emulator 'compressing' the images? Should I make them in other format?
View 3 Replies
View Related
Dec 11, 2009
I'm trying to apply an Alpha gradient to a bitmap that I've created from a PNG. I want the image to be opaque at the top and fade to transparent at the bottom. I know this can be done be using getPixels and setPixels for Bitmap and iterating through each row of pixels in the Bitmap and setting the alpha values accordingly, but i was hoping there was a slightly neater way of doing this. I have been looking at the LinearGradient Class and using a Porter Duff transfer mode, but i don't seem to be having much luck with this. It seems that my source image is lost when i apply the Shader to the drawable. Anyone have any tips on how i might apply an alpha gradient to a bitmap?
View 2 Replies
View Related
Sep 21, 2009
I have got another mysterious issue. So, I am setting a background image for LinearLayout. This image contains gradient. Don't know why, but after I launch application the image appears to consist of several parts that actually form "smooth transition" of gradient, and that's why it seems that background image is not a gradient.
View 1 Replies
View Related
Sep 23, 2010
I have a gray gradient drawable (png image in res/drawable). If I draw it on a white Canvas it looks banded (not smooth). If I put the gradient on white background in GIMP, and then draw this drawable on the Canvas, it looks great. What's the problem? I tested this on Nexus One. Calling setDither(true) on the drawable has no noticable effect.
View 2 Replies
View Related
Oct 25, 2009
I have a shape with a gradient that I'm using as a divider between ListView items. I've defined it as follows:
<?xml version="1.0" encoding="UTF-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:startColor="#ccd0d3"
android:centerColor="#b6babd"
android:endColor="#ccd0d3"
android:height="1px"
android:angle="0" />
</shape>
I would like to add 6 pixels of padding on either side of the gradient, so that it doesn't extend from edge to edge of the screen.
However, no matter where I put an android:left="6px" and android:right="6px", it doesn't seem to take effect. I can put it in the <shape> element, the <gradient> element, or in a separate <padding> child of <shape>, and it doesn't change anything.
How can I add padding on the left and right of my list divider?
View 2 Replies
View Related
May 14, 2014
How To Transfer TEXT MESSAGES from WP8.1 devices to Android Devices ??And also the contacts!!
View 2 Replies
View Related
Aug 10, 2010
In my Android application I've hidden the default title bar, introduced a TabView and added my own titlebar under that TabView's tabs. At the moment, I'm using the ?android:attr/windowTitleStyle style which makes my new titlebar look gray and gradient. It looks pretty good, but my screens are looking pretty grayscale. I'd like to spice things up a bit by making this titlebar a different color gradient.
What am I looking at here? Creating my own image and using it? The ?android:attr/windowTitleStyle style seems to expand depending on the height of your custom titlebar; so I'm not sure it's actually a single image.
I've attempted to throw a LinearLayout over it with a bit of translucency (ex: making the color #800000FF), but the gradient style I have behind this LinearLayout disappears.
Update:
Per my answer down below, I've figured out that I can create an XML file that defines a gradient and use that. It works fine inside a LinearLayout (titlebar_gradient) I have on my layout. However, it is not working on the outer-most LinearLayout (background_gradient). Could someone tell me why? As I understand it, the ListView should be transparent...
code:...............
View 1 Replies
View Related
Feb 15, 2010
I want to make a custom seek bar having color gradient as shown in the below image URL.
View 6 Replies
View Related
May 14, 2010
Given a closed Path object result is like this: http://www.tutorialguide.net/images/adobe_photoshop/0043/001.jpg. Although that is a rectangle I'm looking for something which works with any closed Path.
View 2 Replies
View Related
Apr 21, 2010
How would I extend TextView to allow the drawing of text with a gradient effect?
View 2 Replies
View Related
Nov 11, 2010
Is there a way to draw a circular gradient mask on a bitmap in Android? Trying to produce something similar to a foggy window. Click the window and a transparent circle shows up revealing whats behind the window. Prefferably using a gradient so the center of the circle is completely transparent and the further out from the center the less transparent. Is this possible?
View 1 Replies
View Related
Oct 2, 2013
Can I have two separate google play accounts for two different devices & keep one gmail account for both devices?
View 6 Replies
View Related
Jan 27, 2010
I am creating a button programmatically. It is rounded and has a gradient background, and works fine and looks nice, but I couldn't do two things I wanted:
Set a 1 pixel stroke with a given color. I tried getPaint().setStroke(), but couldn't figure how to set the stroke color. How should I do it?
Align the gradient to the bottom of the button, no matter what height it has. Is this possible?
For reference, this is the code I'm using:
CODE:...................
View 1 Replies
View Related
Nov 1, 2009
I am developing my am on mac (10.5.8), on eclipse and SDK 1.6 and a Vodafone HTC Magic Everything was working ok up to a few days ago. I can not see my device on adb devices. I also got a Sony Xperia and I can not see it on the list either. I upgraded the phone software (the HTC) to 1.6 a few days ago. Maybe that is what caused the change, but I could not be sure.
View 2 Replies
View Related
May 28, 2010
I'm trying to apply a linear gradient to my ListView.
This is the content of my drawable xml code...
So I apply it to my ListView with:
android:background="@drawable/shape_background_grey"
It works but it looks very "banded" on emulator and on a real device too.
Is there any way to reduce this "behavior"?
View 2 Replies
View Related
Feb 21, 2010
I'm trying to create a drawable in xml, a rectangle with one gradient on the top half, and another on the bottom half.
This is NOT the way to do it, apparently:
CODE:................
How can I do this, preferably in a way that makes it stretchable to any height?
View 2 Replies
View Related
Oct 17, 2010
I'm wondering if theres a descent app which serves primarily as a text messenger but with an easy interface to insert a video or image. Guess I got spoiled from this feature on the iphone...
View 3 Replies
View Related
Oct 3, 2010
It's remarkable how well the Vibrant/SGS stacks up against the other phones in the showdown. It's only going to get better from here with Froyo.
View 4 Replies
View Related
Sep 26, 2010
So we have 2 Incredibles on a family plan and with this chatter of eventual data caps, I just was curious and took a look at our recent data usage on myverizon to see where we stand.I average about 5gb a month while my significant other is around 20gb! I am a moderately heavy web user (although I don't really have anyone to compare to, but I check the internet a lot during the day out of sheer boredom at work) and he by all means is not.Can somebody explain what exactly eats data and how it works? We are mostly just curious and are guessing it's an app. But *what* is doing it? Like does it draw data from the internet or something? Is that app updating or refreshing? The only thing I know about data is like if you refresh a page on the internet, then data is used. I refreshed a website twice and my usage according to 3d watchdog jumped about 1mb. Is that normal? Is it also normal for there to be data usage while your phone is asleep?
View 7 Replies
View Related