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

MaterialDialog里content内容太长挡住按钮,怎么解决? #37

Open
xinnuo opened this issue Jan 16, 2017 · 4 comments
Open

MaterialDialog里content内容太长挡住按钮,怎么解决? #37

xinnuo opened this issue Jan 16, 2017 · 4 comments

Comments

@xinnuo
Copy link

xinnuo commented Jan 16, 2017

使用MaterialDialog时,里面的content内容太长挡住按钮,也不能滑动,怎么解决?

@H07000223
Copy link
Owner

H07000223 commented Jan 17, 2017

MaterialDialog既然不满足,那就自己写xml布局,自定义一个Dialog,很容易的~

@xinnuo
Copy link
Author

xinnuo commented Jan 17, 2017

我就问问楼主有没有做这方面的实现,没有的话我就自定义或修改一下。

@H07000223
Copy link
Owner

H07000223 commented Jan 17, 2017

没有,修改的话稍微麻烦~以前布局都是代码写的。
自定义的话,直接使用布局灰常快

@Guowj
Copy link

Guowj commented May 3, 2017

楼主可以优化一下 MaterialDialog 的源码,加上以下两句代码,设置 content内容 最大显示8行,显示不全可上下滑动,这样就可以解决上面所提的问题了。

mTvContent.setMaxLines(8);
mTvContent.setMovementMethod(ScrollingMovementMethod.getInstance());

或者,用户自己可以自定义一个 MaterialDialog ,将源码copy过来后,加上上面两句代码即可。

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

3 participants