Material action bar in eclipse - android

How to create android material design action bar in eclipse
I'm attaching an image here, I'm trying like this!
Thanks in advance.

For navigation drawer you just need to update android-support library.
For material action bar see Toolbar
Sample code you can see here this is more about navigation drawer but it also contains code for toolbar

Related

create android action bar menu with Sherlock

I want to create android action bar with Sherlock according to bottom picture.
how to put the title bar on center and my lists icon align to be right
although another icon set be left.
ActionbarSherlock is very much outdated. You should use the AppCompat library, for which a ton of documentation exists.

How to add badges in navigation bar i.e. number label on icon in xamarin.forms?

Adding badges in navigation bar using xamarin.forms. I tried using the custom renderer , but failed to inflate the menu in native android since i am not getting the OncreateoptionsMenu() in the renderer.But, is there any solution to add the badges in xamarin.forms?
I suggest you to hide the Navigation bar in your page
NavigationPage.SetHasNavigationBar(YOUR_PAGE, false);
and then create a custom navigation bar with stackLayout with your badges.
My quick and dirty workaround is to create a set of icon with the badge number, which involves least hack and you may still use the same navigation bar.
For example:

ActionBar and ActionBar.Tab and Navigation Drawer android

I am using action bar with help of android-support-v7-appcompat and also using Navigation drawer over it.
In one of my fragment if I use ActionBar.Tabs then the tabs overlaps the navigation drawer and the drawer gets below the ActionBar tabs.
How can I make the action bar like in google play application or Google movie application.
The tabs should also go behind like the fragment. How can I do the same with android-support-v7-appcompat Libs
For Tab bar try ViewPagerIndicator http://viewpagerindicator.com/
This has a very good implementation for tab bar.
When we use default tab bar with actionbar, in landscape mode it will be merged into single row. So its better to use the above library.
I think you would be better off using a library like ViewPagerIndicator. The ActionBar is recognized as decor and is shown over top of the window, and the DrawerLayout is drawn as an object in the window.
Not sure if they're going to fix it in a future revision, but ViewPagerIndicator is pretty easy to set up and customize anyway.
Also, go to this question for better achievement getting-drawerlayout-to-slide-over-the-actionbar
Roman Nurik says that the Navigation Drawer should not be used with the Action Bar tabs.
The discussion is here https://plus.google.com/u/1/116515063230772720916/posts/8dWEkFcbTFX

ActionBar and sliding out menu in android

I just want to create an action bar as foursquare app.
and i want to show a slide out menu when the home button pressed just like the image shown.
I am able to create the custom action bar but not like the first image. Please provide any tutorial which will help to create the Action bar
You may use the version included in the Google Android SDK (instead of an 3rd party lib.)
Read about Navigation Drawer for more details.
SlidingMenu is a great and easy-to-use library for this.
edit: Sorry, thought the question was only about the slide-in menu.
For actionbar, your best library will be ActionbarSherlock

ActionBarSherlock wrong tabs position on android 2.2.2

I'm having serious problems getting tabs in actionbarsherlock below main action bar tabs to work in an app that runs from Android 2.2 up and looks like Android 4. (see link)
Tabs position
Have you tried running the official Demos app of ActionBar Sherlock? (https://github.com/downloads/JakeWharton/ActionBarSherlock/ActionBarSherlock-Sample-Demos-4.2.0.apk) It should contain a demo for the actionbar with Tabs.
If that works on Android 2.2 then you know the problem is in your code and you can check the Demos source code to see what you are doing differently (https://github.com/JakeWharton/ActionBarSherlock/tree/master/samples).
It's usual behavior of action bar (actionbarsherlock just simulate it). Use
ActionBar act = getSupportActionBar();
act.setStackedBackgroundDrawable(getResources().getDrawable(R.drawable.mytab_base_t));
to avoid white color in top bar (this option you can't access from any theme item yet). You can also monitor action bar height to change custom view of tabs on-fly, but you can't change action bar behavior, forget it. Otherwise please use PagerTitleStrip against action bar tabs.

Categories

Resources