Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

MenuItem reference #560

@davidjorgensen

Description

@davidjorgensen

Is there a place to discuss things like this?

Anyways, is it possible to get a menuitem injected?

I am using the @optionsmenu and @OptionsItem and they work fine.

More specifically I am working with the action bar with a refresh button. When the refresh button is pressed the Bluetooth will go into discover mode and search for nearby BT devices. So I want to change the refresh button to an indeterminate progress bar when i receive the intent "discovery started", and show the refresh button when the discovery finished intent is received.. In order to do this i need a reference to the menuitem to change the view.

Is it possible to do this already or would it make any sense to implement a @MenuItemById or @MenuById annotation to be used like the @ViewById annotation?

Regards,
David

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions