gpt4 book ai didi

android - 在 ListView/RecyclerView 中使用 EditText 导航(下一步)

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:14:04 25 4
gpt4 key购买 nike

我在 RecyclerView 中有 EditText(在我有 ListView 之前,我遇到了同样的问题)

所以每个单元格,我都必须填写我的 EditText,然后单击“下一步”进入下一个 EditText。

Thing is Next 正在处理可见行。因此,在 7 行之后,将出现“完成”按钮。

有没有办法绕过它?

我试过:

android:imeOptions="actionNext"

没有结果

否则,一个好的方法应该是每次单击“下一步”时滚动 1 个元素。有什么办法吗???

发送

最佳答案

Hey Friend,

First at all, I am telling you the reason why it's happening.

As we ALL KNOW that RecyclerView is latest update version as Compare with ListView in Android.

- **RecycleView**
There ViewHolder Class we have to declare to use RecycleView
& BindHolder is method of RecycleView which is going to Bind the Data as per List of data with postion of ArrayList/List


But Main thing is that..
In Recycleview... only that portion of data is binded as per your Screen Portion like 10 item at a time...
when you scroll the recycle view the holder is clean them and fetch new data from list/arraylist with respect postion.


Holder is going to reuse its cell that y ..its calling Re-Cycle-View....means using same cell/row for display the new record.....

try to do debug test....you will understand what i am trying to say..


that's a reason , when you enter the text in Editext, that portion of YourScreen data is correct in order..

but when you scroll down the Recycleview ....data will mismatch with blank space...

because.....RecycleView is using its older View/Holder for binding new Incoming data...

if you have still confuse ....Mail me

Zafar Hussain
zafarhussain910@gmail.com
8080013893

关于android - 在 ListView/RecyclerView 中使用 EditText 导航(下一步),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31419168/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com