How to put android sliding Drawer to slide from LTR?
When using android:orientation="horizontal" it slide from RTL.
How can I do LTR?
Thanks
................................
I found answer form Here
Thanks everybody
You will need to implement your own SlidingDrawer.
There is no simple way to let it slide from the left like by changing some settings.
Check out these links:Panel and android-sliding-drawer.
Try next widget
https://github.com/xPutnikx/SlidingDrawerWithButtons
make it left to right, or another directions.
Related
Hi guys I am an android beginner. I want to make an fragment at the right edge of the main layout and it could be expanded/collapsed by swiping from right to left/left to right (please watch sort video below).
https://youtube.com/shorts/HKOvfDVS03M?feature=share
My problem is I could not know how I can start implementing since I'm new to android. Please help to give a sample code. Thank you
You can achieve the same using navigation drawer. Navigation drawer is menu or layout which slides from edges of the screen. As you are a beginner you need to learn the concepts first. So, try to learn navigation drawer first. As per suggestion you can watch below video.
Navigation drawer
As you complete the video you will know what navigation drawer is and how to implement it. Now, as you mentioned in your video it's a calculator. So, drawer is given specific height and width as well as it is placed below the calculating screen. SO, I assume that you know basics.
Using relative layout and it's property You can use
...
android:layout_below = "calculating_screen"
...
This will place your drawer below the screen and you can specify `android:layout_height =match_parent" in your drawer file to cover the remaining screen. And then after specifying width you just need to adjust the gravity. you just need to change the gravity line.
...
GravityCompat.END
...
from
...
GravityCompat.START
...
GravityCompat.START allows drawer to expand from left-right. If you want right-left then use GravityCompat.END.
I want create navigation drawer in the bottom , when click button open navigation in bottom to up
like this in link
http://imgh.us/Screenshot_2015-08-13-21-27-20_1.png
The default Navigation drawer does not work that way. Consider using
https://github.com/wunderlist/android-sliding-layer-lib
It allows you to configure a view/layout(with your content) that can slide into your screen from any direction.
This answer may be too late for the original asker, but you could get this effect by using a Sliding Drawer. It has since been deprecated, however, there are some nice open source alternatives around, like the ones in the links below:
https://github.com/umano/AndroidSlidingUpPanel
https://github.com/wunderlist/android-sliding-layer-lib
https://github.com/Ali-Rezaei/SlidingDrawer
Is it possible to use the NavigationDrawer as menu coming from top to bottom instead of left to right?
This is umano app's sliding up panel, I used this in my app, You can easily convert it to top to bottom
https://github.com/umano/AndroidSlidingUpPanel
Yes , ofcourse you can but it may create a confusion between the notification screen of android OS and your apps navigation drawer so its a good practice to put your navigation drawer either from left side or from right .
for more info you can have a look at this articles
http://developer.android.com/training/implementing-navigation/nav-drawer.html
http://developer.android.com/design/patterns/navigation-drawer.html
I want to make Sliding Drawer to slide from the left.
I have a partial solution, but it only works on Android versions 3 or higher and I want to support 2.2. The solution is the property android:rotation=180 in the Sliding Drawer component in XML.
Does anyone know how to do it or some similar effect to expand a menu and move the entire view to right?
Using this, http://blog.sptechnolab.com/2011/02/10/android/android-sliding-drawer/ it's MultiDirectionSlidingDrawer
I tried to implement sliding menu in my application. What i want is that there is a button on the top right corner of the screen. And sliding menu should come up from right to left which is reverse slide of facebook styled sliding. In Jfeinstein Sliding Menu, Sliding menu come out from left to right. I tried to implement the source to make it happen from right to left. But unfortunately, I still can't get it. Any ideas would be appreciate.
There is a branch called "sliding right" in Jfeinstein Sliding Menu on github.
This is a demo project to explore how to implement a sliding menu like Facebook and others use.
android-sliding-menu-demo
android-fb-like-slideout-navigation
I made a video (3 parts) on youtube on how to make a sliding menu like the on you are looking for. I show you how to set up the project and get everything linked up.
http://www.youtube.com/watch?v=tJJMyzdB9uI
The cool thing about ECSlidingViewController (Its the one I use) is that just about everything you want to configure (how far a view slides, the animations, left or right side) is done with a single line of code. When setting it up, I tell you where you can change it to be left or right side.
Hope this helps.