Android :: Example / Code To Customize Onscreen Keyboard View?
I need to hide all keys except numbers, point and dash and change the dash behavior.
Unfortunately attribute android:inputType="number|numberSigned| numberDecimal" doesn't hide @, #, $ etc. keys.
How can I customize the soft keyboard view? I actually need to show and react to my custom view. What is is the fast and right way to implement it?
Please advise some example or code snippets helps to move forward.
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Android :: Onscreen Keyboard Too Big - Anyway To Detect Its Presence
In one of my custom views, I have an EditText. When the onscreen keyboard appears, it takes up too much space for my custom view. I would like to turn off visibility of a few of my components whenever the onscreen keyboard is present. Then turn them back on when it goes away. Anyway I can add a listener of some kind to detect the opening/ closing of the onscreen keyboard?
View Replies!
View Related
Android : Way To Scroll Through AutoCompleteTextView In Landscape With Onscreen Keyboard
Is this possible? Lets say I have an ACTV that shows you a list of contacts. If I place a T in the ACTV then it may generate a result of 10 contacts. In landscape mode (physical keyboard not open but phone turned sideways), the dropdown list gets covered by the onscreen keyboard. This will generate completion hints at the top of the keyboard. But these hints do not cover all of the data behind the ACTV. There is no way for the user to scroll through the entire list to see all of the data. There should be someway to force the ACTV to scroll as I move through the onscreen completion hints. This would be an acceptable replacement of the ACTV list. There does not seem to be any such association. Also, there does not seem to be any public association between the completion hints and your ACTV adapter. Currently, the only way that I know of matching a view(custom and holds data such as phone #, etc) referenced by my ACTV adapter is to do a match on the text placed in the ACTV when selected from the completion hint. I am posting here as the http://groups.google.com/group/android-developers/browse_frm/thread/5... thread appears to be dead.
View Replies!
View Related
Android :: Android Prevent Device Emulator From Popping Up Onscreen Keyboard?
I am developing an Android application. What I find most annoying during testing is, that the emulator always pops up that on-screen telephone keyboard whenever I click into a text input field. Since I input my data with the keyboard anyway I find that most annoying. Can one switch that on-screen keyboard appearance off? Or can one change that so that it at least presents a mini-qwerty keyboard as my actual device does, not that old-fashioned T9 keyboard?
View Replies!
View Related
Android :: Build SDK For Eclipse On Win XP And Customize Source Code?
1. I built SDK Android on Ubuntu OS completely. But this SDK only for eclipse on Ubuntu OS. I want to create SDK for Window XP. How can I do that? Does it like how to built SDK Android on Ubuntu OS? 2. I download Apps in Android source code such as: Email, Calendar, Music, Setting,... but when I import them into eclipse, it have some errors: project Calendar requires "import android.provider.Calendar;", "import android.provider.Calendar.Events;",... So where can I download "android.provider.calendar", "android.provider.calendar.Events"... from? Or how can I set up environment?
View Replies!
View Related
Android :: Source Code For Keyboard In Droid 2.1?
Does anyone know if the source code for the updates of the keyboard in Android 2.1 is available somewhere? I know that you can get the source for the Android keyboard here: http://android.git.kernel.org/?p=platform/packages/inputmethods/Latin... But this doesn't seem to contain code for the updates in 2.1, like voice input. I would really like to see this code.
View Replies!
View Related
Android :: Onscreen Keypad Interactions
I've seen with the onscreen keypad, the application does not seem to be notified that the OSK has been brought in front of it.I would like to be able to change the layout of my screen so that relevant information is visible when the keypad is brought to the fore.I have information onscreen that changes as the user types in a number.Also, the implementation of the OSK in landscape mode completely breaks the functionality of our application since the OSK takes over the complete screen. It would be much better for us if a 12-key numeric keyboard were available on one side of the screen and leave the other side available to the application. Can there be layout qualifiers such as we have with layout-land- keyshidden...such as layout-land-osk?
View Replies!
View Related
Android :: Way To View Phone Native Code Profiling?
I started my emulator with ./emulator -trace profile -avd emulator_15. I then tracked down the trace files to ~/.android/avd/rodgers_emulator_15.avd/traces/profile, where there are six files: qtrace.bb, qtrace.exc, qtrace.insn, qtrace.method, qtrace.pid, qtrace.static. I can't figure out what to do with these files. I've tried both dmtracedump and traceview on all of the files, but none seem to generate any output I can do anything with. How can I view the proportion of time taken by native method calls on Android?
View Replies!
View Related
HTC Magic :: Emulator With Onscreen Buttons For Phone?
Well I was wondering if there was an emulator that had onscreen buttons? I can't seem to find one, also if I can only get it by downloading my to my CPU first could you give me some advice on how to get it to my phone? I hook it up and mount it with a USB, and I moved the file to the phone but how do I access it from my phone. excuse my ignorance but I'm new at this
View Replies!
View Related
Android :: Extracting Activity Code And Creating Graph View Class
I had a bunch of code in an activity that displays a running graph of some external data. As the activity code was getting kind of cluttered, I decided to extract this code and create a GraphView class: public class GraphView extends LinearLayout { public GraphView(Context context, AttributeSet attrs) { super(context, attrs); LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); inflater.inflate(R.layout.graph_view, this, true); } public void start() { // Perform initialization (bindings, timers, etc) here } public void stop() { // Unbind, destroy timers, } } Moving stuff into this new LinearLayout-derived class was simple. But there was some lifecycle management code associated with creating and destroying timers and event listeners used by this graph (I didn't want this thing polling in the background if the activity was paused, for example). Coming from a MS Windows background, I kind of expected to find overridable onCreate() and onDestroy() methods or something similar, but I haven't found anything of the sort in LinearLayout (or any of its inherited members). Having to leave all of this initialization code in the Activity, and then having to pass it into the view seemed like it defeated the original purpose of encapsulating all of this code into a reusable view. I ended up adding two additional public methods to my view: start() and stop(). I make these calls from the activity's onResume() and onPause() methods respectively. This seems to work, but it feels like I'm using duct tape here. Does anyone know how this is typically done?
View Replies!
View Related
HTC Droid Eris :: Onscreen Keypad Not Coming Up When A Call In Progress / Fix It?
Anyone have a problem with the onscreen keypad not coming up when a call is in progress? My credit card company called me with an automated message to notify me about possible fraud on one of my credit cards. At one point to continue with the call, I had to press "1", but the onscreen keypad would not come up when I tapped on the keypad icon. I kept tapping but nothing happened, and ended up losing the call. The keypad icon has worked on other calls, just not this one.
View Replies!
View Related
Android :: Relative Layout In Java Code With Inflate And Custom View - Position Error
I have a custom view that I had to write for a large scrollable image, as the images are larger than the size of the screen. Before, I had tried to do it by putting the image into a ScrollView but that of course didn't work. The view itself is within a RelativeLayout within the activity and at the bottom of the screen I have two buttons that are used for navigation and at the top a TextView with a caption for the activity (the main header is already being used here for instruction). In my below code, I've checked the Hierachy Viewer to confirm all the elements are loaded and in the Activity I can see the TextView, however it overlays the ZN5ScrollView area and below the image I just have a blank area of the size defined rather than my buttons. For the bottom navigation, the Hierachy Viewer is saying the absolute_y of the bottom navigation is 480. I'm wondering if anyone can help with my layout code here to get this working correctly? Bottom navigation is 50px high, ZN5ScrollView is 365px above the navigation, and the TextView takes up the rest of the area at the top
View Replies!
View Related
Android :: Change Nested Layout's Child View Group's Width In Java Code?
I have a layout xml file with a linear layout. One of the children is again a ViewGroup Relative layout. In my java code i want to change the width of this child Viewgroup for my requirements. I tried this ViewGroup childViewGroup = (LinearLayout)findViewById(childViewGroup); LayoutParams l = childViewGroup.getLayoutParams(); l.width = 360; childViewGroup .setLayoutParams(l); I couldn't do this because findViewById(childViewGroup) doesn't fetch ViewGroups it does only for Views. Note: I cant define a whole new layout.xml for this minor requirement since it is huge layout file and might cause performance overhead. I wanted to just change the width of the child view group in my java activity code.
View Replies!
View Related
HTC EVO 4G :: Keyboard (landscape View) Y Key Not Working
I was typing on my keyboard (landscape view) and noticed that the "Y" key didn't work. I though it was nothing, until I tried to exit out of my navigation app, but the exit button wouldn't work. So i downloaded a draw app to see it maybe it was just my screen, and what do you know, i was able to draw swiping up and down holding the phone upright. But when trying it side to side, a whole panel doesn't work. wth? Tried to reboot and nothing. Anyone else have this issue? Looks like its back to sprint this evo goes. Peep the pics.
View Replies!
View Related
Android :: Soft Keyboard Not Open On Custom View In Landscape Mode?
I've been experimenting with the IMM and it's mostly straightforward, but for some reason, my custom view that launches the soft keyboard works only in portrait mode. Launching it is easy enough: InputMethodManager imm = (InputMethodManager)getContext().getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInputFromWindow(getWindowToken(), InputMethodManager.SHOW_IMPLICIT, 0); I've seen a couple notes about the soft keyboard only working in portrait but I assume this was a limitation in a previous version, since all the Android EditText views work fine in both portrait and landscape. Is there some additional piece of work needed to enable landscape?
View Replies!
View Related
Android :: Access APIs Android View Surface.cpp From My Native Code
I am working on video renderer application which need surface and control of surface. And through isurface i can register heap buffer to that surface and post buffer operation. I have gone through android_view_surface.cpp file. It is having all required APIs which are helpful for my application. But i don't know how can i implement it. What are the procedures to get access of those APIs.
View Replies!
View Related
Android :: How To Filter Objects To Display Onscreen Objects On Map?
I have an application that have a Google map on Google Android 1.5 since we have been working on the application for a long time, we are not in stage of upgrading to the newest framework, so we are using 1.5. Now, I have map locations that are dynamically generated and drawn on the map at run-time to visualize some streams, Up to this point the application is working fine, Now my problem is that I am trying to filter the objects ( addresses) to visualize only the on-screen ones. I do NOT want to visualize the addresses that are off-screen. The way I am trying to do this is to check the screen-coordinates of each object (address) before visualizing it, then it the coordinates (x,y) more than (0,0) and less than (320, 460). I should visualize it. I am trying to use this approach, but it is not working for some reasons, I have tried many posts but could not understand why, there must be something missing somewhere that I am not aware of.
View Replies!
View Related
Motorola Droid X :: APP - ROOT - Keyboard - Keyboard Manager - Dual Keyboard - Portrait - Landscape Switch
I tried it and it works so far. Dev = ne0fhyk from XDA. From the XDA forum: Link to app page = [APP][ROOT/Keyboard] Keyboard Manager - Dual keyboard: Portrait/landscape switch - xda-developers Verbage: Keyboard Manager allows you to customize what keyboard (input method) appear on input based on your phone orientation. It displays the keyboards you have enabled on your android device, and let you select one per orientation (landscape/portrait). As your phone switch orientation, the app automatically switch the keyboard. Requirements: - Rooted android device (app was tested on Samsung captivate 2.1) - Root Explorer app, or similar app that allows you to edit the permissions of a file. To install: 1- Download the app (KeyboardManager.apk) on your device sdcard. 2- Using Root Explorer, move the apk file to /system/app 3- Using Root Explorer, edit the file permissions like below: -- User: 'Read/Write' checked --Group: 'Read' checked --Others: 'Read' checked 4- Exit Root Explorer The app should be visible in your launcher as 'Keyboard Manager' Update: - Added option to disable notification icon -' start on boot' feature is disabled because it's not yet complete and tested... Sorry for the confusion Bugs: -On certain applications (i.e: Messaging on Samsung Captivate), the input window occasionally freeze on orientation switch. Exiting the app, and resuming should fix it. The app is still in development.
View Replies!
View Related
Android :: Better Keyboard - Switch From T9 Keyboard To Regular Qwerty Keyboard
For those of you that are familiar with better keyboard. I was wondering about an easy way to switch from the t9 keyboard to the regular qwerty keyboard. I was under the impression that swiping left would toggle between the 2 but all that does is bring me to the numbers and symbols keyboard. I've been changing back and forth to the android keyboard because its faster than going into the better keyboard settings.
View Replies!
View Related
Android :: Populate View Flipper Child View With List View?
I am trying to set up a ViewFlipper that changes a SlidingDrawers content each time a button is pressed. So far every view I set up worked fine, but now I am trying to create a ListView (including single_choice_mode) within a child view of the ViewFlipper, but my attempt only let to a NullPointerException. As I only discovered ViewFlipper today, I am not yet familiar with it and may not have understood it completely. if someone could give me a hand and help me find out what I have done wrong, that would be great. Here is what I have done: The code for the onClick event of the ImageButtons: public void onClick(View v){ if (v == btnExposure){ mFlipper.setDisplayedChild(0); } else if (v == btnProperties){ mFlipper.setDisplayedChild(1);} else if (v == btnSpecialEffects){ mFlipper.setDisplayedChild(2);.............
View Replies!
View Related
Android :: Customize Search Bar UI
I am developing an application that needs to extend the functionality of the android search bar. Basically I need to show a bitmap image for each suggestion. The current implementation of the search bar enables to show resource icons (with Search Manager.SUGGEST_COLUMN_ICON_1 and Search Manager.SUGGEST_COLUMN_ICON_2). I don't see the way to customize the native search dialog. I think it is not a good idea to create my search component. I found an old entry in this group, but it doesn't have any answer (HTTP:// www.mail-archive.com/android-developers@googlegroups.com/msg31090.html). Basically the question is the same: "is the search UI customizable at all"?
View Replies!
View Related
Android :: Customize Row In ListPreference
Is there a way to use a custom row for the ListPreference in the Android preference screen? Currently I populate the ListPreference like this, but I need more info (description) shown in the List int count = items.size(); CharSequence[] entries = new CharSequence[count]; CharSequence[] entryValues = new CharSequence[count]; for (int i = 0; i < count; i++) { entries[i] = items.get(i).toString(); entryValues[i] = String.valueOf(i); } langPref.setEntries(entries); langPref.setEntryValues(entryValues);
View Replies!
View Related
Android :: How To Customize Lock Screen?
I'm building a custom Home app. I want to change the lock screen to match my theme. For example changing the wallpaper. What I see in the lock screen now is the default wallpaper. I've tried searching this forum but can't find the solution. Yet I found some apps on the market that can do this.
View Replies!
View Related
|