2013-01-22 15 views
28

ile çalışmaz. Kullanıcı bir tanesini doldurduktan sonra bir sonraki düzenleme metnine odaklanmaya çalışıyorum. Kod, EditText ile kesinlikle düzgün çalışıyor, ancak AutoCompleteTextView uygulamasında uyguladığımda, klavyedeki Next (İleri) düğmesi yok Çalışıyorum İmleç, bulunduğu yerde kalır.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> 

bunu yapmak için doğru yolu nedir söyle: Bu kullanıyorum kodudur.

cevap

86

:) teşekkürler AutoCompleteTextView

android:imeOptions="actionNext" 

bu ekleyebilir ve çalışması gerekir.

+1

Eğer sana bir lütuf verirsem .. herhangi bir (itibara) sahip değilim .. hala ... çok teşekkürler @techieWings – chaitanyad

+0

Çok teşekkürler dostum! –

+0

Bunu kaçırdım. yansıtan için teşekkürler :) – iroiroys

İlgili konular