I am trying to make a live wallpaper and I followed a guide. Google "android live wallpaper tutorial" and it is the first one. I can't post links as I don't have enough posts. I was able to draw a circle on the screen but it is not anti aliased even though anti aliasing is set to true for the paint. It turns out that the canvas returns true for isOpaque(). In the Android live wallpaper example (the one of the wire-frame cube) they have anti aliasing but I can not see a difference in the code that would make their canvas transparent and mine opaque.
Any ideas how to get it transparent?
I got it! I needed to call canvas.drawColor(0xff000000); before drawing.
Related
Hey guys, how can i set my background to clear not tranparent
tnx
clear not tranparent
Click to expand...
Click to collapse
dont really understand what you mean
you want it to be clear but not transparent ?
clear then how ?
just a colour ?
You probably mean the picture on your Today-screen.
That is an interesting question I would like to know.
Furthermore since I have upgraded to 1.72 the picture I have on my Today screen has lowered 2-3 mm, so there is a white band right over my date display.
Anyone know an answer to adjust that (and change the picture from being transparant to bright)
i still have no clue what you want
you can adjust the background picture in a theme maker
i mean the opaque wallpaper in today's screen. not transparent
so you want remove your wallpaper?
hey double_ofour, i\'m not sure either what you want, but i\'ll try..
anyway, if you mean the transparency of the picture you\'re using on your today screen, here\'s what you can do:
1 Go to Pictures, select the pic you want to use as background
2 Click Tools > Set as Today Wallpaper
3 Then from there, you can set the transparency level for that. (0-100%)
But if you mean for the picture quality on your today screen to be more crisp and clearer.. I guess it just depends on the quality of the picture you use. I tried using a high res pic as a walpaper, and it appeared to be more crisp and clearer.
Or did you mean for your background to be just a plain screen?? -- I haven\'t really tried that yet, but the only work around i can think of right now is for you to find a nice plain pic (any color you want, perhaps a plain white jpg will do) then use that as your background. (sorry for this lame suggestion, i\'m just trying to exhaust all options)
Is this what you meant?
like Guts_S; i'm also trying to digest what you want to do so i'll give it a shot as well. if you want to clear up your today screen; as in the only thing left is the wallpaper then you should download the app "no plugins today". put it in your start menu; clicking it will clear up the today screen and leave only the wallpaper / pic you have. clicking the app again will restore all the today plugins.
as guts_s said; if you simply want a plain color (no pic whatsoever) then simply save a plain colored pic, sync it to your ppc and use pictures to use it as the wallpaper...
are we there yet?
cheers
Hey guys,
the other day I noticed that the Touch2 default background has a shadow on the top of it - I removed the top bar from my touchflo and now it's annoying me.
The default background that displays before Touchflo loads doesn't have this shadow, though, and neither does the lock screen when set to default.
I've searched the forums but couldn't find it - does anybody know the location of the default background as it is before touchflo loads over the top?
Cheers
Jennan
Hello Jennan, agree with you that the schadow does not look nice for the reason you mention....when trying both today screen and lockscreen the shadow remains....however with lockscreen it seems that the wallpaper is "shifted upwards" so less shadow visible....see also picture here: http://forum.xda-developers.com/showthread.php?t=578168
No idea how that is done.......
thanks frank, you're always helping me out. appreciate it
Frank, I think I found the answer
I disabled touchflo and took a screenshot with Ilium Screen Capture. I then edited that image slightly to stretch it where the top and bottom bars are - it's not perfect, but given that those areas are normally covered, it's as close as we're going to get.
Image is free to use for everyone, no credit needed.
Nice work.....!
Checked my "reservoir" and found this theme from Hero.....not the same but perhaps you like aswell.....
Cheers Frank, thanks for that
By the way I am using yours right now......
I am pretty new into android development and have a couple questions I'm sure you guys can answer pretty quickly but have so far not been able to figure out. How do I have a set background in a live wallpaper besides just creating something from canvas, I have it already loaded in the hdpi I just need to figure out how to call it. Also, is it possible to have something appear enlarge a little bit in the center of the screen then fall off the screen? I'm trying to create a time lapse of a tree where it goes through all the weather changes. Any sites you could link me too or answers you would have would be greatly appreciated. Thanks for anything you guys are able to do.
Can you be more specific? When you say background are you talking about an image file you've added as a drawable?
If you use the drawBitmap method you can draw images anywhere on a canvas.
This is roughly how I do it on my Live Wallpapers.
Code:
Bitmap background = BitmapFactory.decodeResource(getResources(), R.drawable.background);
c.drawBitmap(background, 0, 0, null);
That will draw the bitmap at the upper left most position on your canvas.
If you want your live wallpaper to slide left and right as you swipe between home screens you need to adjust the x position based on the offset. Look at the cube live wallpaper source code for more information on how to get the offset value.
What I have is a picture loaded in the hdpi file that I want to use as my background, the thing with the cube is it shows you how to draw a picture but not add one into it. I want to load in the photo and then have objects enlarge and drop down around the center of this picture. The design I'm going for is a time lapse of a tree. I was told surfaceView can set your background but I'm not sure if that's the case or not. Thanks for the reply though I appreciate it.
bearcatext said:
the thing with the cube is it shows you how to draw a picture but not add one into it.
Click to expand...
Click to collapse
It works exactly the same but instead of using c.drawLine() you use c.drawBitmap()
That makes a lot of sense thanks, and for the leaves falling would you just set the coordinates to somewhere in the middle then? Also, is there a way to have an image change color mid-screen so it looks like fall is hitting? Thanks for all your help again though.
I have been creating a few VW style wallpapers for a while in 480 x 800 as jpeg's.
When I assign it as the today/lock screen it is not centralised. As when I press start the image moves up. If you understand? I'll try and get some screenshots.
I have an Image of a BBS alloy before and I'm sure that this didn't do the same. I was pretty sure the resolution was 480 x 800. Is this correct?
Hoping somebody that creates themes/wallpapers could help me out.
I'm using photoshop CS3.
Thanks,
Al.
A.Calamita said:
I have been creating a few VW style wallpapers for a while in 480 x 800 as jpeg's.
When I assign it as the today/lock screen it is not centralised. As when I press start the image moves up. If you understand? I'll try and get some screenshots.
I have an Image of a BBS alloy before and I'm sure that this didn't do the same. I was pretty sure the resolution was 480 x 800. Is this correct?
Hoping somebody that creates themes/wallpapers could help me out.
I'm using photoshop CS3.
Thanks,
Al.
Click to expand...
Click to collapse
I think the image you see when you go into the start menu, is the 'lock screen' wallpaper, so i think it displays this between the top and bottom bars... so if you're using CHT or another app to make your wallpapers fullscreen (i.e. cover the top and bottom bars) it'll look weird.
I had the same issue..... i think
yup 480*800 is correct...
Yeah, I was pretty sure on the resolution. But yes. It does cut out the top and bottom where the black bars are. Is there a way to stop it doing this?
What is CHT? I'm not using that to make them fullscreen I don't think.
Its just when I make the wallpapers because I crop most of the image and line it up with the bottom of the picture for a good "look" It most likley cuts it off on the today screen. Which cuts some of the detail out sometimes. So I have to make sure that it is far enough up the screen. I suppose I could get the resolution between the two bars. Although when you get the lock screen there would be two gaps.
Is there a way to have a different lock screen?
A reg key pointing to the image?
Thanks,
Al.
when i used to be a WM user, this is what i figured out about WM6.5(.x) behavior.
the HD2 has a 480x800 screen. WM6.5 can be set to have a wallpaper (***cough***iPhoneSux***cough). WM6.5 can also be set to have transparent "top" and "bottom" bars.
now, things start to get a little confusing.
1. ideally, we would like to see the ENTIRE wallpaper on the lockscreen and homescreen, with the status/notification icons overlaid.
2. similarly, we would like to see the ENTIRE wallpaper behind the start menu. if transparent "top" and "bottom" bars are used, we would like them to be transparent when the rest of the wallpaper is visible as just described in the scenarios.
3. however, we would like the transparency to go away when an application is running in the foreground (being able to see thin strips of the wallpaper when an application covers the rest of the screen looks silly i guess).
it turns out that WM6.5 ALMOST covers all those requirements. it sort of fails on the homescreen (where it matters most!). now, things get complicated on the homescreen also. there may be:
a. NO homescreen plugin OR...
b. the native "titanium" homescreen OR...
c. HTC's "sense" homescreen (also called touchflo, manila, etc)
now, simply using a 480x800 file yields the following results...
i think i remember that (a) fails, but most of us have SOME homescreen plugin. i think i remember that (c) also fails because "sense" seems to take over the responsibility to draw a wallpaper in its background.
i have been a loyal HTC "sense" user as long as i was using WM. i always had CHT installed as well (Cookie's Home Tab, a plugin to enhance HTC's "sense" homescreen by adding many more options). i believe CHT1.8.5 and later added a new style of wallpapers and the ability to skin" the "top" and "bottom" bars with corresponding strips of the wallpaper. this meant i could just feed it a 480x800 image and it would do the necessary clipping/cropping/skinning to achieve the effect of a seamless wallpaper, whether on the lockscreen or homescreen or when viewing the start menu. a side effect was that my "top" and "bottom" bars were always skinned, even with an application in the foreground, but such is life!
i hope that helps...
Hi team!
I just got the Essential yesterday and am really enjoying it. One problem I'm having is after applying a theme to my lockscreen notifications using substratum I'm unable to find a matching black lockscreen wallpaper. Everything I try is making it slightly more gray than the notification backgrounds and I really want it to just be black. Applying the same background in the home screen does look like the black I'm looking for - it's just the lockscreen giving me the issue so I don't think another pure black wallpaper will do the trick.
Try this.
It was created with a editor and is as black as you can get.
You will need to zoom to get it to cover the whole screen. Otherwise you get a thin gray bar at the bottom.