In my application I need to show and hide a view(custom menu) only in screen's bottom if a user swipe from bottom to up and similarly it should hide the view if user swipes the view down.The swiping thing is similar to navigation drawer introduced in android recently but I am not getting how do I detect the bottom-up swipe in my application to show the view.I could have used SlidingDrawer but that has been deprecated since API 17.Please help me .
--->
Look here . I don't think use SlidingDrawer
Related
Hi I want to make my ListView when swipe left to show more menu.
I googled and found this library https://github.com/daimajia/AndroidSwipeLayout .
but I want to use only with handle icon. It means only swipe on that icon to activate and show menu.
Because I use PagerView for tabs, so when swipe on the rest area it will change tab.
Can anyone guide me how to do it?
Or any Library is fine.
I think the best way is to use RecycleView with ItemTouchHelper
Here is similar question with answer RecyclerView Swipe with a view below it
Reference: Nick Butcher's Tweet
https://twitter.com/crafty/status/789008273949200384
I implemented Bottom Navigation View came out with Android Support Library v25.0.0.
https://github.com/vipulasri/Bottom-Navigation-View-Sample
I am facing following problems:
Floating Action Button overlaps with Bottom Navigation View.
Snackbar displays above Bottom Navigation View.
Bottom Navigation Button doesn't automatically hide or appear on scrolling.
Not able to get the reveal animation like below:
About your third and fourth question. Bottom navigation view is automatically hide title and make animation if you have more then 3 item in it.
And about you first and second question. You can try another root layout, for example CoordinatorLayout.
Maybe it's late, but I made a little project to make reveal animation on background like your example without third part library.
Check it here: https://github.com/GauvainSeigneur/CircularRevealBottomNavigationView
My android app UI have two parts- a menu bar (blue color) and content area (gray color).
Here red is the device screen.
The menu bar should open from left to right whene the hamburger menu is clicked.
I tried with ViewSwitcher but that shows only one view at a time.
What is the right method to implement it?
UPDATE: I am looking for the solution for API level 10 onwards.
In the newest version of the ADT you can select Navigation Drawer as navigation type when you create a new Activity. This automatically implements this type of navigation for you.
Alternatively, check out this tutorial: http://developer.android.com/training/implementing-navigation/nav-drawer.html
If you are happy with the navigation bar overlaying the content, then use the navigation drawer as suggested.
Alternatively check out:
https://play.google.com/store/apps/details?id=com.desarrollodroide.repos
There are many open source libraries that you can pick and test, and then decide which one to grab the code for.
I have implemented a navigation drawer menu using getsupportactionbar and list view. While clicking the action bar, the listview is not moving. In facebook and google+ right hand side component will also move. Can anybody tell me how to also move the listview? Is it possible to implement in android, and if yes can anybody me tell how to do this?
Thanks
I need to implement something similar to Android's notification bar. I would like to make a view that the user can drag and expand. The part that is not visible at the bigining has more views. (The image below explain what I want to achieve).
you can use sliding drawer i know its deprecated but still works well even in android 4.4 have a look at this tutorial for sliding drawer