Skip to content

(@gringauz.a) Александр Грингауз - #28

Open
grin3s wants to merge 2 commits into
yamblz-native:masterfrom
grin3s:master
Open

(@gringauz.a) Александр Грингауз#28
grin3s wants to merge 2 commits into
yamblz-native:masterfrom
grin3s:master

Conversation

@grin3s

@grin3s grin3s commented Jul 29, 2016

Copy link
Copy Markdown

Класс, реализующий кастомный лэйаут: ru.yandex.yamblz.ui.views.CustomLayout
В примере запуска элементы A и B образуют LinearLayout, который занимает всё оставшееся пространство.

@grin3s

grin3s commented Jul 29, 2016

Copy link
Copy Markdown
Author

Скриншоты в папке screenshots

if (child.getVisibility() != GONE) {
final LayoutParams lp = (LayoutParams) child.getLayoutParams();
if (lp.width == LayoutParams.MATCH_PARENT) {
// there can only be one match_parent view

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Не очень хорошо обрабатывается ситуация, когда 2 элемента с match_parent, получается, что 1 из элементов просто теряется

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.

3 participants