On the day of Google Io, the Android team updated the support library and added several more important features to the support library of the new version (V13).Adds a drawerlayout control that supports the creation of Navigation drawer mode. Can be set from the left side of the menu or the right side, can also left the menu to exist.Add Slidingpanelayout controls to support the summary, detail interface mod
Let's focus on the Android drawer navigation Navigationdrawer. First of all to perceptual the effect of this bar:
Looking at a lot of applications, I think this slippery drawer effect of the menu is very good. Do not have to switch to another page, also do not have to press the menu hardware button, directly in the interface of a button click, the menu slide o
!
Mercury
Venus
Earth
Mars
Jupiter
Saturn
Uranus
Neptune
Open navigation drawer
Close navigation drawer
Web search
Sorry, there\'s no web browser available
Finally, the main acti
take advantage of the new visual drawer transition.
Any view isn't represented in the drawer maintains the traditional up indicator on its action bar.
You stay on sync with the general navigation patterns for up and back.
What to support when navigating with drawers Perhaps your app has used a drawer navigation to ensure that you use the
1. Create a drawer Layout
UseDrawerLayoutAs the interface root control. In drawerlayout, the first view is the main content of the current interface, and the second and third views are the drawer menu content. If the current interface only needs one drawer menu, the third view can be omitted.
In the following example, drawerlayout contains two views. The first fr
Google updated its Google + app in July this year, adopting a new approach to navigation and abandoning navigationdrawer. In the moment, there is a series of discussions about the pros and cons of Navigationdrawer, but for developers we just have to take care of what we need to achieve or learn, 2012 YouTube, Facebook, Path and other applications have used navigationdrawer such a way of navigation, last year Google in order to rectify the increasingly mixed
NavigationDrawer navigation drawer) is a panel that transitions from the left edge of the screen and displays the main navigation operations of the app.
Show Navigation Drawer
You can slide the slider from the left edge of the screen or click the icon on the ActionBar of the app to display the Navigation Drawer to the screen.
As an extension of NavigationDrawer,
support a similar navigation drawer, the update your drawer to the this pattern to make sure that:
The action Bar remains in place and adjusts its content.
Your Navigation drawer overlays the content.
Any view represented in the drawer have a navigation drawer
Recently I am writing an application and want to put the setting page and the application page together so that users can see the impact of their settings on the UI in real time, in this way, you can easily set your favorite interface. After thinking for a while, I found that using the slidingdrawer control can achieve this effect. That is, a drawer. Open the drawer and occupy half of the screen. The other
Recently I am writing an application and want to put the setting page and the application page together so that users can see the impact of their settings on the UI in real time, in this way, you can easily set your favorite interface. After thinking for a while, I found that using the slidingDrawer control can achieve this effect. That is, a drawer. Open the drawer and occupy half of the screen. The other
Overview
In the past, ActionBar was unique to Android 4.0. Later, ActionBarSherlock's dedicated-step martial arts, and SlidingMenu, however, this can be a good fit for Android 4.0. Since the Google I/O conference (last year, this year will begin in a few days ).
According to zhihu daily, Douban applications obviously feel the style of Android Design.Effect
Public
Navigation menu for drawer effectlooking at a lot of applications, I think this slippery drawer effect of the menu is very good.
Do not have to switch to another page, also do not have to press the menu hardware button, directly in the interface of a button click, the menu slide out, and feel able to put a lot of things.References to libraries:First of all, Drawerlayout this class is in the support libra
Recently in writing an application, want to put the Settings page and application page together, so that users can see their settings in real time to the impact of the UI, so more convenient to set the user's favorite interface. After a while, I found that this effect can be achieved by using the Slidingdrawer control. Which is a drawer. Pull open the drawer, occupy half of the screen, the other half of the
The SlidingDrawer hides content outside the screen and allows you to drag a handle to display hidden content. Can be used in the request confirmation or rejection locationSlidingDrawer can be used vertically or horizontally. It consists of two sub-views: one is the handle dragged by the user, and the other is the content that changes with the drag ). SlidingDrawer should be used as the overwrite of the internal layout, that is, the SlidingDrawer should use the FrameLayout or RelativeLayout layou
View plaincopy to clipboardprint?
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/Android_Tutor/archive/2010/04/14/5486804.aspx
I recently studied lanucher, read the source code, and found the slidingdrawer class, which is also called the "drawer" class. It is easy to use, including handle, and content.
Handle is when you click it, the content is either
Android uses Drawerlayout to simulate the drawer mode of Netease news client, scaling androidlayout
I personally feel that Netease's client is more avant-garde and has a lot of new things. Sometimes I can learn a lot by imitating these good clients.
At the beginning of today's main topics, the following are the effects of Netease client drawer mode implementation
Navigation menu for drawer effectSee a lot of applications, feel this slide-off drawer effect of the menu is very good. You don't have to switch to another page, you don't have to press the hardware button on the menu, you just click on the button on the interface, the menu slides out, and you feel like you can put a lot of things. On the implementation, search for a bit, like the following two kinds:
Android-like Netease client implements drawer-style drag menu interface and android-like Netease
I have previously written an article using DrawerLayout to implement the drawer mode of the Android-like Netease client. Yesterday I saw a guy asking about
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.