提交 a1b673e1 编写于 作者: T Takeshi Hagikura

Add explanation why setNextFocs is done programatically

上级 0a0259dd
......@@ -264,6 +264,10 @@ public class FlexItemEditFragment extends DialogFragment {
}
private void setNextFocusesOnEnterDown(final TextView... textViews) {
// This can be done by setting android:nextFocus* as in
// https://developer.android.com/training/keyboard-input/navigation.html
// But it requires API level 11 as a minimum sdk version. To support the lower level devices,
// doing it programatically.
for (int i = 0; i < textViews.length; i++) {
final int index = i;
textViews[index].setOnEditorActionListener(new TextView.OnEditorActionListener() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册