I want to slide on Android in a Facebook style.

Asked 2 years ago, Updated 2 years ago, 107 views

The Facebook navigation bar is really pretty. So I want to use it on my app. Please tell me what to do.

1

2

https://www.youtube.com/watch?v=ANLMaL7zn20 <- This is a YouTube video.

facebook android android-side-navigation

2022-09-21 15:45

1 Answers

The method I found is FrameLayout and applying custom Horizontal ScrollView (HSV) at the top of the menu. You can put the view that you want in HSV. The first child view needs to be transparent. Because the menu should be visible and clickable when HSV is not scrolled.

You can scroll to the application view where the app is turned on and HSV is first displayed. And when you want to see the menu again, scroll through the menu that appears to show a transparent view.

https://github.com/gitgrimbo/android-sliding-menu-demo If you go into the <-link and look at the code, there are two buttons that call HorzScrollWithListMenu and HorzScrollWithImageMeun, as shown in the image below.

3 Screenshot of half scrolling

4 Screenshot when you scroll completely


2022-09-21 15:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.