Soft Keyboard imeAction 'next' not working with AutoCompleteTextView

by Chris66 » Fri, 23 Apr 2010 08:02:19 GMT


Sponsored Links
 Hello,

  I have a layout with four AutoCompleteTextViews and the next button
on the soft keyboard doesn't work on either of them. I've tried
setting android:imeOptions and android:nextFocusRight/Down but it was
of no use. I also tried removing the FocusChanged/EditorAction/
TextChanged listeners of the views without success. Here is how one of
the views looks like:

numberTextView =
(AutoCompleteTextView)v.findViewById(R.id.street_number);
numberTextView.setOnFocusChangeListener(new OnFocusChangeListener() {
            public void onFocusChange(View view, boolean hasFocus) {
                if (hasFocus){          crossingText.setText("");  focused =
null;  recentList.setAdapter(null); }
            }
});

<AutoCompleteTextView    android:id="@+id/street_number"
android:layout_width="@dimen/searchAddrNoW"
android:layout_height="@dimen/searchWidgetsHeight"
android:singleLine="true"    android:textColor="#F000"
android:textSize="@dimen/standardTextSize"
android:hint="No"  android:inputType="number"/>

Could anyone give me some advice, please?

Thanks

--



Other Threads

1. selecting item from a list

I'm trying to use a ListView with Buttons beneath the listview, and am
running into problems where the listview and buttons just don't
realize each other are there (they overlap)

Currently the xml file is:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content">

        <Button
                android:id="@+id/addTask"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="Add Task" />

    <ListView
        android:id="@id/android:list"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:drawSelectorOnTop="false"/>

</RelativeLayout>

and the java code is:

public class TaskManager extends ListActivity {
        protected static final int SUB_ACTIVITY_REQUEST_CODE = 1337;
        private String array_spinner[];
        final int SUCCESS_RETURN_CODE = 1;
        List<String> tasks;
        int currentposition;

        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.taskmanager);

                ArrayList <String> arrayList = new ArrayList<String>();
                arrayList.add("Task1");
                arrayList.add("Task2");
                arrayList.add("Task3");

                tasks = arrayList;
                Button addButton = (Button)findViewById(R.id.addTask);

                addButton.setOnClickListener(new View.OnClickListener() {

...
...

I'm also not sure if using a ListView in this case is the correct
solution.  What I'm trying to do is have a list of options that the
user can select, and when they select it, it remains highlighted, then
I can use that value when I press another button, for example:

item 1
item 2
item 3

[Move item up]
[Move item down]

where [ ]'s are buttons

Any suggestions with what I should actually be using?  I tried looking
up "android selection list" but the closest thing was selection
dialog, which isn't what I'm looking for.

Thanks,
Moiraine

-- 

2. glTexImage2D very slow on phones like Nexus one

Just a guess: It can be the same error reported here:
http://code.google.com/p/android/issues/detail?id=7520

Take a look...

Felipe Silveira
http://www.felipesilveira.com.br




> 

3. Strange black blank between keyboard and customized EditTextView

4. how to build the gallery application.

5. How does NotificationService work?

6. How to set and get thread priority from Java and native layers

7. Send SMS in Android