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

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

Activity

  1. DayS commented on Apr 16, 2013

    @DayS
    Contributor

    It's the same issue than #549
    I think it's a good idea. If you have some free time to implement this, go ahead :) Otherwise, I'll try to do it later

  2. davidjorgensen commented on Apr 16, 2013

    @davidjorgensen
    Author

    Roger..

    I am actually having some issues inflating the "normal" way, but i'll try to fit it into my schedule.

  3. tmszdmsk commented on Apr 18, 2013

    @tmszdmsk

    great idea, I have similiar issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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