RecyclerView 找列表中的子控件方法

LinearLayoutManager layoutManager = (LinearLayoutManager) recyclerView.getLayoutManager();
View view = layoutManager.findViewByPosition(i);//View view = layoutManager.findViewByPosition(2);
TextView tx= view.findViewById(R.id.T_xmfx);
tx.setText("99999");

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部