Android :: Gradient Image Is Displayed Incorrectly
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
Aug 26, 2010
Sometimes when i recieve a text, the drop down notification bar might say its from "Mike" for example, when actually when i go into the text application, it is from my wife or someone else.
View 2 Replies
View Related
Sep 17, 2010
I want to geotag any photos I take with my Xperia X10 and have the phone set up to do that. When I display the photos on my phone and examine the jpg information. I see the Filename, date and data for Latitude and Longitude. However, the Longitude data is always misreported (showing 1 degree and 53 minutes greater than true). When I transfer the photos to my PC and examine EXIF meta data using PhotoME (and other similar software) the correct Longitude is reported. Has anyone else had a similar problem? I have emailed Sony but don't expect to hear from them until the next millennium.
View 1 Replies
View Related
Jan 22, 2009
How can we removed image displayed in Imageview?
View 6 Replies
View Related
Mar 17, 2010
I want to display an image from an url with an Webview at Android. With Android phones with Version 1.5 and 1.6 there is no problem. but the same pic and the same code on an AndroidPhone with Version 2.0 and the pic is totaly pixelated. Like Android is resizing the image first to a smaller one and then resizing it back to "normal" size. Unfortunately its important to display the pic without any quality loss. I tried to integrate it in the sourcefolder to show it as an normal image, but at Android 2.0 i get an exception because the image is to big. (At Android 1.6 there is no problem) Any ideas how i can display the image without quality loss with Android 2.0 ?
View 2 Replies
View Related
Apr 10, 2010
Is there a way of setting a different lockscreen image to the one displayed on the homescreens?
Home screen images, by their very nature work best when they are simple or abstract because they have a load of stuff going on over the top of them. But in the lock screen it would be really great to see a proper picture, where it doesn't matter what's going on because there's nothing in front of it!
It's a small request, but it would be nice to have all the same! Any apps that can do it?
View 2 Replies
View Related
Nov 3, 2010
Currently running DeFroST 6.0 forHTC desire (AOSP FRG83 + CyanogenMod). I rooted using unrevoked 3. I installed defrost 5.9via Rom manager then upgraded to 6.0 via defrost settings.
3 questions possibly unrelated
when I run bootloader I see 'no image' and 'wrong image' messages displayed
I am unable to delete stock apps that came with the defrost Rom. In root explorer I mount r /w and delete an app. Confirm delete message shows up. But when I exit app is still there in the drawer functioning normally.
I was told this could be because NAND is locked. I understand that it should be unlocked when the unrevoked root was performed. I suspect that the error message - not enough space I saw in recovery might have something to do with the NAND setting.
Before I installed defrost 5.9 I tried to install the cyanogen 6 Rom via Rom manager. I saw 'not enough space. On device' or something similar (can't remember exactly) displayed in recovery. i think this might have something to do wit NAND setting as well
btw my desire is CDMA. Can any body shed some light on this. im a newb so simple terms please
View 5 Replies
View Related
Nov 1, 2009
Our application displays widgets that update every minute through Alarm. It works fine under 1.5 and 1.6 but since 2.0, widget is not displayed at all. Only initial layout is displayed.
View 2 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
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
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
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
Jul 15, 2010
The result (builder) is set as text to a TextView. It works just fine if the span is surrounded by text, i.e. when the start > 0 and the end < length - 1, but the image is cut off (shifted up) if there is no text around it. how do I fix that?
View 1 Replies
View Related
Nov 21, 2010
My ImageView for some odd reason is always displaying a picture in the middle, left of my screen despite the xml code insisting it to be in the center.So, the page should display as Picture in the middle, extending the width of the screen, the text below that and the button below that.But for some reason, the picture is displayed as a small, box thumbnail in the middle left of the screen.any ideas on a workaround?
View 1 Replies
View Related
Nov 24, 2010
this problem has been bothering me for days and I cannot figure out why on earth it is happening. I have a method that detects for a face, if a face is detected, the method will draw a rectangle on a canvas along the face.That part works fine.The problem is, when it displays to the image_view in my xml file, it will display on the far left middle of the image view, in a box, rather than in the center with the width as fill_parent.I thought of a possible workaround : to set the bitmap as a bitmapdrawable, but canvas only draws to bitmaps, so I can get the bitmapdrawable in the middle, but with no red box around it.I commented out my testing of bitmap drawable, and left it as what I have now...it only displays to my xml in the far left of the image_view.
View 1 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
Nov 3, 2010
Android's textView does not correctly input characters when left-to- right Unicode characters, such as those of Hebrew or Arabic, are used. For languages such as Arabic, morph transformation is also required that is not done correctly either (or at all!).This is also obvious when using Facebook App on Android to read posts in LTR languages, which is completely messed up and totally illegible.Can someone from Android OS address this? I would like to extend our patented virtual keyboard (MessagEase) for Entering Hebrew, Persian, and Arabic, among other languages, but currently it's impossible to do so.
View 5 Replies
View Related
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
Apr 21, 2010
How would I extend TextView to allow the drawing of text with a gradient effect?
View 2 Replies
View Related
Jun 23, 2010
I have an OpenGL app that manipulates it's geometry in screen space to acheive some effects, and therefore bypasses OpenGL's matrices by setting modelview and projection to identity. For some reason, Android's OpenGL implementation seems to be unhappy with this, and doesn't draw anything. The same app, compiled from the same code base, works fine on windows and on iPhone. If I load the app's projection matrix into GL's matrix, and multiply it's inverse with the final geometry prior to drawing it (which is effectively a no-op) it displays correctly.
View 6 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
Apr 27, 2010
Weird thing I've noticed is that in some text message threads replies are listed before my text.One thing I was thinking was when I set up the phone I adjusted the clock to be a minute or two fast. Could this affect the message ordering? Assuming the phone orders them by time sent?I may have answered my own question but I thought it would be smarter than that!
View 2 Replies
View Related
Jun 10, 2010
I have birthday details for some of my contacts entered into my googlemail account.then I click Phone from the home screen and then select the a contact the Birthday section under information shows one day earlier, e.g. birthday set as 25th August shows as 24/08. Is this a known bug, and if not how do I report it to HTC?
View 5 Replies
View Related
Jul 21, 2010
I use http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview/3068012#3068012 to load images in a ListView and a GridView. It works but the images are loaded form bpttom to top. How to fix that?
Bonus Question: Can I use a loading animation in a image view while the real image is loaded? Right now it's just a default image.
View 1 Replies
View Related