-
Notifications
You must be signed in to change notification settings - Fork 22
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
@aleien, Манюхина #21
base: master
Are you sure you want to change the base?
Conversation
aleien
commented
Jul 25, 2016
•
edited
Loading
edited
|
||
} | ||
|
||
remainingSpace = deviceWidth - maxWidth; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ширина экрана не обязательно оставшееся свободное место, это частный случай, когда вьюха растянута на весь экран с match_parent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, действительно. Это было сделано для скорости (: По-хорошему, конечно, нужно брать текущий размер вьюхи и из него высчитывать оставшееся свободное пространство.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
да, верно