When back from activity to the parent layout drawer menu hover wrong menu - android-layout

I have a problem when opening activity from the navigation menu and when the back button clicks, it come back into the parent layout but the navigation menu hover (Current Menu Fragment/Activity Pointer) shows the menu that is connected to the previous activity.
it's obvious in the images below:
if the gif is not obvious main quality of it is below link.
Gif With Main Quality
when back from the activity (in the gif it's 'Custom') into the parent fragment ( 'Home') the ('Custom') menu is hover, but it should hover the ('Home').
When We Back From Activity Drawer Should Hover The 'Home' Like Below But it Hovers The 'Custom'

You need to handle it through code, using setChecked(boolean checked) method

Related

Android Studio layout design view doesn't show menu bar items?

i've defined a simple menu in res/menu/simple_menu.xml, with a single item called TITLE2. i then iflate this menu in my MainActivity, and all is good (See device screenshot on right, where my TITLE2 is visible in the action bar top right. however, in the layout preview (activity_main.xml, Design view, left image in below) the menu item is not visible! is this intentional? is there a way to get my menu items to show up in preview mode? thanks,
<item
android:title="TITLE2"
app:actionProviderClass="com.example.chimee.MyActionProvider"
app:showAsAction="collapseActionView"/>
play with showAsAction for a while collapseActionView will add an item menu to a vertical list menu Something like this:
is there a way to get my menu items to show up in preview mode?
No, because the menu items show up in the action bar after you inflate it in your Kotlin/Java code.

Xamarin.ios Implement Navigation drawer

I am having a problem with implementing a navigation drawer in ios. I have found the Sidebar Navigation component , flyout navigation, Monotouch.Navigation and some others.
The flyout Navigation approach works but i am finding it difficult to customize the side menu because it extends the UITableview controller. It would be easier to customize it if it was a UIViewcontroller instead.
The Sidebar Navigation allows for customiszation but selecting an item causes the app to freeze and I am unable to disable the drawer on the login screen.
Would really like some suggestions if there is an easier way to implement this or am i missing something. (Take note, the drawer should only show after the user has passed the login screen and taken to the home screen).

Using Chrome Extension contextMenu, how to open a small view right next to the context menu on click?

This question has a couple bits to it. Basically I want to make the context menu behave like a sidebar that pops out a box with html.
Get the height and location of a users context menu?
Open an interactable html view next to the menu without closing the menu?
Close both the menu and popout on off-click.
So a user can right click on the page,
and then click the contextMenu item to open a page that can hold html

Custom menu for chrome text field

I want to create a custom pop-up menu, which appears when the user focuses a text field. In this menu, the user should be able to click on buttons or something.
I tried using content scripts, but my problem is, that I don't find good events to show and hide the menu.
I tried the focus event to show the menu and the blur event to hide the menu, but obviously when selecting something in the menu, the text field looses focus and blur fires, which hides the menu and does not process the click. Additionally, when I use the focus and blur events on text fields, I guess I will override existing event of the webpage.
Is there a good way to accomplish this?

Enable mouse scroll in flipview children

In my WinJS application, I use a flipview, with a Listview inside it.
The listview as a long content, so it is scrollable : the scrollbar is visible, I can scroll with the finger on a touch screen, but the mouse wheel doesn't work.
After looking at the flipview source code, I added the win-interactive class on my listview, and now I can use the mouse wheel to scroll, but the problem is that the scroll also applies to the flipview container : the mouse scroll directly between the different flipview items.
Is there a way to enable the scroll on the listview, without modifying the flipview behavior ?
Yes there is, you can subscribe to the mousewheel event being fired in your ListView and stopPropagation() from there to the FlipView.

Resources