ScrollView nested RecyclverView stuck problem

mRecyclerView.setAdapter(mAdapter);
        //Set the layout manager to remove the ScrollView nested RecyclerView stuck problem
        LinearLayoutManager linearLayoutManager = new LinearLayoutManager(ZdqHuaTiDetailActivity.this, LinearLayoutManager.VERTICAL, false) {
            @Override
            public boolean canScrollVertically() {
                
                return false;
            }
        };
        mRecyclerView.setLayoutManager (linearLayoutManager);

 In this way, sliding up and down will not be stuck.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326168639&siteId=291194637