NestedScrollView wont't scroll to the end when used with CollapsingToolbarLayout

前端 未结 7 2249
青春惊慌失措
青春惊慌失措 2020-12-30 02:59

I want to use NestedScrollView with CollapsingToolbarLayout. In NestedScrollView there is really long content. Unfortunately I can\'t scroll to the end. Some of this long co

7条回答
  •  Happy的楠姐
    2020-12-30 03:25

    I had the same issue. One of the reasons for this bug was not setting the SupportActionBar

    final Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);
    

    (I didn't to do it because I needed toolbar only for the collapsing toolbar to work as expected and I thought it wasn't important to setSupportActionBar)

    And the other one was: it was working inside the activity, but in a fragment wasn't working correctly (maybe it was an issue of that specific version of support library that I used)

提交回复
热议问题