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

Set expand height half of the main layout #976

Open
NurAlif opened this issue Dec 5, 2019 · 1 comment
Open

Set expand height half of the main layout #976

NurAlif opened this issue Dec 5, 2019 · 1 comment

Comments

@NurAlif
Copy link

NurAlif commented Dec 5, 2019

I need the slider to only expand maximum at 0.4% of the screen.
The anchor feature doesn't work as i want because it still can be expanded higher.
Set layout_height also not what i want since it will also set the height of the main layout.
Putting the main layout behind of SlidingUpPanel also doesn't work because even when SlidingUpPanel collapsed the area for SlidingUpPanel is always blocking the touch of the main layout.

Is there any feature that capable for this?
It would be nice if this library has easy feature to fix this problem

@mbohnearschi
Copy link

Try setting this to the second view (which is the sliding panel)

android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.4"

Assuming that by "0.4%" you mean 40% of the screen :)

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