Need help with touch scrolling - Android Software Development

I am working on something that works using the touch screen to scroll around. I want it to work so that it saves the initial point of touch and then based on where u move it continuously scrolls that direction until it is moved again, making the last point into the new initial point. Is there any way to do that? I have tried a some stuff, but everything I do just stops after i stop moving on the screen. I think its because I have it all in the onTouchEvent and it isn't activating because I am not moving on the screen, just sitting there. Any ideas? Thanks in advance

Related

Left hand scroll bar in IE?!

Does anyone know if there's a setting to change the scroll bar from right to left in IE? I looked around but no joy. Thanks lads.
Other than using the unit upside down, I dont think this is possible! I am assuming that you are left handed ?
Nigel
It would be a nice option, not just for Universal, but for Win Mobile in general. I am left-handed, and the vertical scrolling is a PITA. I can not see where I am scrollling to because my left hand is covering the screen, and sometimes even accidentally touching it & activating links.
Same problem here Bill. Anyway, maybe someday Microsoft will make something for us the left handed ones. And thanks for the great tip veletron. lol (I can actually do more or less the same things with both hands but fot this I rather use the left.)
Couldn't you use the scroll buttons instead?
I'm working on something that could be hacked into assisting this, but it'd be a bit of a cludge.
If there's a need shout out and I'll see if I can get around to it.
V
I' m a lefty too, and would appreciate any help in the downfall of leftism
vijay555 said:
Couldn't you use the scroll buttons instead?
I'm working on something that could be hacked into assisting this, but it'd be a bit of a cludge.
If there's a need shout out and I'll see if I can get around to it.
V
Click to expand...
Click to collapse
I have tried using the scroll buttons, but they don't really scroll, rather they jump from link to link (in PIE) which resulsts in very jerky screen movements, and that is not very useful for me.
Then I tried a registry hack mentioned on another forum to make the button do real screen scrolling, but when I tried to use it, the device froze, and sent me to Hard Reset H*ll.
Ideal for me would be in PIE would be scroll bars on the left and buttons that really scrolled. Actually scroll bars on the left would be nice in every application.
It is not a necesity for me, but the bar on the right is an inconvenience --mainly in PIE.
Lefty here as well dude. Would be great to have a less discriminatory device :lol:
The worst thing is, that when you use the scroll bar with your left hand, you can't really see when to stop since your hand is covering most of the screen.
All leftys out there unite !!!
Grogo said:
The worst thing is, that when you use the scroll bar with your left hand, you can't really see when to stop since your hand is covering most of the screen.
All leftys out there unite !!!
Click to expand...
Click to collapse
nuther lefty beggin' for help...

On screen keyboard rotation (slow)

Hello,
I got my hero about 3 weeks ago. I was content with not rooting it and just using what it came with; However, once I saw how slow the keyboard rotation was, I have since been on a quest... trying all the different roms to see if the keyboard would rotate faster.
Just so we are clear, Im talking about the on-screen keyboard on my Sprint Hero (with Google). When I rotate the phone from portrait to landscape, the screen goes dim and then pauses for a few seconds before it rotates. I am kind of interested in the processes that happen when it rotates and I was thinking it just took that long before the accel-meter noticed that the phone had rotated and then once it figured it out, another second or two to redraw everthing.
But then when using the fresh 1.0 rom I noticed that extra animation setting where it zooms the screen out and then it rotates and swings back and forth for a while. When I turn the phone sideways it INSTANTLY zooms out and swings... no-delay. But that whole animation takes a few seconds and actually seems like it takes longer before the keyboard is usable again.
Anyway, I know this is getting long so I will just get to it. Do you guys know of any rom, or setting, or modification to this phone that will stop it from dimming the screen and taking so long before it rotates. My bosses iphone is near instant in it's rotation habits, and that is what I am after. I mean, yea, I love that locale does a lot of extra stuff for me, sipdroid lets me make calls over wifi, and I can use this phone as a remote for XBMC. But if it cannot do these basic things quickly, like rotating the keyboard, then I am going to consider spending my free time modifying my own rom. I am chest deep writing my first two apps for android and was hoping not to have to spend much time on such a trivial thing.
Is it sense? Is it the screen dimming animation? Any directions you can give me that will point me in the direction of giving this phone a stern kick in the butt would be appreciated. As I said, I am not afraid to dive into making my own custom rom, just down want to start that trip if I don't have to.
Thanks for any help you can give me guys.
flexgrip said:
But then when using the fresh 1.0 rom I noticed that extra animation setting where it zooms the screen out and then it rotates and swings back and forth for a while. When I turn the phone sideways it INSTANTLY zooms out and swings... no-delay. But that whole animation takes a few seconds and actually seems like it takes longer before the keyboard is usable again.
Anyway, I know this is getting long so I will just get to it. Do you guys know of any rom, or setting, or modification to this phone that will stop it from dimming the screen and taking so long before it rotates.
Click to expand...
Click to collapse
/system/framework/framework-res.apk > res > anim houses all of the phones animations.
Ones of particular interest to you would likely be fade_in, fade_out, accelerate_interpolator, decelerate_interpolator.
The down side? These are not human readable xml files, they are in binary. I can tell you that what you would look at changing would be
Code:
android:duration="@android:010E0002"
What I can't tell you is how to change it, because honestly I don't know. You can use axmlprinter2 (google it) to read it, but you can't convert it back to binary.
Thanks, I am checking that out now. I was able to look into all these cookie-cutter animations and see that they all seem pretty sluggish. Hopefully the api is documented/open enough to look into the process and see where all the time is spent. It is just mind-boggling that no one from HTC looked at this and tried to compare the user experience with other phones. I played with the droid a little and the keyboard is instant on it too. I doubt it is just a limit of the hero hardware.
It seems like the stock rotation setting makes the backlight dim and not fade-in or out in terms of animation. Any clue why? It doesn't seem like I can turn it off.
I ran that emulator version for the android SDK that lets you see how your app works when you rotate the screen. Unfortunately it doesn't follow the same routine that the actual phone uses when rotating and is merely for visuals.

[Q] Noob Question

Sorry for the noob question, but moving from HTC to Vibrant, I am still learning things as I go.
Here is the question:
I have Launch pro and I really love it. The problem I am having is I can not move my short cuts between the diffrent screens.
Yes I did a search and could not find anything on this.
Could someone please give me a quick hand
Thanks in advance
Just go to the screen where you want the shortcut, open the app drawer, long press on the one you want and put it on the screen. No need to move them between screens, just place new ones.
Typos and other gibberish courtesy of Swype
you can move between screens you just have to move the icon as far over as you can then hold it there for a second and i should transition
Yea I tried to swipe it to the next screen really fast, did not work. I tried holding it there for about 10 seconds, did not move it.
So is it possibule that you have to delete the old one and create and new short cut if you want that short cut on a diffrent screen????
Don't seem right to me, that you would need to do that
Ok got it. Thanks guys for the help.
I had to use almost my finger nail to get it as far over as I could, man that was rough
Thanks again

[Q] Can't Find NookColor Tools

This is probably a very noob question, so I apologize in advance:
I just rooted my new Nook Touch, using touchnooter-2-1-31.img. The firmware on the Nook is 1.1.0. The problem I'm having is that I can't get the app icon screen to scroll past the first screen, so I can't get to things like NookColor Tools, etc. When I scroll either left or right, the app icons flicker and act as though the screen is scrolling properly, but when the flickering stops the same icons remain. Any ideas about what could be causing this?
Thanks...
Solved it
Turns out I was being too polite with it. I gave up trying to nicely drag from one screen to the next and spent about 30 secs clawing at it, when it finally scrolled to the next icon group. It just needed a bigger hammer...

[Q] Any mod known which can rotate 180?

I have got to the end of the road in terms of searches for existing apps for this. I'd like to flip or rotate the screen on my Nook Simple Touch so that it is still in portrait, but upside down.
Does anyone know if this is possible? I have tried countless options which force landscape etc but I just need everything upside down - a full 180 degrees.
Any ideas?
Android 2.1 does not support all 4 rotations.
That appeared in Android 2.3
On the application level you should be able to implement that by setRotation on your main ViewGroup.
You will have to handle screen touch coordinates separately.
Renate NST said:
Android 2.1 does not support all 4 rotations.
That appeared in Android 2.3
On the application level you should be able to implement that by setRotation on your main ViewGroup.
You will have to handle screen touch coordinates separately.
Click to expand...
Click to collapse
Ah, I was hoping to get it working for the whole system in order to work around the fact I have a scratch on the bottom right corner which keeps digging into my palm uncomfortably!
Thanks for the quick response. I'll try sandpaper!
I find that a little mount helps.
I use a monopod mostly.
I use it even when handheld so that I don't have to grip the sides.
The monopod just goes between a few fingers on the back with your thumb to turn pages.
See: http://forum.xda-developers.com/showthread.php?t=1661902
More specifically: http://forum.xda-developers.com/showpost.php?p=30776125&postcount=23

Categories

Resources