I need to set imeOptions on my CustomEditText.
But the imeOptions is not available.
My CustomEditText:
public class CustomEditText extends AppCompatEditText {
private Context context;
public CustomEditText(Context context) {
super(context);
this.context = context;
}
public CustomEditText(Context context, AttributeSet attrs) {
super(context, attrs);
this.context = context;
}
public CustomEditText(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
this.context = context;
}
}
Your
CustomEditTextcode is woking fine in my deviveYou need to set
android:inputType="text"withandroid:imeOptions="actionNext"You can set
inputTypeandimeOptionsas per your requirementCheck this below example