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

Issue 92 make menus be expandable #106

Conversation

walkingice
Copy link
Member

For Home Menu and Browser Menu, remove BottomSheetDialog and use DialogFragment instead. And make them looks like Bottom Sheet Dialog

to fix #92

extract the function of setting corner, then we can decide to apply
rounded corner or not
do not move the whole root view, instead, move only the specified view
* use ConstraintLayout to replace nested LinearLayout
* Apply CoordinateLayout to make it to be swipe-to-dismiss

known issue:

    If the list was too long, and user's phone screen was short, maybe
    we cannot see the whole list. I tried adding NestedScrollView but
    sometimes the Y-position of root view is not correct while first
    time opening the BottomSheet. Mabye it is because HomeMenuDialog is
    a BototmSheetDialog. We should try to use Fragment instead.

    There are 2 CoordinateLayout since HomeMenuDialog is extending
    BottomSheetDialog. This is not right.

Reproduce step:
    set layout_height=500dp to menu_night_mode
avoid using BottomSheetDialog, create a DialogFragment for showing Home
Menu
avoid using BottomSheetDialog, create a DialogFragment for showing Home
Menu
@walkingice walkingice force-pushed the issue_92_make_menus_be_expandable branch from 11200a7 to a539106 Compare March 29, 2022 15:09
@walkingice walkingice merged commit 169b8d1 into RocketScientists:master Mar 29, 2022
@walkingice walkingice deleted the issue_92_make_menus_be_expandable branch March 29, 2022 15:40
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

Successfully merging this pull request may close these issues.

[FEATURE] Make main menu be expandable
1 participant