I want to display tool tip on menu item like this ,whenever the application loaded.! without any click ,it should show the tool tip.please help..!
There are a lot of libraries out there for this just search for showcase view.
Here's one of the most popular libraries: https://github.com/deano2390/MaterialShowcaseView
Related
When I use andriod studio,I will open several classes.Once the classes I open are more and more,the bar will collapse.Just like the picture.enter image description here
The result I want is that,the classes have been opened don't collapse,all the classes will dissplay in the bar.Who can do me a favor?Thanks a lot.
Just uncheck the red one, when you want to configure something, type in the search bar on the left-top
I have a menu in my app that i am trying to iterate trough. The menu consists of more than 10 items, but i only want to test the first 5 items (which i can select with either index or based on text).
I am looking for a generic solution that will
select menu item 1
do a text check
select main menu
select menu item 2
do a text check
select main menu
etc
However i also need to execute this on multiple devices with different screen sizes, so it has to scroll to the menu item in case its not yet visible on screen.
I've tried using different solutions from these boards, but i have not been able to succeed yet.
Any help would be greatly appreciated.
The issue here is because of a bug in robotium that was fixed after the latest release. The issue in question is https://code.google.com/p/robotium/issues/detail?id=550
The latest code on github does have this fix in (see here, so you could package the source yourself and use that as the latest version otherwise you are going to have to implement some methods that have the same functionality as that changed.
Edit
Robotium 5.0.1 is now available and should have the above fix in it.
I am working on an android app and I want to make a button display a certain menu when clicked. For example, the google play music app has a overflow icon next to each icon, and when clicked, you are presented with a list of choices. How can i accomplish something liks that? http://i.stack.imgur.com/TZ3fU.png
Android Developer Guide has a tutorial:
http://developer.android.com/guide/topics/ui/menus.html#FloatingContextMenu
Also, given the situation, you might want this:
http://developer.android.com/guide/topics/ui/menus.html#PopupMenu
You can also use the Spinner widget. In case you are using Sherlock, you can use
If you want it backported you can use the v7 version of popupmenu
https://developer.android.com/reference/android/support/v7/widget/PopupMenu.html
I was trying to figure out how to create this style used in Google Now, how the "Settings" appears to be a Spinner drop-down box but does not use the typical Spinner design:
Any ideas/suggestions on how to emulate this?
Thanks!
This is called pop up menu. It is implemented in apidemos for example.
Did you look at the example of ApiDemos->Views->popup menu. This may be appropriate. Attached screenshot for your reference. Pop up menu is available since API 11. Ref.
http://developer.android.com/reference/android/widget/PopupMenu.html
or
This could be useful too
http://i.stack.imgur.com/AiAOg.png
You can get the Library from: https://github.com/JakeWharton/ActionBarSherlock
or
If you want to display icon along with menu items then I recommend to visit this post,
Please refer to this solution stackoverflow.com/a/11765787/1143977
I want to create a similar drop down menu using the grid button on the top right corner like the one the Wash Post android app.
I went through the web. But could find any answers, as I am new and really don't know what keywords to search with.
The library ActionBarSherlock is able to do that in targets below Android 3.0 - it's available since Honeycomb via the normal menu mechanism.
If you want your items to appear in that dropdown - just define the right flag
SHOW_AS_ACTION_NEVER