单击 Recycler 项目按钮更改主布局
Change main layout from Recycler item button click
当我必须通过单击 Recycler 项目按钮设置布局的可见性时,我遇到了这个问题。如何从 RecyclerAdapter onBindViewHolder 方法更改 "some other layout" 参数?
所以基本上我将视图传递给构造函数,然后我能够更改它的可见性等等...
喜欢
> mAdapter(Context context, ArrayList<someobject> arrayList, RelativeLayout
> weblayout, WebView web, ProgressBar progressBar, RecyclerView
> listView) { this.weblayout; this.web; this.progressBar; tihs.listview;
> ...
当我必须通过单击 Recycler 项目按钮设置布局的可见性时,我遇到了这个问题。如何从 RecyclerAdapter onBindViewHolder 方法更改 "some other layout" 参数?
所以基本上我将视图传递给构造函数,然后我能够更改它的可见性等等... 喜欢
> mAdapter(Context context, ArrayList<someobject> arrayList, RelativeLayout
> weblayout, WebView web, ProgressBar progressBar, RecyclerView
> listView) { this.weblayout; this.web; this.progressBar; tihs.listview;
> ...