Adding an Action Bar to the top and bottom of the screen - android

I want bottom bar in application home page and top bar also what i can do for it

for create bottom tab bar
http://envyandroid.com/align-tabhost-at-bottom/
but be carefuller http://developer.android.com/design/patterns/pure-android.html said avoid to use bottom bar..
I hope this help you...

this can be done by using toolbars. You can use one as ActioBar and another one for a buttom bar.
Have a look here:http://www.vogella.com/tutorials/AndroidActionBar/article.html

Related

Android custom bottom navigation bar

How can i create and adjust the following bottom navigation bar?
Use Bottom Sheet. Go to some tutorials. You will find exactly what you want

Customize Navigation Drawer Action Bar (App Compact) in android

I want to customize navigation drawer app compact action bar, I want to remove app icon from that and want to make its title center in action bar.
I have applied all solutions , but nothing is working with all the conditions.
Please give me some clue for applying it correctly
You should creat a customize action bar. Then, if you want you can add a button that can open and close your drawerlayout.
I have solved my problem. As mentioned, I have two problems, and I solved that in following way :
1) For making title centre, we need to make custom layout of action bar, and need to remove action bar title.
2) for remove app icon from action bar, we need to set android:icon property of that activity in manifest with transparent image or colour.

Put android tabs in center of action bar

I tried Android action bar with tabs. As you see in this picture:
(source: persiangig.com)
My action bar looks good in phones but in tablets it is not right, the tabs stick left. This picture shows what I mean, how can I put the tabs to center in tablets too?
(source: persiangig.com)
The tabs are aligned left because, in Android, the action bar is used for both navigation and Activity- or Fragment-specific actions. You don't have any in this screenshot, but menu actions that are added to the action bar will be aligned to the right.
If you must have your tabs centered for some reason, you'll have to write your own action bar. I would recommend against this, since it's a lot of work to intentionally go against user expectations. Instead, use Android's built-in action bar layout and design your app to accommodate it.

Android - Remove Title Bar (ActionBar)

Can anyone tell me how to do the following,
Remove The App Title bar & keep the action bar.
Move Tab Bar(Action Bar) to the bottom of the screen.
Remove Swipe Feature from the Tab.
Do this
Myactionbar().setDisplayShowTitleEnabled(false); Myactionbar().setDisplayShowHomeEnabled(false);
Where my action bar is the name of your action bar
you can add
android:theme="#android:style/Theme.NoTitleBar"
in your manifest file for your activity
We have to clarify some contents of your question:
the "app title bar" is part of the Action Bar, so they are the same thing; in other words you can't "divide" them, at last you can delete the title of your application;
you can't move the Action Bar to the bottom of the screen, but you can split it, as it says this official link (see Using split action bar paragraph); this can be do only if Action Bar is activated;
if you want to remove swipe feature from tab, see this StackOverflow question.
As you can see on this link and in this one, tabs on bottom are discouraged by Google (i don't wanna launch a discussion about this, forgive me).
But of course, you are free to do whatever you want with your app, and i found very usefull this solution.
That's all i can do. If you get struck again, post your code.
requestWindowFeature(Window.NO_ACTION_BAR)
would do the trick ! Do it before setting the content view.
To remove the very top bar Inside your oncreate() method place this
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
Now for the action bar to move it to the bottom there is no preset it can only be placed on the top unless you make your own interface visit this link
http://android-ed.blogspot.ca/2011/12/using-actionbar-at-bottom-of-screen.html
Hope that helps !

Two menus in android

I want to have two menus in my android app. First one is search icon in ActionBar (at the top) and second is a TextView and pop up item at the bottom. How to achieve it? I tried android:uiOptions="splitActionBarWhenNarrow" but it moves all the menu items to bottom. Please help!
Android has not made this possible on purpose, the action bar at the bottom (called the split action bar) only has the purpose of giving extra room for actions if it is necessary (hence the uiOptions name "splitActionBarWhenNarrow").
You could still get the desired result by manually creating a split action bar by adding a LinearLayout at the bottom of your View, and using a PopupMenu for the menu.

Categories

Resources