Actionbar Custom Position - java

I'm relatively new with Android development, and I received a layout for an app where I have to put some kind of bar with images above the action bar.
I searched a lot in Google but I couldn't find anything about change the action bar position. I also found some info saying:
Google highly recommend to NOT change the action bar position(...)
Well, how I got some custom views for the action bar icons was to put the view below the action bar. However, what I am supposed to do is put the view above the action bar.
Is there a way to put a view above the action bar or change the action bar position?

Is there a way to put a view above the action bar or change the action bar position?
Not that I am aware of.

Related

Search bar for searching

I want to create a search bar for my app. The app has many activities linked via buttons for each activity. I want a search bar to search for those buttons in order to open that activity. The search bar should be placed in the title bar. If searched for the text on the button only that button should be shown...plz help...new to android development
Use a list view with button effect instead of buttons. You can then filter the array list you are passing to the list view.

Android: Action bar's action items centered

I am working on the action bar of an application and I want the actions to be centered. I searched everywhere but all I can find is how to center the title. Is there anyway to center the actions? Moreover, I would like the text of the actions to be below the icon not on the right of the icon. Is there anyway to do that?

How to add click event on Android Action Bar

I have added one star icon on Action Bar. Now I want to add click event on that star. If the star is clicked then it should be bright or Turned ON which is OFF by default. And if that star is ON and clicked, then it should go to OFF. I am not getting any idea how to perform onClick event on action bar.
You have a good example here.
Action Bar Example
To add onClickListener to a view in your action bar you have to create a reference to that view first and then in the onCreateOptionsMenu() method you can register the onClickListener.
See the answer to this question here. Its the same principle, you're simply using a 'star icon' instead of a switch.

Android action bar items on the left side of the action bar

I am required to create an action bar that has its items split: four of them on the right side and four on the left (it's a tablet-only application). In portrait mode they shouldn't be split. Is it possible to implement without using a custom view for the left side of the action bar, as it seems inconsistent?
Note that I want to know how to do it with the default action items, not with the custom ones in a custom view, and that I don't have any influence on the UI decisions, so please do not suggest to change the concept.
All ActionBar items are aligned to the right. It is not possible without custom view.
But you can use actionViewStyle for buttons to make them styled as menu items.
https://stackoverflow.com/a/13143180/1366471

how to put view behind navigation bar in android?

I have a video view and i am hiding the navigation bar when video starts playing, but the view is stretched to the empty part created after the hiding the navigation bar. I want to play the video in full screen behind the navigation bar. So that when i do hide/show navigation bar the stretching and shrinking of video view should be avoided. Any suggestions are appreciated ...
Thanks.
What is it basicallly your navigation bar is it a Preloader,..?
for preloader
you can dismiss it like
pd.dismiss();
use full screen window with flag SYSTEM_UI_FLAG_HIDE_NAVIGATION :
view.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
reference:
http://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_HIDE_NAVIGATION

Categories

Resources