Touch event on masked canvas - Java for Android App Development

I am new to Android app development and have been looking for tutorials on how to use touch events to move around and zoom in and out of a canvas that is seen by way of a mask/viewport. The mask/viewport would, I'm guessing, be the parent layout that has a fixed size and position. The attached .jpg shows a better diagram of what I would like to be able to do. If there are any experts out there itching to create a tutorial, this might be a good one. At least I know I would appreciate it.

cinci-hal said:
I am new to Android app development and have been looking for tutorials on how to use touch events to move around and zoom in and out of a canvas that is seen by way of a mask/viewport. The mask/viewport would, I'm guessing, be the parent layout that has a fixed size and position. The attached .jpg shows a better diagram of what I would like to be able to do. If there are any experts out there itching to create a tutorial, this might be a good one. At least I know I would appreciate it.
Click to expand...
Click to collapse
Well you should read this class on touch events.
From what I understand you want to do, it is something like the Viewer from the Gallery App, so it might be a good idea to take a look at the sources!

Related

my icon collection for ultimatelaunch

this is the first icons i made
http://rapidshare.com/files/107465159/gt500.rar.html
Good work.
And one information: i'm impressioned from the plugin you have in last image of first row (the photo contacts after HTCHome): can you tell me something about?
take a look at this site
http://www.cnetx.com/products/contact/
Thanks man
Hi would you like sexy icons like this ?
many sizes included 48*48,64*64,80*80,128*128,256*256
I'm sure there would be an "audience" for them but I don't know if that may violate some board rules.
indeed these are some nice icons you got there. though i would rather like them more without the text in them. but they look really cool. keep up the good work.

[APP] Pandemonium VGA - Themeable Sound Board

Hi, Well I have finally got round to finishing enough of this application to give you a version. Unfortunately all the features I wanted to release are not there but its close enough. Future versions will incorporate these.
This application is basically a sound board with the ability to add user created content.
As before, requires .Net 3.5 CF.
The sample sound themes included in the application are a little weak and could do with some extra ones being created. Post your creations in the thread please
There are two types of themes available, a button theme and an image theme.
The button theme uses positionable windows image buttons to play the sounds.
The image theme uses an image to play the sounds. So for example you would have 2 images one for the background on the application for the user to see and one for the application to use. The overlay image will contain a single block of colour where you want to place a button, this colour is then indexed in the themes XML file. So when you press down on the background the colours are matched and the matching sound played.
The best way to get to grips with the themes is to look at two of the themes I have provided. The XML files are fully commented and quite simple to understand.
Example of ButtonTheme, \content\Roy Walker\RoyWalker.xml
Example of Imagetheme, \content\Mr T\MRT.xml
I am sure there will be bugs, but I wanted to get a release out as soon as possible to get some user created content. Please post any creations on this thread and I will include them in the .cab file with the next version.
Any feedback or suggestions please post on this thread also.
Future features:
Volume Control
More audio support, e.g. mp3 etc
Options to save last theme and other stuff
visual feedback on an Imagetheme button press, perhaps a greying of an area (Simple but havent had the time)
Any way have fun!!
http://www.barkered.com/?download=Pandemonium%20V0.1
Attached are a few screenshots of my bad attempts at themes.
The "wrong" button sound effect is not from catchphrase, but from Family Fortunes. As far as I remember, they didn't have a sound for that. Roy Walker simply said "It's a good guess but it's not right", which for me beeged the question, how is it a good guess then? Anyway, I'm not fussy. It's a great, useless, fun little program. We need more of these!!
Thanks.
Yeah you are right, I was just being lazy! But ah well, hopefully myself or someone else will create a family fortunes theme for it.
I also need to get some more Roy Walker sounds added in, a few people on the forum have given me links though.
Work seems to steal all of my time these days. Stupid work!
Cant wait to try it. Thanks for your hard work.
I can't play any sound when I'm on the phone. Neither I, or the one I'm on the phone with can hear anything.. What am I doing wrongd?
To be honest I never even thought about someone trying to use it during a phone call!
Interesting idea though...
I am slowing working on a few more themes, when I get time during work of course. Unfortunately my artistic skills are a little weak.
But I have created piano theme also, much like the one for the IPhone. Need to create some others also.
I was kinda hoping other people would create some content. It is easy enough
i am up for this....let me know how i can make some themes!
woooohooo
i have made a new theme! (well based on the mr t one supplied)
BETTER SOUNDS AND IMAGE!
i would like to know if someone can tell the screen size the program displays as it is not 480*800 as in the specs (it looses some from header and footer)
if anyone would like the theme i have made please Private message me i will mail it to you (as i do not know how to link)
i am currently working on another FAR TSUPERIOR theme just need the right images and screen size before i mail it out.
about time i found an app that i can have fun with! (like those iphone apps!)
cheers original poster for this!
I there, a have been searching for a while for an application that a could use to make something like the iphone idrummer (because of the daft punk kits) since i dont know how to make one, just modify them.
So here are my versions of Daft Punk "Harder, Better, Faster, Stronger" and "Aerodynamic". Just ad the files to the content file of the application and select them on the application and you are ready to go.
The thing is, they were made for QVGA version (240x320), so for other screen dimensions just modify the size of the background images and buttons, and coordinates also.
Hope you enjoy them (sorry for my possible bad english)
Anyway thanks to the creator of the application, and if anyone could make a new application more suited for a possible version of idrummer for those that dont have a iphone its always welcome
Haha i was just about to come here and ask if someone could port this http://www.noblefart.com/ across from the andrioid but since this sound board is very similar then maybe it could be intergrated into this!!
Is it possible to make it so that someone on the phone can hear the sounds?
This would be then great for prank calls. It would then also be useful to let you set your voicemail message as an mp3 - just dial your vm, choose record greeting and hit the soundboard button...
is there any way u can make a soundboard for family feud?

Opinions and ideas on the upcoming beta!

Okay,
I have this problem where I am never pleased with anything I do, so I keep trying to improve it and improve it even further. The time has come.
I have been coding the new features for my website (www.touch-innovation.com) and here is the list I have thought of and has users suggest via email:
- Live submit (Submit directly onto the site... instantly. With lots of security though )
- Screenshots on category lists
- Download names instead of random hash.
- Add comments to news sections
- And lots of admin panel updates which you don't need to know about
Another thing is, what do you think of the design. Does it need a re-design? Does it need to be minimilsed or what not?
Help me out come on, throw me some ideas!
<3
dude, this sounds great
all of those features sound like excellent additions. good work on the coding
no, the site looks fine the way it is
Why do you want to change that site it's clear easy to use and looks cool
Because people have complained about the fixed backgrounds on the left and right. I was thinking of making them a bit thinner to make more room for content and shiz.
Thanks for your compliments, so you don't have any other feature requests? And the Live sumbmission idea, would anyone use it?
Thanks again
Anyone with a decent knowledge of php drop me a line. I'm having problems editing filenames on the fly (sounds easier than it is trust me, complex scenario).
The one and only thing I'd like to see changed? Not use javascript when clicking on applications to take you to their detail page. I get annoyed when I can't open it in another tab
It only uses javascript for the onhover effect and to make the whole td a link. If you want to open it in the new tab, just right click on the name (which is a hard link, for people without javacript).
It's been like this since first release, I did it just incase of no javascript
Napbree said:
Anyone with a decent knowledge of php drop me a line. I'm having problems editing filenames on the fly (sounds easier than it is trust me, complex scenario).
Click to expand...
Click to collapse
I guess I need more specifics, but a nice little loop with the function rename() should do the trick. I am sure you have looked at some resources, but the php.net site is great, here is rename with tons of good examples, some of which I have used in the past:
http://us.php.net/manual/en/function.rename.php
Hope this helps, FYI the site looks great!
Gudy
Thanks, rename isn't on the fly though. I'd have to rename it, then let the user download it... wait till the user has downloaded it, and then rename it back. And what hapens if someone else trys to download it in the proccess of this, they'll get a 404 for the file. I'd have to copy to a new location and do it that way. No point, I need on the fly not permanent. Normally I would use the rename function but it's not helpfull in this sutation.
I just need to play with the headers for a while and get them working .
Thanks for your help though
And thanks for the compliments.
Napbree said:
Okay,
I have this problem where I am never pleased with anything I do, so I keep trying to improve it and improve it even further.
Another thing is, what do you think of the design. Does it need a re-design? Does it need to be minimilsed or what not?
Click to expand...
Click to collapse
hell yeah, I know that feeling...I´m never pleased with my designs as well
And no, it doesnt need a major refresh yet but try to make the background a bit lighter so the whole site gets a bit more contrast. Just lighten up the background by 10-20% or so and show us what it would look like
And tell me if I´m wrong...but "Touch friendly programs for the windows mobile" sounds extremly strange, what about leaving the "the" out ?
regards,
Martin
Napbree said:
Thanks, rename isn't on the fly though. I'd have to rename it, then let the user download it... wait till the user has downloaded it, and then rename it back. And what hapens if someone else trys to download it in the proccess of this, they'll get a 404 for the file. I'd have to copy to a new location and do it that way. No point, I need on the fly not permanent. Normally I would use the rename function but it's not helpfull in this sutation.
I just need to play with the headers for a while and get them working .
Thanks for your help though
And thanks for the compliments.
Click to expand...
Click to collapse
I didn't understand what you needed, and I think now I do, you want to change the name as someone is downloading a file correct? If so, check this sample out, modify the header section as needed, ie this line:
header("Content-Disposition: attachment; filename=\"$file\"");
you could do any type of processing on the name you need, then just pass the string like above. Here is the link to the rest:
http://apptools.com/phptools/force-download.php
Hope this helps
m.schmidler:
Thanks, I'll try that now. And the "The" bit... Well it makes it sound like it's the only decent phone - aka unlike iphone . Its pronounced th-eee not th-u. So it sounds slightly different.
Get what I mean?
mjg7876:
I've been looking into the disposition header for a while, but the way I currrently download files is quite simple but to interlock these 2 things togeather is complex. Especially considering I will need to do checking, exploding (for the file extension) and redirecting if it's not hosted on the server. I make things too complicated lol.
Thanks for your help guys btw
Anyone else?
Is it me or does the logo from this site in this post look very similar to yours?
http://forum.xda-developers.com/showthread.php?t=441647
Great Site
I love your Site. In my opinion : it doesn't need any re-design.
But i do have one suggestion : it would great to have your tables with worting features.... One could just click on the title of one column and it would be sorted.... Understand what i mean ?
Thank for your work.
Thanks for your kind words
And btw, you can already sort them (programs list only atm). Simply click on the title, download, views, etc. and it will resort.
Try it
BTW: That logo looks like a skeleton version of mine :/. There's everthing thats on mine, just minimilised! What's going on? :/
ATM work is up to my eyes, so I've had to slow down on the development. It's not something I can rush due to security.
Any more suggestions I will be more than greatful

[REQ] HTC Touch HD Theme Creation

After some searching through the vast amount of information on these forums I'm still at a lose on how to create my own Theme's on my HTC Touch HD.
Do I need to change TouchFlo theme's or Manila themes? It is it a tad confusing to a noobie!
I've discovered things that edit previously made ones but dont really want to do this. I really need to be able to open the files in photoshop, preferably in JPG format in order to change them to my cool designs that I'm sure you'll all love!
I'm a Photoshop designer and think my skills at doing this would be appreciated once I've learnt how to save the files out. I've already got a few ideas on some of the icons/wallpapers/theme's I'm planning on using. If anyone can let me know how to rip the files from my phone that need chaning I'd appreciate it.
I've read that they all end _manila, but I cant seem to find them.

Fixing the crappy wallpaper cropping tool

I had a thought while describing to a user how to use my wallpaper template.
Would anyone be willing to help edit the box that shows for cropping when setting a wallpaper? All that would really be needed to make it useful is to add in 4 additional lines inside of the cop box itself. Two horizontal and two vertical lines to serve as a guide for what is actually visible on the desktop.
If someone can point me in the right direction of what file to edit, Ill start working on it myself.
That is a wonderful idea. Would love for someone to actually fix the crop tool. Wish I could help but I would love to help test if you need it.
150 some odd view and no one knows where what files need to be edited to modify the crop tool?
Some one just point me in the right direction and Ill work towards getting this done.
that is a great idea! Maybe posting this in the android development section will get some feedback.

Categories

Resources