[Q] Android: EditText and softwarekeyboard in landscape orientation - General Topics

Hello, guys, I tried to post this topic in android software developers subforum jet forum engine did not let me (I did not post 10 messages in total).
Well, back to the topic.
As a developer (coder or what ever you call ppl creating apps) I'm trying to get a following result:
http:\\developer.android.com\resources\articles\images\on-screen-inputs_002.png
(You need to change slashes \ to / to make the link work)
For those who don't want to bother checking out link - I want to make a "Done" button appear to the right of EditText, while in Landscape orientation and while EditText has focus (which means softkeyboard covers everything except EditText).
|-------------------------------------------------|---------------------|
| Auto Complete Text View (FOCUSED) | "DONE" button |
|-------------------------------------------------|---------------------|
| Soft keyboard that covers everything else
I quite dont get how to make that freaking "Done" button to appear in landscape mode when textbox has focus ;/.

I found answer myself: buttons appear after specifing android:imeOptions="actionDone" or android:imeOptions="actionSearch" or android:imeOptions="actionNext" ("Done","Search" and "Next" buttons). The problem was that HTC phones does not support showing those buttons in landscape orientation (I use htc phone for tests).
Anyways... is there a way to show custom button instead of "Search" or "Done" button in EditText (orientation:landscape)?

Related

Disable Keypress "Preview" As You Type

I've disabled all of the auto-correct and suggestion SIP options on the TP and that works great, HOWEVER (heh, heh)...
Is there any way to turn off that annoying "what-you're-typing-preview" that always appears on-screen as you type? It is such a waste of screen real estate.
Do you know what I mean? I'll explain...
For example:
Code:
PREVIEW STYLE 1
1. Start a new text message.
2. Pop out your physical keyboard
3. Start typing!
You will see what you type appear in a little "preview window" at the bottom of your screen.
Now here's the REALLY annoying one...
Code:
PREVIEW STYLE 2
1. Open an existing SMS message (threaded view)
2. Pop out your physical keyboard
3. Start typing...
You will see the preview appear *above* your text this time. Even MORE annoying since it's taking up real estate in the typing area this time around.
I've been scrounging for a solution to this and really hope one exists.
Thanks for everything, guys!
press ctrl + space and choose abc
Thank-you VERY MUCH, Brendo!
I thought that I had already done this but I realize now that it was probably in my dreams.
(YES -- I dream about my TP -- don't lie -- YOU DO, TOO!!!).
Lol.
Take care.
Hi Guys, probably very silly of me, but 'choose abc'. Do we have a 'abc' button? I can't seem to find out what you mean with this. Also pressing cntrl + space and typing abc does nothing (obviously). Help me. I also find the typing preview window quite annoying, especially since I have been so happy to be able to turn the auto correct options off.
It can be found on the SIP - pop up keyboard, providing you have "full keyboard", phone keyboard etc selected and not the windows default keyboard. You will see a button marked ABC->T9. Make sure T9 is not selected.
Gee thnx ardsar, this was clear and worked. Indeed I had to change the layout of my pop up keyboard, as I hardly ever use it and had it in the default keyboard mode.
THANK YOU, THANK YOU, THANK YOU (yes, I'm shouting )
If there was anything that pissed me off on this phone, it was the goddamn useless preview!
Why do they expect that you're a retard, if you bought HTC phone? I thought these phones were for smart people
That's kool that it will take the dialog away but while I'm in programs it still types the letters in the background and causes them to skip. Is there any way to disable the typing of keys in the background while still reading the keystrokes. Let's say I'm using PocketNES while I'm in the game it reads the hardware keyboard as typing letters when I'm not trying to type any message. I would just like to use the letters as buttons instead. Hopefully someone has found a solution to the problem!

rotation without keyboard

i have couple of quick questions?
1) how can I make the menus rotate without having to open the keyboard.
2) when the phone goes in standby, i have to open the keyboard to make it come back, none of the buttons work. is there a way around this.
thanks please help
1) I dont think there is a way to just rotate menus without rotating the entire screen
2) according to the pithiness of the previous question I would ask - which buttons did you try?
Kentoplaya
Take a look at a program called Gyrator. I think it will rotate various screens as you were seeking. I haven't tried it yet, but it sounds like what you are looking for. Here is a link:
http://www.freewarepocketpc.net/ppc-download-gyrator.html
you could also do it via a button which i like because gyrator rotates sometimes when you dont want it to. If you are willing to go through the registry than you can go to HKLM/System/GDI/Rotation and change "HideOrientationUI" to 1 (decimal). and after you do that go to Settings->personal->Buttons and it should say <Rotate Screen>
Edit: Change it to 0. It should be 1 by default.
have mine set to rotate to left with one key press (Long Send)
Setting -> Buttons -> Button 1(Hold) : <Rotate Screen>
You can also set the Short & Long press of PPT button to go into the Screen:General tab, but then you still would have to make your selection and then press ok.
Hey this works pretty well. I think some programs may display funny, but a cool tip. thx.

Someone mind helping me?

Hello All,
This is my first post and I don't know if I out of the line for asking this, or am I violating any rules.
I been looking and searching in the HD2 form here in XDA-developers since I got my HD2 about 2 month now. There is one thing I don't quite understand: how the full landscape works for home screen.
I seen post that said the theme have to support the landscape mode, but is there anyway to adjust the phone to make all themes runs in landscape mode?
If there is what program I need and what I need to do?
If possible please let me know.
Thank you all in advance.
i'm not sure if this compatibility is built into the energy rom i have flashed to or if it is available on all stock roms...try this and let me know what you get. press start(or windows button) /settings/personal/buttons...choose the long press hold option for the send key and choose rotate screen option from the list of choices. you can manually press and hold the send key when you want a landscape view of your app or theme... also if you search bsb tweaks this app is able to configure auto rotation of apps via the g-sensor... hope this was of some help.
Or take a look here:
http://forum.xda-developers.com/showthread.php?t=637671
23/2 -10 TX_Total_Landscape.cab -does what the name says, total landscape means also startmenu
Install this and try it.
Great let me try to mess around with it.
or what you can do is just get the bsb tweak, go to the rotation section -- select the options to rotate and head to the home screen and shake the phone. bsbtweak will recognize what you want to rotate and then restart the phone.
there you go... rotated home screen.
i tried all that, but it only display left half of the screen. does the theme i use have to support landscape mode for it to work?

[Q] [ubuntu] How to map search key to alt?

I'm happily running Ubuntu on my TF-101 now. Thanks to lilstevie and everyone else who helped make that possible!
However I'd like to make the search key on the dock act as an alt key. I know how to remap modifier keys using xmadmap, but xev doesn't seem to report any X events when pressing the search key so I can't get its code . The home key next to it is reported as "keycode 180 (keysym 0x1008ff18, XF86HomePage)", but absolutely nothing for the search key.
When you press the search key a "search for files" window pops up, so the key press is being recognised somewhere in the system, but I guess whatever that is then suppresses the normal X KeyPress event.
Anyone have any ideas about how to fix this? I guess in the meantime I'll try using the home key instead.
Ah, just figured it out. First disable the system-wide usage of the search key:
Go to System -> Preferences -> Keyboard Shortcuts
Scroll down to the Desktop section and click on "Search"
Press backspace to disable any shortcut for that function
Then xev reports the keypress as "keycode 225 (keysym 0x1008ff1b, XF86Search)" so the following command will make it act as an Alt key:
xmodmap -e "add mod1 = XF86Search"​
Hope someone finds this as useful as I do - it's nice having the keys in the right place!

Android keyboard shortcuts.

Return to Contents Page - doubleshot Developers Reference
Having recently discovered these myself, and seeing that others aren't aware of them, we need a list here.
The majority of these shortcuts require a hardware keyboard to function - and make having one that much more valuable beyond the other obvious benefits.
These will make your life a whole lot easier - no longer will you have to do things the hard way through the touch interface.
Let's start:
Holding the hardware menu button and pressing other characters does stuff.
First of all, you can find out menu shortcuts on your own. Hit menu once to open it, then hold it and it will show them on the menu options.
General Android:
In a text field:
Menu + X: Cut
Menu + C: Copy
Menu + V: Paste
Menu + A: Select All
Also:
Alt + Trackpad Up: Top of page
Alt + Trackpad Down: Bottom of page
Alt + Trackpad Left: Beginning of line
Alt + Trackpad Right: End of line
(when the keyboard is slid out, the trackpad orientation changes to be proper for the way you are holding it, so left really is left and so forth)
Holding shift and using the trackpad to scroll around highlights from where the cursor is when you start.
Spacebar works as page down in a document (or browser)
Shift + Spacebar works as page up in the same fashion.
----
On your home screen:
Menu + W: Select Wallpaper
Menu + P: Personalize Menu
Menu + N: Show Quicklaunch
----
Long press of the Search button brings up a menu of apps you have installed that can use it. The genius button replaced the search button on this device, so you will have to remap the key to use this functionality.
See this thread for remapping the genius to search:
http://forum.xda-developers.com/showthread.php?t=1285244
If you do not have more then one app that uses this long-press search shortcut menu, it will default to the only one that can (google voice - or nothing if none are installed)
The ability to use this menu has to be programmed into the individual app itself - so it's a crapshoot if you can find any to do so. Soundhound is one, QR Droid Private 3 is another - and i'm sure you will find more.
----
Launch Apps
Search + A: (User Selectable)
All the way down to...
Search + Z: (User Selectable)
...are keys you can pick the apps that pressing the key combo launches.
Search + any letter from A to Z is user selectable in settings. Go to:
Settings -> Applications -> Quick Launch.
This will allow you to launch any app you set by using the hotkey combination assigned to it.
----
Individual apps may have their own shortcuts that override or change what the standard ones are depending on the app you are in.
They may change or ignore some of these shortcuts, so you may have to experiment on a per app basis.
----
Stock Apps:
----
Stock Browser App:
Menu + I: Zoom in
Menu + J: Back
Menu + K: Forward
Menu + A: Add bookmarks
Menu + B: Open bookmarks
Menu + T: Windows
Menu + Space: Home
Menu + F: Find on page
Menu + E: Select Text
Menu + G: Page info
Menu + S: Share Page
Menu + D: Downloads
Menu + H: History
Menu + R: Print
Menu + P: Settings
----
Stock Calendar App:
Menu + T: Today
Menu + S: Refresh
Menu + G: Go To
Menu + P: Settings
----
Google Gmail App:
Alt + Trackpad Up: Scroll To Top (In message)
Alt + Trackpad Down: Scroll To Bottom (In message)
Menu + S: Add Star (In message)
Menu + F: Forward (In message)
Menu + R: Reply (In message)
Menu + A: Reply-all (In message)
Menu + Y: Archive message (In message | Inbox)
Menu + U: Refresh (Inbox)
Menu + C: Compose (Inbox)
Enter | Press trackpad: Open Selected (Inbox)
Alt + Trackpad Up: Go To Top (Inbox)
Alt + Trackpad Down: Go To Bottom (Inbox)
----
Stock Quick Lookup App:
Google Search & YouTube:
Menu + J: Back
Menu + K: Forward
Wikipedia & Google Dictionary:
Menu + J: Back
Menu + K: Forward
Menu + L: Language
----
Google Maps:
Alt + Trackpad Up: Go To Top (In lists)
Alt + Trackpad Down: Go To Bottom (In lists)
----
Note: Menu + (whatever) shortcuts will NOT work with a soft keyboard, you must have the physical keys to press to make it happen. If a device does not have a hardware keyboard, you cannot use the menu shortcuts.
----
Dialer Codes
Dialer codes are a sequence of characters you enter in to the phone app on your device, just like you were dialing a number to call.
Dialer Codes:
Code:
*#06# - imei number
*#61# - Call forwarding status
##002# - Erase forwarding number
*43# - Activate call waiting
#43# - Deactivate call waiting
*#*#4636#*#* - Testing Menu
*#*#8255#*#* - Gtalk
( If anyone has found any others please share. Thanks! )
----
If anyone finds any post them below and i'll copy them up to the top.
Blue6IX said:
Having recently discovered these myself, and seeing that others aren't aware of them, we need a list here.
The majority of these shortcuts require a hardware keyboard to function - and make having one that much more valuable beyond the other obvious benefits.
These will make your life a whole lot easier - no longer will you have to do things the hard way through the touch interface.
Let's start:
Holding the hardware menu button and pressing other characters does stuff.
First of all, you can find out menu shortcuts on your own. Hit menu once to open it, then hold it and it will show them on the menu options.
In a text field:
Menu + X = cut
Menu + C = copy
Menu + V = paste
Menu + A = select all
Also:
Alt + trackpad up = top of page
Alt + trackpad down = bottom of page
Alt + trackpad left = beginning of line
Alt + trackpad right = end of line
(when the keyboard is slid out, the trackpad orientation changes to be proper for the way you are holding it, so left really is left and so forth)
Holding shift and using the trackpad to scroll around highlights from where the cursor is when you start.
Spacebar works as page down in a document (or browser)
Shift + Spacebar works as page up in the same fashion.
----
Long press of the Search button brings up a menu of apps you have installed that can use it. The genius button replaced the search button on this device, so you will have to remap the key to use this functionality.
See this thread for remapping the genius to search:
http://forum.xda-developers.com/showthread.php?t=1285244
If you do not have more then one app that uses this long-press search shortcut menu, it will default to the only one that can (google voice - or nothing if none are installed)
The ability to use this menu has to be programmed into the individual app itself - so it's a crapshoot if you can find any to do so. Soundhound is one, QR Droid Private 3 is another - and i'm sure you will find more.
----
Also, pressing Search + (key) will open apps and whatnot - these shortcuts are configurable in settings.
Settings -> applications -> quick launch.
Search + (key) shortcuts are quick launch shortcuts.
----
Individual apps may have their own shortcuts that override or change what the standard ones are depending on the app you are in.
Gmail, the browser, jota text editor, and etcetera will change or ignore some of these shortcuts, so you may have to experiment on a per app basis.
----
I don't have the time on hand to post the whole list of shortcuts, i'm logging in from a terminal where i'm working today, but wanted to get this started.
I'll definitely add more later - but I encourage others to post here with shortcuts they know or discover.
Let's really get the most out of our device, and not using the keyboard shortcuts is ignoring one of the greatest benefits of a hardware keyboard.
Note: Menu + (whatever) shortcuts will NOT work with a soft keyboard, you must have the physical keys to press to make it happen. If a device does not have a hardware keyboard, you cannot use the menu shortcuts.
Click to expand...
Click to collapse
So cool gonna play with this now
I rooted my mt4gs (unlock via htcdev which leaves S-ON, then CWM and SU) in order to kill off some bloatware and remap the genius button to search. I'm using the 1.63.531.2 710RD (stock) ROM.
Now that I have a search button, I'd really like to get access to the search+letter Quick Launch mappings like I had on my stock G2.
But Settings -> Applications has no submenu for Quick Launch (I guess they stripped it out because of the genius button). Quick Launch itself works, I believe, since search+g launches the Gmail app.
How can I enable the Quick Launch settings screen?
Or is there a flat file I can edit to enable all the search+[whatever] mappings that I like?
Beg pardon if this is addressed in another thread -- couldn't find.
Hi, T-Mobile G2 user here. These shortcuts are avaliable for all Android phones that run gingerbread and below. Unfortunately I've heard that they have been completely removed in Ice Cream Sandwich for some very odd reason. Additionally, in Gingerbread some of these shortcuts are broken.
In my case, I'm running 2.3 (CM 7.0.3) and I've noticed that the cut/copy/paste shortcuts have been completely made broken because of the new "text selection" system that they added in gingerbread.
Additionally, some of the shortcuts mentioned don't work for me. Shift Space for example doesn't scroll up in the browser for example.
I hope Google brings them back. This is one of the main reasons why I stick to Android phones that have a fully QWERTY keyboard.
Anyways here's a shortcut I recently discovered, at least on the G2.
In the browser, if you hold the menu button and tap on a link, the link gets open in a new tab (in the background for me). This is a really awesome feature in my opinion, though it only works in the keyboard menu button, and not the "portrait" menu button.
Thanks for the useful information!!
Change/Switch Language
Also....
Alt + Space ==> change the language of the keyboard (i.e. English <--> Hebrew).
(I tried Googling it with no success, so I guess this shortcut in less familiar, hence worth mentioning) :victory:

Categories

Resources