Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScrollBar is not shown #85

Open
m190 opened this issue Mar 4, 2017 · 3 comments
Open

ScrollBar is not shown #85

m190 opened this issue Mar 4, 2017 · 3 comments

Comments

@m190
Copy link

m190 commented Mar 4, 2017

Hi,

I noticed that since v12 the ScrollBar (used programmatically) is not shown. The same configuration for v10 and v11 is working without problem.

DragScrollBar materialScrollBar = new DragScrollBar(this, recyclerView, true);
materialScrollBar.setIndicator(new AlphabetIndicator(this), true);
@turing-tech
Copy link
Owner

After version 11, programmatic addition is no longer fully supported, since it was a massive headache to maintain. You should either switch to XML or, if you want to keep going the programmatic route, you'll need to set the alignment and everything yourself. In theory there should be no problem as long as you set the rules the same as the library did in earlier versions (alignEnd, alignParentTop, alignParentBottom).

@m190
Copy link
Author

m190 commented Mar 9, 2017

Do you have any working example? Earlier, the example provided, was enough.

@turing-tech
Copy link
Owner

Look at the code removed in this commit to see how it used to work. 8adc930

In short, adding align end, algin top, and align bottom should do the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants