How to increase open area of Navigation Drawer - android

I am using the Navigation Drawer in my app. It works fine, but it opens only when I swipe from left border(1% - ~10% of whole screen). I want to increase this area to 1% - 70% of whole screen. I mean, I want to swipe to the right in center of screen and open Navigation Drawer. Its like in a Telegram App. Just check it. I hope you understand my problem.

Related

How to navigate right between screens with bottomBar and others

Please, help me to understand how to do it right.
I have an app, which represent a screen with bottom bar with 4 tabs (1st layer). From this tabs we can enter other screens (2nd layer) without bottom bar. This organized very simple, Scaffold with bottom bar and navigation host inside it. To open screens above 1st layer without navigation bar I searched and found that I can just hide bottom bar and then open the screen above.
This is good, but on slow devices an ugly animation happen when 1)bottom bar is going down (user see the old screen without bottom bar) and 2) new screen appears.
This is not pleasant, but.. ok.
The second thing that I cannot stand is when in a 1-st layer screen I have a ModalBottomSheetLayout. When it hidden - it hides right behind bottom navigation bar and when I am going to new screen bottom navigation animated down and... here you are - the ModalBottomSheetLayout, and only then the second screen come to the place.
I wonder, may be I understand everything wrong and the new screens shouldn't be organized like this? How to set up navigation and scene like before compose we have a main fragment with bottom nav bar and open fragments on the top?
The example of the code I am talking about can be found for example in app nowinandroid, I think this is very common case.. As I see they also just hide bottom bar when needed..
#Composable fun NiaApp...

How to move android Navigation Bar to the right side of the display

I need to move the android Navigation Bar from the bottom of the display to the right side of the display.
The android app I'm working on requires the user to touch the bottom of the screen often, so I'd like to move the navigation bar to the right side of the screen. I believe this is possible, as I've seen it done in several games. The attached image shows what I'd like to achieve; when the user swipes from the bottom or top, the android bars appear at the top and RIGHT side, as opposed to the top and BOTTOM.
I've read through a lot of existing similar posts, and have tried the suggested answers, however they seem to instruct how to move a navigation DRAWER (ie a new "bar" implemented by the app) to the right side, as opposed to the BAR itself; I believe these are two different things.
Further, the information on android developer (https://developer.android.com/training/system-ui/immersive) suggests that the bar cannot be moved, it can only be temporarily hidden. If that's the case though, how are the app's such as the one in the image doing it? Any suggestions?

Navigation drawer only from ActionBar?

I have the following problem. I noticed that on Android 4.4.2 (and possibly all 4.4.x) the NavigationDrawer does not work exactly as in lower version. It works fine, when opened via click in the ActionBar icon. But when I tried to open it by swiping from the side around the middle of the screen, only small grey area comes in instead of my NavigationDrawer. It looks like this.
I also noticed, that I am not the only one who has this kind of problems, as both Evernote and Duolingo suffers from the same problem. Is there anyway to make the drawer open correctly by swiping from the side ?
I added the Drawer exactly the way described here.
Edit : When I drag from the top left corner, everything is fine, but when I drag from the left edge somewhere in middle of the screen, something weird shows instead of a drawer. See the first link for the screenshot.

Android SlidingUpPanelLayout and slidinguppanel

I am having problem to incorporate the sliding menu and sliding up panel from
http://www.michenux.net/android-sliding-menu-part-22-690.html
Android: Up/down animated sliding menu
(https://github.com/umano/AndroidSlidingUpPanel)
When it first launched, the bottom panel showed up ok, I did a click/touch on the
sliding up panel, it goes up alright to show the second screen. Problem come when I click/touch
again on the second screen, it slided down but the screen overshoot to lower screen.
It doesn't goes back to the original location.
I have marked problem with "?????" and red color.
I discard the use of the sliding from left menu. The Android's Navigation Drawer suggested by the slidinguppannel solved this problem.
http://developer.android.com/training/implementing-navigation/nav-drawer.html

Slide to limit content of SlidingDrawer

Hi I am doing a sliding drawer, following the tutorial here: http://android-pro.blogspot.sg/2010/09/using-android-slidingdrawer.html
However, the sliding drawer either open or closes fully. Is there any way so that the user can slide to limit the height of content? For example to slide open half of the sliding drawer to show half of the content, or slide a third to see a third of the content.
You will have to make a custom 'SlidingDrawer' so that its top offset does not default to the max height.
It is already implemented here

Categories

Resources