overlays the main content when the drawer//opens Mdrawerlayout.setdrawershadow (R.D
Rawable.drawer_shadow, Gravitycompat.start);
Mdrawertoggle = new Actionbardrawertoggle (this, mdrawerlayout, R.drawable.ic_drawer, R.string.drawer_open, R.string.drawer_close) {/** Called when a drawer has settled in a completely the state. */Public VO ID ondrawerclosed (view view) {Invalidateoptionsmenu ();//c
1. Drag a dynamic panel to the form, renaming State1 to State_ home;2. Drag 2 dynamic panel to the State_ home page, respectively named as the side menu and home page content, home content cover side menu;3. In the front page content and side menu casually put point East West, than the film, and then put a button in the home page content, and then set the button click event for move-Home content-move by (280,0)-linear 500MS allows you to click to display the sidebar effect. 4. Similarly set the
Android uses Viewpager to start the app with the left and right swipe interface/*** 1. Load the Viewpager control in the layout Android.support.v4.view.ViewPager* 2. Initialize Viewpager* 3. Initialization of the data source* 4. Create an adapter---> Inherit pageradapter override 4 methods* 5. Bind Adapter* 6. Setting Listener Events */1. Load the Viewpager control in the layout Android.support.v4.view.View
After watching a lot of apps, you will find that many of the main framework of the app now can swipe up and down, left and right, we will naturally think of Viewpager, but can swipe up and down, and the top of the ad or background after the row, but also need to retain the tab tag with what to achieve? Read a lot of information, and finally found that the SDK And
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.