Android Google Play navigation drawer style - java

There is any tutorial or code how to make the navigation drawer listview will be show like
Google Play or Google Play Music Navigation Drawer?
I want my Nav Drawer look like this:
Can you help me with this?
Thanks
Haim.
EDIT:I know how to build navigation drawer, I want a style for the navigation drawer that my nav drawer will look like the google play navigation drawer(big listview tabs....).
If you can write the code.
EDIT2:I used this: https://www.youtube.com/watch?v=9WeQzZUroAs

Yes you can use navigation drawer like facebook on one or both side,try this :
Android - Is Navigation Drawer from right hand side possible?

Easy implementation can be achieve with google buildin
navigation drawer
Link

Use the SlidingMenu library.
<uses-sdk
android:minSdkVersion="5"
android:targetSdkVersion="17" />
Works for APi-5+ and is widely used.

Take a look at my posts. Maybe you will get an idea on how to achieve that.
Here are the links:
Unable to use AndroidDrawer (sidebar like facebook)
From here you can navigate to my different posts.
Hope this helps.. :)

Related

Android MenuDrawer api by simon VT

I have encountered a problem in the MenuDrawer library by SimonVT.
In this the main part does not refresh on click or anyother changes. The screen refreshes only when the menudrawer is drawn once again that too only with the last touched change
I have an expandable list view in the main view and this menu drawer. The list view does not expand when touched, but expands once i swipe for the menudrawer
Is there a way to refresh the screen without swiping the menudrawer
The library has been deprecated by the author. This means that it is no longer being updated in in effect no longer supported. I recommend using the
Navigation drawer which has been implemented in the android api.
Relevant api documentation:
Creating a navigation drawer

Material design navigation drawer

So what I'm trying to do is to add a navigation drawer within a navigation drawer in a material design app. For reference you can look at the Piktures gallery app. When you click on the hamburger menu, it opens, and right next to the menu will appear an arrow. If you click on the arrow, yet another navigation drawer panel opens from the left which has the social network follow buttons. I just need a way to make another navigation drawer open from the same area. Do I add another fragment? Perhaps a fragment within the fragment? Please either give me a concept to read up on or simply a link to a tutorial. If you're feeling particularly generous, maybe you could even leave me the step by step in the answer. I am using Eclipse, not Android Studio.
Mike Penz has developed an awesome library to include a Navigation Drawer into your app with all the Google Material Design guidelines. You can find it on Github, here.
You can check out this article and this one where it's explained how to implement a Material Design Nav Drawer.

NavigationDrawer not working correctly with SupportLibrary revision 21

I just updated my android SDK in order to get the android 5 updates. Those are the steps I did:
Updated the android-SDK
Updated the eclipse plugins
Updated my project build target=21 and targetSdkVersion=21
Then I ran my app (wich uses the compat-v7 library) and found that the navigation drawer seems buggy. The app icon in the action bar is gone and the overall style seems incorrect (see the picture 2).
So I took the "Creating a Navigation Drawer" example and performed the following test:
Downloaded the sample project, updated the build target and targetSdk and replaced the android-support-v4.jar with the Compat-v7 library (revision 21) .
Changed the ActionBarDrawerToggle import from android.support.v4... to import android.support.v7...
The result is correct:
Picture 1:
Then I try to swap the MainActivity parent class from Activity to ActionBarActivity, changing getActionBar() calls with getSupportActionBar() and getFragmentManager() with getSupportFragmentManager()
Also added the android:theme="#style/Theme.AppCompat" theme to the activity
It works but the app icon is missing and the options menu are not shown as an action. See screenshots below.
Picture 2:
How can I fix it?
UPDATES:
With the code:
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setHomeButtonEnabled(true);
getSupportActionBar().setIcon(R.drawable.ic_launcher);
getSupportActionBar().setDisplayShowHomeEnabled(true);
You get the following bar:
It is pretty ok but I preffer the compact version, where the drawer indicator/ arrow have no padding with the icon (see image below). How can I achieve it?
This is actually the intended behavior for the new Material Design paradigm. According to the official documentation on Toolbar:
In modern Android UIs developers should lean more on a visually distinct color scheme for toolbars than on their application icon. The use of application icon plus title as a standard layout is discouraged on API 21 devices and newer.
Maybe this will help you:
getSupportActionBar().setDisplayShowHomeEnabled(true);
getSupportActionBar().setLogo(R.drawable.ic_launcher);
getSupportActionBar().setDisplayUseLogoEnabled(true);
UPDATE:
You can find the answer for your second question here:
How to change Toolbar navigation icon and options menu margin
This is working as intended, the app icon is not displayed by default now. You can call the following to display the icon again.
ActionBar ab = getSupportActionBar();
ab.setHomeButtonEnabled(true);
After you switch to new ActionBarActivity, it looks like it hides home/Logo of Actionbar. And the #style/Theme.AppCompat has not Logo by default. You can enable it with .setHomeButtonEnabled(true);

Using two sliding menus in a android project

I am new to android and want to implement two slider menus in my project.I have done a tutorial found in this link:
http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/
Can anyone suggest a way or give me a link as how to implement two slider menus in my project?
You can use inbuilt navigation drawer for both side slidings.
Or
U can use slider (for slider check example here)

Android navaigation bar with ListView

i just did ListView like this:
All source: ListView
Now i want to add navigation bar like iPhone on top of this window:
I was searching for some source how to do but just kind find. Maybe someone have bookmarked good tutorial how to do this ?
Actually you don't have to do this for yourself. Just use a nice lib like ActionBarSherlock - it supports that NavigationMode for the ActionBar.

Categories