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

@aleien, Манюхина #21

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

aleien
Copy link

@aleien aleien commented Jul 25, 2016

screenshot_20160730-105648


}

remainingSpace = deviceWidth - maxWidth;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ширина экрана не обязательно оставшееся свободное место, это частный случай, когда вьюха растянута на весь экран с match_parent

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да, действительно. Это было сделано для скорости (: По-хорошему, конечно, нужно брать текущий размер вьюхи и из него высчитывать оставшееся свободное пространство.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

да, верно

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

Successfully merging this pull request may close these issues.

2 participants