How can I add a Bar on top bottom android? - android

I want to have a tool bar on top and another bar at bottom of my activity,
make it look like that:

you can use Bottom navigation bars.
https://www.google.com/design/spec/components/bottom-navigation.html

Create a linear layout and align layout on top. For bottom, create another linear layout and align layout to bottom. Add your views into the layouts.

Related

Need to add views inside a slide bar in my application

I am new to android development and I want to add views inside a Slide bar. It must hide and view the elements by overlapping the layout.
As I have attached a screenshot of calculator app which has the same. I want to implement the same layout. What layout should I use to achieve this design?

Android - Relative center a custom view on an ActionBar (appcompat)

I'm trying to center a view on my ActionBar, relative to the overall width. The code I have at the moment:
actionBar.setDisplayShowCustomEnabled(true);
actionBar.setCustomView(R.layout.action_bar_custom);
sets a linear layout with centered gravity in the middle of the Home button and the Menu buttons, instead of directly in the middle of the Action Bar. Some fragments have menu options and some don't, which need to be there.
How would I achieve this?
Examples of what is currently happening:

Show and hide custom layout in bottom on layout with scale up and scale down animation

I have a custom layout which includes three buttons which in have included in layout at bottom i want to Show and hide custom layout on click in android bottom of layout with slide up and slide down an scaling animation in android.

How to Create menu top and bottom both of them in Android?

I wanna create a menu that be seen when clicked on the center of screen like Aldiko.
I've tested PopupWindow for create menu items but I didn't any solution for trackbar.
Are there any solutions?
Using Default Menu you can create Bottom or TOP layout. So you cant used this. But you can create your own layouts. Align one layout to top & second to bottom. Initially did INVISIBLE both layouts, when you click on center then VISIBLE both layouts.
You can use split ActionBar for getting something like you want. The only repercussion of using it will be the look in different screen modes (portrait and landscape). Your action items will align themselves as per the available screen space. Let me know if you are looking for some code for doing it with ActionBar.
You can use FrameLayout and put the main app layout on back frame and menu (with transparent background) on the top frame. Initial set the visibility of the menu layout to invisible so you app main layout would only be visible. Now when you clicks on the main layout just change the visibility to visible, when user press again set the top layout again to invisible.

Scrolling Navigation Bar Help Android

I was wondering how to create a navigation bar
like the one at the top of the screen that moves when "flicked" or scrolled.
Use a HorizontalScrollView, wrapped around a LinearLayout of Buttons or ImageButtons.

Categories

Resources