【发布时间】:2017-03-08 10:29:02
【问题描述】:
我在我的活动中使用recyclerview,首先我使用垂直滚动视图它工作正常,现在我改为水平滚动视图。如果我打开键盘视图正在清除,它可以在没有打开键盘的情况下正常工作。所以我检查了我的代码,问题出在我的水平滚动视图中。我不知道如何解决这个问题,有人可以帮我解决这个问题。请在我打开键盘并关闭我的 UI 后找到我的代码和图像附件。
recyclerView.setHasFixedSize(true);
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);
recyclerView.setLayoutManager(linearLayoutManager);
addExpenseImageAdapter = new AddExpenseImageAdapter(AddExpenseActivity.this, imageBeanList);
addExpenseImageAdapter.onImageAddClick(this);
recyclerView.setAdapter(addExpenseImageAdapter);
【问题讨论】:
标签: android keyboard android-recyclerview horizontal-scrolling