lzls / SlidingDrawerLayout

A layout shows better than DrawerLayout, which can also scroll its content as the user drags its drawer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I want to know something.

wiactn opened this issue · comments

If I have a textview on end drawer how to change it's text manually. Because when I am using findview...then setText it's always returning null object reference. Can you provide me the exact process or this is the right process.
#TIA

commented

You can get the end drawer reference in any method of the OnDrawerScrollListener if you used a ViewStub to wrap it, and then use its findViewById to find the TextView you need set text for. In this case, the end drawer is inflated and added to the view tree the first time it is to be opened.