Android-7.0:编辑器actionlistener中的EditText错误actionId

Android-7.0:编辑器actionlistener中的EditText错误actionId,android,android-studio,android-edittext,android-7.0-nougat,Android,Android Studio,Android Edittext,Android 7.0 Nougat,我有一个像这样用xml声明的编辑文本,具有以下属性,并且我设置了android:imeOptions=“actionNext” 在Api

我有一个像这样用xml声明的编辑文本,具有以下属性,并且我设置了
android:imeOptions=“actionNext”

在Api<24中,我获得了
actionId
作为
EditorInfo.IME\u ACTION\u NEXT
,它工作正常。但当我在安卓7.0上运行我的应用程序时,我会得到
actionId
作为
EditorInfo.IME\u ACTION\u IME\u ACTION\u UNSPECIFIED

有人能指出为什么我在Api-24中得到不同的actionId吗。 如果Android-7.0中的editText有任何更改,请指向一些链接。 谢谢


注意:我的编辑文本放在列表视图中

我在使用
android:imeActionLabel

尝试删除它并保留默认实现

尝试将
android:inputType=“text”
添加到您的
EditText
@Logic:仍然相同的结果在android 7中没有更改。您的代码在我的牛轧糖设备中使用actionId作为下一个IME\u ACTION\u时运行良好。您在使用自定义键盘吗?@FebiMathew:My editText放在listview中。可能是这会导致问题
<EditText
    android:id="@+id/ui_row_create_poll_edit_text_txt_name"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_centerVertical="true"
    android:layout_marginLeft="@dimen/margin_normal"
    android:layout_toLeftOf="@id/ui_row_create_task_user_info"
    android:background="@android:color/transparent"
    android:paddingBottom="@dimen/padding_large_plus_little"
    android:paddingLeft="@dimen/padding_large_plus_little"
    android:paddingTop="@dimen/padding_large_plus_little"
    android:singleLine="true"
    android:maxLength="@integer/task_length"
    android:imeOptions="actionNext"
    android:textColor="@color/black"
    android:textSize="@dimen/font_very_large"/>
 public boolean onEditorAction(TextView v, int actionId, KeyEventevent{
    if (actionId == EditorInfo.IME_ACTION_DONE || actionId == EditorInfo.IME_ACTION_NEXT) {
        listener.onActionDone(option, etOption);
    }