[Q] Disable ScrollView scrolling in EditText. - Android Q&A, Help & Troubleshooting

So I was able to solve the last 2 problems I had without help, but I'll try once more for this problem:
I have an EditText inside a ScrollView. However, I want to ScrollView to stop working when an external keyboard is attached, so that the keyboard would do all the scrolling. Apparently, however, that's not as easy as it seems.
I already ran a proper setOnTouchListener to disable gesture scrolling; however, if I hold the DOWN arrow until the cursor is below the screen, the ScrollView scrolls my EditText before I get the OnKeyUp signal to do it myself. Is there a way to stop it from doing that?
Thanks.

Related

[Q] Scroll ListView programmatically while touching the screen.

Hey guys, maybe the title is little confusing so let's make it clear.
Many of you know the Go Dev Team and the Go Launcher. The Go Launcher has the feature, that allows to scroll the list, while dragging the icon over the boundaries. I need to implement something like this in my app, but I've encountered some problems, maybe my approach is incorrect.
The main problem is, that it is hard to scroll the list while the screen is being touched already.
1. Dispatching touch events to the ListView while touching the screen equals kaboom.
2. Methods like smoothScrollBy are great, but they behave in different way while touching the screen. They will scroll the list only by height of the screen, no matter how many times this method is invoked. After that the ACTION_CANCEL event is generated and I'm loosing control over dragging object, so I can't scroll further.
3. The scrollBy method in View. When using it on ListView it creates empty space while scrolling. I think I am scrolling whole container then, so I don't see any chances here.
And here goes the question. Has anybody tried something like this and can tell more about it?

Q: Any solutions for constantly hitting taskbar menu while typing?

Whenever I type using the on screen keyboard (using thumb keyboard, but happens with them all), I CONSTANTLY hit the status bar and the menu pops up. If I'm lucky I notice before i touch the screen again but about half the time i manage to turn wifi off, bluetooth on/off.... It drives me bonkers. Anyone also have this problem? Any solutions for it? Any way to move status bar to the top? I've tried making the bottom row of keys bigger in thumb keyboard settings, but i'm still doing it
Seems I can only find something for Honeycomb;
https://play.google.com/store/apps/...wsMSwyLDEsImNvbS5oYW5odXkuYW5kcm9pZC5oc2JtIl0.
Not sure if there is any solution to lock the taskbar when the keyboard is up or not. I'd love that feature too.
Similar issue but with the menu button
I have a similar issue, but I keep clicking menu button with my palm (see picture attached). Anyone has the same issue? Any solutions?
Are you on a stock ROM? You can lock the status bar.
Sent from the matrix. (or my phone)
cwoodard73 said:
Whenever I type using the on screen keyboard (using thumb keyboard, but happens with them all), I CONSTANTLY hit the status bar and the menu pops up. If I'm lucky I notice before i touch the screen again but about half the time i manage to turn wifi off, bluetooth on/off.... It drives me bonkers. Anyone also have this problem? Any solutions for it? Any way to move status bar to the top? I've tried making the bottom row of keys bigger in thumb keyboard settings, but i'm still doing it
Click to expand...
Click to collapse
Hide the whole task (notification) bar with Gesture Control
Also does custom gestures etc, but most useful is hiding the notification bar i think
https://play.google.com/store/apps/...29tLmdvb2Rtb29kZHJvaWQuZ2VzdHVyZWNvbnRyb2wiXQ..
Developer is an XDA Dev
http://forum.xda-developers.com/showthread.php?t=1535740
EDIT-
Seems he released a free version of the HideBar tool http://forum.xda-developers.com/showthread.php?p=28694868
so if you only want to remove the bar (and restore it) use this tool ... however he probs could do with the money support

[Help] EditText in notification draw

I'm trying to put a edittext box in the notification draw, so far it displays fine but I cannot interact with it e.g. click inside and start typing. I've out my XML code inside status_bar_expanded.xml. Like I said, it displays fine but is unusable.
Thanks for any help

BT keyboard, disabling annoying shift + space shortcut?

I've been googling and cruising a number of forums, surely there must be a logical way to get rid of this annoying thing. I am unrooted, locked BL. I have a BT keyboard. Swiftkey installed as system app by default, and I have gboard installed, too. I have an annoying keyboard shortcut of space + shift that brings up the Select input method screen. Seems it's an annoying problem, but without root no easy way to fix?
I disabled swiftkey, and I see the keyboard shortcut helper lists the shift + space shortcut, but there's no way to disable or change it to something else.
Has anyone else with a BT keyboard encountered and solved this? Maybe it's my ebay keyboard and some brief lag that interprets capital letters as my sending the space + shift shortcut. It's nearly impossible to take notes with this thing because the input menu pops up every 10 seconds or so. I'll be travelling to the mainland later this week and would love to find a way to fix this because I want to use the tablet and keyboard to take notes at a conference.
Thank you very much for any help you may have. I thought every answer was on google, but this one is not popping up....

How to get key/motion input on an overlay view and not break games?

Hi all. So I have a problem I just can't seem to be able to fix.
I have an overlay view that I draw on top of other apps that I start in a service in order to get KeyEvents and MotionEvents from my bluetooth input device and based on the motion or key press, I want to generate a touch. (I already have an AccessibilityService for this and it works as long as my overlay view is not touchable)
In order to get the inputs I have to have the view focusable and in order to simulate touches it has to be not touchable.
This is how I add my view:
HTML:
final WindowManager.LayoutParams overlayParams = new WindowManager.LayoutParams(
WindowManager.LayoutParams.WRAP_CONTENT,
WindowManager.LayoutParams.WRAP_CONTENT,
WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY,
WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE,
PixelFormat.TRANSLUCENT);
The problem I noticed is that having the view basically focusable, breaks games. They either just show blank or freeze at the starting logo screen or such.
Any idea how I can get the input from my device and not break games?
I did try to get them in AccessibilitySystem, and while I can get KeyEvents, I didn't find a way to also get MotionEvents...
Any ideas are welcomed.
Thank you.

Categories

Resources