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

Change width of the dropdown dialog #4

Closed
BRoy98 opened this issue Oct 1, 2017 · 2 comments
Closed

Change width of the dropdown dialog #4

BRoy98 opened this issue Oct 1, 2017 · 2 comments

Comments

@BRoy98
Copy link

BRoy98 commented Oct 1, 2017

I added an email field on the drop-down. When the email is too long, it goes to the 2nd line with is not totally visible. Is it possible to make the drop-down dialog width wrap-content so that it can show it in one line only and increase the width as required?

@natario1
Copy link
Owner

natario1 commented Oct 1, 2017

It's all about what you return in getPopupDimensions , are you overriding that?

If you want the text field in one line, try adding android:max_lines="1" to the text view

@BRoy98
Copy link
Author

BRoy98 commented Oct 2, 2017

getPopupDimensions helped me! 😃

@BRoy98 BRoy98 closed this as completed Oct 2, 2017
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