android - EditText flow, what determines the action button on virtual keyboard? -
i have 2 same identical edittext:
<edittext android:id="@+id/card_num_edit" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:layout_weight="1" android:digits="0123456789" android:ems="13" android:inputtype="phone" android:singleline="true" android:textsize="14sp" /> other one:
<edittext android:id="@+id/phoneregedit" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:layout_weight="1" android:digits="0123456789" android:ems="13" android:inputtype="phone" android:singleline="true" android:textsize="14sp" /> one of them have "next one" action button when virtual keyboard shows up, other have "ok" action button.
the "next one" passing focus next edittext "ok" doing nothing hiding virtual keyboard.

my question is, conditions decide button showing up? in opinion android have huge deficiency edittext's focus flow.
it done ime_options more info here
<edittext android:id="@+id/some_edittext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:imeoptions="actiondone"><!-- here set whatever option want -->
Comments
Post a Comment