addons for Firefox for Android - Disable menu item? - android

I've looked at the documentation and the example but it only shows ways to add/remove menu items, but not disable. Is it not possible or is there a way to do this? If so, can you please provide me a link to the full API(if there is one).

Did you try watching this addon source code? Sometimes some thing are the same in mobile: https://addons.mozilla.org/en-US/firefox/addon/menu-editor/
There is a lot of people who can help you here:
http://client01.chat.mibbit.com/?server=irc.mozilla.org&channel=%23mobile

You can use NativeWindow.menu.add(...) to add the menu, then use NativeWindow.menu.update(...) to disable it. See the docs for examples:
https://developer.mozilla.org/en-US/docs/Extensions/Mobile/API/NativeWindow/menu/update

Related

How to implement something like this in an android application?

I'm looking for the right and convenient way to create this item. I spent many hours on the internet and still have not found anything like it on the android. Thank you in advance.
If you would like to use Android native library i suggest TabLayout, with a ViewPager.
It will allow you to have one tab selected at a time, and have the animation when you slide to the next tab.
This is just an example that you can take a look at: https://android.jlelse.eu/tablayout-and-viewpager-in-your-android-app-738b8840c38a
There are also some custom libraries that will maybe give a better animation or something like that but i suggest you first try this before trying 3rd party libs.

Google Search Bar Android

I am trying to replicate the Google search bar movements as well as design as shown in the link below.Sorry i couldn't post the actual gif here,i couldn't figure out how to.
Demo
I presume you're looking for something like this
If so then the idea is to use a android.support.design.widget.CollapsingToolbarLayout
inside of a android.support.design.widget.CoordinatorLayout.
Follow this tutorial and you it would be done.
Hope that helped :)

android pop up menus

I cannot find either one of these two views in the source, but have seen them both in many apps. Can anyone please tell me what they are called?
Thanks
The second one is an options menu from the action bar. I think it is implemented as a ListPopupWindow.
The first one is not part of the Android SDK, though there are various implementations floating around. Here is an example of one designed for use with Google Maps, for example. Here is one designed for the "quick actions" pattern.
I'm going to assume that they're custom made ones, so you won't find them in the standard Android libraries.
The second one I think is just the way that the default menu looks in ICS (and honeycomb for that matter). If you build for 4.0 and include the code for an options menu I think you'll get that UI by default. If you are looking to customize it check out this page http://developer.android.com/guide/topics/ui/actionbar.html and pay close attention to the "Adding drop down navigation" section.
The first one is not a part of the android UI, that is something specific to the facebook app.

add settings in Android builtin Settings

I want to add an item in android builtin settings, for my application.
Can any body guide me through any tutorial or code that how can i acheive this?
Thanks a bunch in advance!
Something tells me this is not what you want... I don't know how to achieve it but I have a feeling if it is even possible, it wouldn't work on all devices. I'd stick to an in app settings menu like everything else. At least that way you know it's possible and will work on all devices.

Android popup menu

I am making an Android app. I have a list of items displaying. I am looking to create a popup menu just like the one that pops up when you tap the avatar of a contact in the contact list. I have tried looking through the Android reference but can not find it.
Has anyone created one of these popup menus? A link to the reference or a code sample is fine.
Screenshot of menu:
http://www.youchoob.org/pics/popup.jpg
What you are describing is called a 'Quick Action'. This is actually a user interface pattern - there isn't an existing widget or anything in the API for this. They discussed it at Google IO (See in this video here, at the 15:40 mark), and also there has been some discussion on how to implement it on stack overflow, specifically this question. If you start digging around (now that you know the name of what you are looking for) you might find more.
you can find "QuickAction" widget in
https://github.com/cyrilmottier/GreenDroid
below is a demo activity
https://github.com/cyrilmottier/GreenDroid/blob/master/GDCatalog/src/com/cyrilmottier/android/gdcatalog/QuickActionActivity.java
Please find the code OR framework from here :
http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/
The source code for the contacts is open source. You should look around here and see if you can find it.
https://android.googlesource.com/platform/packages/apps/Contacts
I'm looking now if I find it I will edit.

Categories

Resources