[Q] Button value + Button Value = TextView HELP - Android Q&A, Help & Troubleshooting

I'm a noob with Java but have a question that I cant seem to find the answer too.
How do I have multiple buttons, each with different numerical values that when clicked add to each other and results shown in the TextView without requiring the click of an equals button. I was going to try to copy the theory of the onclick from this calculator code but it didn't work because I either did it wrong or I am just too stupid!
For example:
Button 1 (2.40) + Button 2 (1.00) + Button 3 (3.20) = TextView (6.60)
or
Button 1 (2.40) + Button 2 (1.00) + Button 2 (1.00) + Button 3 (3.20) = TextView (7.60)
Etc, etc.
If anyone could help I would really appreciate it.

Related

Prime Keyboard Shortcuts

Can we get a thread going for all the keyboard shortcuts that we know for using the prime? I've been using some word processing on polaris office but all I really know are:
Polaris Office:
Ctrl + C Copy
Ctrl + V Paste
Ctrl + X Cut
Ctrl + Z Undo
Fn + Right Arrow End of line
Fn + Left Arrow Beginning of line
Home Screen:
Alt + tab switch between programs
2 finger scroll - drag two fingers up and down
home screen switching - drag two fingers left and right in the home screen
EDIT: More stuff posted by ravizzle, grabbed from corruptz0r. http://forum.xda-developers.com/showthread.php?t=1071739
Menu + W = change wallpaper
Menu + M = manage applications
Menu + N = show notifications
Menu + A = add item to homescreen
Menu + S = new search (or you can just start typing)
Menu + P = open settings
Home + B (or Search + B) = open browser
Home + C (or Search + C) = open contacts
Home+ L = open calendar
Home + Esc = exit back to homescreen
In the browser:
Menu + N (or Ctrl + T) = new tab
Menu + I (or Ctrl + I) = zoom-in on page
Menu + O (or Ctrl + O) = zoom-out on page
Menu + J = open download manager
Menu + L = open search bar
Menu + R (or Ctrl + R) = refresh current page
Menu + F (or Ctrl + F) = find on page
Menu + B = open bookmarks
Menu + H = view browsing history
Menu + D = add bookmarks
Menu + S (or Ctrl + S) = open social network sharing menu
Menu + G = page info
Menu + E = select text
Menu + P = open browser settings
Menu + W (or Ctrl + W) = closes the current open tab
FN + Tab = toggle browser toolbar on/off when it's hidden
Ctrl + Shift = select input method (universal outside of browser also)
In Gmail:
C = compose new message
L = go to Label menu
X = check message in Inbox
V = add label to current message
M = delete highlighted or checked messages
Alt + Up = go to top of Inbox
Alt + Down = go to bottom of Inbox
Alt + Up Arrow = go home position on page
Alt + Down Arrow = go end of page
Alt + Left Arrow = go start of line
Alt + Right Arrow = go to end of line
Shift + Arrow = selects text in that direction (for copying/cutting).
Shift + Backspace = forward delete (on US kbd in stock email client)
Alt + Space = brings up the special characters menu
Sent from my Transformer Prime TF201 using Tapatalk
The shorts from the TF101 should all be working. But have they added control+arrow keys to generic text entry areas yet?
Sent from my Transformer TF101 using Tapatalk
Not surprised ctrl+y didn't work.....
It seems that I can also do alt + tab to switch between programs with the keyboard. For some reason, when I'm in the merriam-webster dictionary app, I am not able to alt tab.
Sent from my Transformer Prime TF201 using Tapatalk
foboi1122 said:
It seems that I can also do alt + tab to switch between programs with the keyboard. For some reason, when I'm in the merriam-webster dictionary app, I am not able to alt tab.
Sent from my Transformer Prime TF201 using Tapatalk
Click to expand...
Click to collapse
didnt know this worked thanks!
This is kanged from tf101 forum. All credit to corruptz0r. http://forum.xda-developers.com/showthread.php?t=1071739
Menu + W = change wallpaper
Menu + M = manage applications
Menu + N = show notifications
Menu + A = add item to homescreen
Menu + S = new search (or you can just start typing)
Menu + P = open settings
Home + B (or Search + B) = open browser
Home + C (or Search + C) = open contacts
Home+ L = open calendar
Home + Esc = exit back to homescreen
In the browser:
Menu + N (or Ctrl + T) = new tab
Menu + I (or Ctrl + I) = zoom-in on page
Menu + O (or Ctrl + O) = zoom-out on page
Menu + J = open download manager
Menu + L = open search bar
Menu + R (or Ctrl + R) = refresh current page
Menu + F (or Ctrl + F) = find on page
Menu + B = open bookmarks
Menu + H = view browsing history
Menu + D = add bookmarks
Menu + S (or Ctrl + S) = open social network sharing menu
Menu + G = page info
Menu + E = select text
Menu + P = open browser settings
Menu + W (or Ctrl + W) = closes the current open tab
FN + Tab = toggle browser toolbar on/off when it's hidden
Ctrl + Shift = select input method (universal outside of browser also)
In Gmail:
C = compose new message
L = go to Label menu
X = check message in Inbox
V = add label to current message
M = delete highlighted or checked messages
Alt + Up = go to top of Inbox
Alt + Down = go to bottom of Inbox
Alt + Up Arrow = go home position on page
Alt + Down Arrow = go end of page
Alt + Left Arrow = go start of line
Alt + Right Arrow = go to end of line
Shift + Arrow = selects text in that direction (for copying/cutting).
Shift + Backspace = forward delete (on US kbd in stock email client)
Alt + Space = brings up the special characters menu
Sent from my Transformer Prime TF201 using xda premium
^^^^
awesome
We need to sticky this!
Updated with some gestures. Feel free to contribute more if u find em
In browser
Function+left (home) = Jump to top of screen
Funtion+right (end) = Jump to bottom of screen
Are there any finger gestures or mouse controls to do this?
thanks
thanks to all he contributors on this. I have clicked the relevant "thanks" boxes.
I have a bookmark to this page on my home screen. Very useful.
Excel Shortcut Needed
Does anyone know how to get to the second line of the same cell in excel (docs to go, polais, etc.) on a latop it is alt+enter...
is there a shortcut for "complete URL" shortcut
on computers: CTRL + ENTER = .com - in browsers
on TP: ?
This should be stickied in general or something. Very useful info.
Shift+Space toggles predictive typing (if you have that enabled on the keyboard). Works in browser, AndChat, and imo
is there a short cut to open apps? thought that would be a key on the kb, maybe im blind but dont see it.
So has anyone figured out a way to go to your applications using the keyboard? I see manage apps and a bunch of other shortcuts, but nothing to open applications. That is bizarre to me.
Any way to create custom shortcuts/keyboard commands?
I am using the Maxthon browser, but when I touch the web function key, it opens the stock browser. Anyone figured out to remap this?
Sent from my Transformer Prime TF201 w/Dock using Tapatalk
At the home screen, start typing and the Google search function will come up and start searching your tablet. I know this is not opening the app drawer, but it is a start.
Sent from my Transformer Prime TF201 w/Dock using Tapatalk
Thanks - that a good start.

[Q] Task Switching with the TF201 Keyboard dock

Just got the keyboard dock for my transformer prime. This thing is slick, and the button design is really well done. The one thing that keeps bothering me is the apparent lack of task switching functionality. The Android has the button in the bottom left for quickly switching between tasks, and AFAIK with the keyboard, you still have to move the mouse and click on that icon to task switch. Is there a better way to do that, such as a hotkey shortcut that I'm missing. I'm hoping for something akin to alt-tab on windows, or a key that makes that task menu pop up.
Jacob111 said:
Just got the keyboard dock for my transformer prime. This thing is slick, and the button design is really well done. The one thing that keeps bothering me is the apparent lack of task switching functionality. The Android has the button in the bottom left for quickly switching between tasks, and AFAIK with the keyboard, you still have to move the mouse and click on that icon to task switch. Is there a better way to do that, such as a hotkey shortcut that I'm missing. I'm hoping for something akin to alt-tab on windows, or a key that makes that task menu pop up.
Click to expand...
Click to collapse
Errr - try Alt-Tab ;-)
Works for me....
barryflanagan said:
Errr - try Alt-Tab ;-)
Works for me....
Click to expand...
Click to collapse
Wow, I win the idiot award for missing that one. I didn't even realize there was a 'tab' button on this thing. Thanks a lot.
barryflanagan said:
Errr - try Alt-Tab ;-)
Works for me....
Click to expand...
Click to collapse
Whilst having a fag during half time saw this and just had to say priceless
slef2003 said:
Whilst having a fag during half time saw this and just had to say priceless
Click to expand...
Click to collapse
I presume you're watching us do in Italy
Good luck this afternoon!
Admittedly, I never realized there was an alt key... Glad I saw this!
barryflanagan said:
I presume you're watching us do in Italy
Good luck this afternoon!
Click to expand...
Click to collapse
You is very correct!!
will be watching later but have never really been an England rugby supporter ...
It helped that the Italian Half backs are not too sharp
slef2003 said:
You is very correct!!
will be watching later but have never really been an England rugby supporter ...
It helped that the Italian Half backs are not too sharp
Click to expand...
Click to collapse
Haha, sorry - I saw Norwich in your profile so made an assumption.
Anyway, think I will Alt-Tab back to the match now
barryflanagan said:
Haha, sorry - I saw Norwich in your profile so made an assumption.
Anyway, think I will Alt-Tab back to the match now
Click to expand...
Click to collapse
Hey, don't be nasty now as I am an Ipswich supporter LOL
now if only asus would have alt-tab open up the standard ICS app switcher instead of this less useful windows 95 look-a-like...
man, i'm an idiot... i was the same, it can't be true that this simple function is left off. no, it's not, i'm just not using my brain. well, at least i can use google and xda to find answers
thanks for this thread D
At the home screen:
Menu + W = change wallpaper
Menu + M = manage applications
Menu + N = show notifications
Menu + A = add item to homescreen
Menu + S = new search (or you can just start typing)
Menu + P = open settings
Home + B (or Search + B) = open browser
Home + C (or Search + C) = open contacts
Home + L = open calendar
Home + Esc = exit back to homescreen
In the browser:
Menu + N (or Ctrl + T) = new tab
Menu + I (or Ctrl + I) = zoom-in on page
Menu + O (or Ctrl + O) = zoom-out on page
Menu + J = open download manager
Menu + L = open search bar
Menu + R (or Ctrl + R) = refresh current page
Menu + F = find on page
Menu + B = open bookmarks
Menu + H = view browsing history
Menu + D = add bookmarks
Menu + S (or Ctrl + S) = open social network sharing menu
Menu + G = page info
Menu + E = select text
Menu + P = open browser settings
Menu + W (or Ctrl + W) = closes the current open tab
FN + Tab = toggle browser toolbar on/off when it's hidden
Ctrl + Shift = select input method (universal outside of browser also)
In Gmail:
C = compose new message
L = go to Label menu
X = check message in Inbox
V = add Label to current message
M = delete highlighted or checked messages
Alt + Up = go to top of Inbox
Alt + Down = go to bottom of Inbox.
General:
Shift + Backspace = Forward delete (like a full keyboard "Delete" key)
Ctrl + X = Cut
Ctrl + C = Copy
Ctrl + V = Paste
Hold ALT + TAB = Show recent apps window
Sent from my Transformer Prime TF201 using XDA Premium HD app
A few more...
Nice list! but you forgot my favorite:
Alt-Delete = Delete entire line in a text field
A few more...
Search + E = Open Email
Search + P = Open Playlist
Search + M = Open Maps
A few more...
Search + A = Open Calculator
ALT + SPACE, = menu with special signs
ALT + Shift + TAB = Show recent apps window and cycle in reverse
Looks like I. will be using the stock browser more. Some of the shortcut keys only work with it, ie; ctrl+i to zoom in and ctrl+o to zoom out. Has anyone found how to get these to work in Chrome, Opera, or Dolphin?

[Q] Can an Android modifier key fallback on an action?

I'm working on an input device that has a button that I'd like to act both as a home button when pressed by itself, but also work as a modifier for the other buttons on the device.
I know you can do this in the kcm file with other buttons, and have something like:
Code:
key ESCAPE {
base: fallback BACK
alt, meta: fallback HOME
ctrl: fallback MENU
}
Is it possible to have something like:
Code:
key CTRL_LEFT {
base: fallback HOME
{SOMETHING HERE}: CTRL_LEFT
}
so that I can press that button with another button and have it not fallback on HOME?
Thanks in advance!
Moved, maybe a better service can be provided here, Thank You.

[Q]Long press volume button = change the song

What rom; Long press volume button = change the song.
thank you
I believe that can be achievable with some player.
Yes

[Q] Home Key "Morse Code" App?

I'm looking for an app (if it exists) that would allow you to program the home key to function as an app launcher based on how many times you press it in a set time.
For instance:
1 press = Home Screen
2 presses = Camera
3 presses = Foursquare
Etc.

Categories

Resources