2013-01-22 57 views
28

के साथ काम नहीं करता है, मैं उपयोगकर्ता के अंदर भरने के बाद अगले संपादन टेक्स्ट पर ध्यान केंद्रित करने की कोशिश कर रहा हूं। कोड EditText के साथ बिल्कुल ठीक काम करता है लेकिन जब मैं इसे AutoCompleteTextView पर लागू करता हूं, तो कीबोर्ड में अगला बटन नहीं होता है काम नहीं करता कर्सर रहता है जहां यह है।NextFocusDown AutoCompleteTextView

<LinearLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:orientation="horizontal" 
    android:weightSum="11" > 

    <AutoCompleteTextView 
     android:id="@+id/etLN" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:layout_weight="3" 
     android:ems="10" 
     android:nextFocusDown="@+id/etC" 
     android:inputType="textPersonName" > 

     <requestFocus /> 
    </AutoCompleteTextView> 

    <EditText 
     android:id="@id/etC" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:layout_weight="4" 
     android:ems="10" 
     android:hint="0.0" 
     android:nextFocusDown="@+id/etD" 
     android:inputType="numberDecimal" 
     android:text="" /> 

    <EditText 
     android:id="@id/etD" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:layout_weight="4" 
     android:ems="10" 
     android:nextFocusDown="@+id/etLN2" 
     android:hint="0.0" 
     android:inputType="numberDecimal" 
     android:text="" /> 
</LinearLayout> 

कृपया मुझे बताओ कि यह करने के लिए सही तरीका क्या: इस कोड मैं का उपयोग कर रहा है। :)

उत्तर

86

धन्यवाद अपने AutoCompleteTextView

android:imeOptions="actionNext" 

को यह जोड़ सकते हैं और यह काम करना चाहिए।

+1

अगर मैं आपको एक बक्षीस दे सकता हूं .. नहीं कि मेरे पास कोई (प्रतिष्ठा) है .. अभी भी ... बहुत धन्यवाद @techieWings – chaitanyad

+0

धन्यवाद बहुत दोस्त !! –

+0

मुझे याद आया। इसे प्रतिबिंबित करने के लिए धन्यवाद :) – iroiroys