Android Option Menu and Two Pane Layout - android

I would like to add action menu above first fragment, not above second fragment.
I have no idea how to implement. Below is the screenshot.
Please help how to implement separate action menu for each fragment in two-pane layout like the following image from internet.
Thank you. I used Toolbar from support lib.

Related

Bottom Menu bar with submenu

Im using the BottomNavigationViewEx library to display a Bottom Menu Bar in my android app, the library works well and fixes many of the shortcomings of the standard BottomNavigationView.
The problem comes when as per requirements I need to show 7 options in the menu, with 4 options being the direct access to their respective functionality and a "More" option, that should show a submenu with 3 more options (similar to a toolbar with items with property showAsAction="never")
Since the library does not admit more than 5 items and does not support submenus either I've been trying to implement a solution to no avail. Is there a way to implement this or any other bottom menu library that I could use that implements submenus (or lets me extend it to create a submenu)?
#Jeav148, you can take help from androidhive tab tutorial.
https://www.androidhive.info/2015/09/android-material-design-working-with-tabs/
From this tutorial you can check the scrollable tabs, so you'll be able to add tabs as much menu items you want.
Just you need to use the tablayout inside RelativeLayout with property AlignParentBottom = "true" to show the tabs at bottom.
Even though Adil's answer could have worked, I didn't go for it since it could create other problems. So I ended up making a Popup Menu anchored to the last menu item in the BottomNavigationView

How to achieve the same appbar-design as Periscope's Android app?

Here is a screenshot of the toolbar. It has three navigation items to the left which looks just like a tab-layout. When you select the third tab, a menu item pops up from right side of the toolbar.
How can i achieve this look? Is this a tablayout inside a toolbar? Or a tablayout and a toolbar next to each other? I've tried some stuff but failed.
I would use TabBarView. Then, in the Fragment you want a MenuItem to show (like the last tab in Periscope), add setHasOptionsMenu(true) and have the MenuItem's visibility be app:showAsAction="always". Wally also uses this UI pattern.

Two level Sliding menu in android application

I want to use facebook like sliding menu, but with a menu and submenu. If any item in the menu is clicked a sub menu must appear and both the parent menu and the sub menu must be displayed. Is there any library available for this that could be used even for APIs below 16. I have searched a lot for implementing submenus, but not successful. Pls help...
Your question is not very clear to me. But with what I feel is use ActionBarSherlock and define both left fragment and right fragment in xml and use refer it in the MainActivity. I hope I helped. Is this what you want?

ActionBarSherlock Tab, ViewPager and MultiFragments like Foursquare

I want to create an ActionBarSherlock with tab navigation and ViewPager like Foursquare. I'm using the code located in this page. What I want is in the first tab (Friends tab in printscreen), I want to create new Fragment from main Fragment. Briefly, in Foursquare, Friends tab has a timeline that shows check-ins of your friends and if you click a check-in row, it goes to detail of this check-in. My desire is the same as Foursquare did. How can I manage this operation (creating new window -Fragment or Activity-) using ActionBarSherlock with tab navigation and ViewPager?
I have the same problem, that´s the menu I want to create with two bars but, for the moment, I can´t.
I found this article in Android developers forum http://developer.android.com/design/patterns/actionbar.html they talk about different Action Bars under the title Layout Considerations for Split Action Bars:
The top would be the Main action bar. In your example: foursqare, refresh and set place
Top bar: for the tabs. Friends, explore, me
Bottom bar: at the bottom of the screen
I don´t if someone solved your problem if so please tell me if you used this
Thanks

Fragments Within Fragment Tabs

I'm building an application that requires Tabs, which are now deprecated. The dev guide says to use Fragments to replace the tabs instead. However, my application needs to have fragments within each tab, which means fragments inside fragments, which isn't allowed. Does anyone know of a possible work around for this?
While the action bar support for tabs is designed to make it easy for the contents of a tab to be a fragment, that is not strictly required. You could use ViewFlipper, repeated calls to setContentView(), or something to arrange to change other stuff when the action bar tab is selected.
Prior to the native action bar (Android 1.x/2.x), either stick with classic tabs, or use something like Action Bar Sherlock to get an action bar and tabs.
I fake tabs by having a "tabs" fragment across the top that contains multiple toggle buttons. Below that I have a merge view containing a separate fragment for each tab.
I respond to taps on a toggle button by toggling the other buttons "off", showing the fragment for that "tab", and hiding the others.
its little late , but yes you can :) here's an example
but for fragment inside fragment inside tab isn't an android native way, you have to start a new fragmentActivity if you want to show detail of fragment. you can but is not an android way !

Categories

Resources