it's a youtube app and I want to know how to add the configuration window
It is called overflow menu.
See the image and its description below: Google Design Guidelines - Menu.
The action overflow in the app bar will emit a menu.
This particular action overflow menu contains four menu items: Refresh, Help & feedback, Settings, and Sign out.
Related
I see this layout item in a lot of apps but I don't know the name. What is the name of this layout item pictured in the images below?
Image 1
Image 2
You might want to take a look at the PopupMenu class.
Also, this is used for the overflow menu in the Action Bar, you can read more about it here.
They are menus, read official docs.
Contextual Menus are used when you need to show a list of choices, example when you long press in a item in ListView.
I have an app where the action bar and notification bar is hidden when user opens the app. I have seen some apps where some overlay help is shown with the image of a hand and up,down arrows and text below which says:
"Tap to view action bar. Tap again to go full screen"
Any help?
Do not use full screen for your app unless you really knows it's the only way. Full screen is annoying for user as you hides clock, nottifications etc.
As for help you may want to use ShowCaseView library: https://github.com/Espiandev/ShowcaseView
I would like to reproduce the effect of appearance and disappearance of the action bar that carries the Google Application Now.
Exist there a library (GitHub project) to achieve this effect?
1) Initially, the action bar appears normally.
2) Then, as soon as you scroll down the listView action bar disappears.
3) And then, as soon as you scroll up the action bar appears again.
It's called Quick Return. See this blog post for details on the pattern. There is also a link to an implementation by Google developers.
Maybe this link can be usefull: it shows how to change ActionBar color while you scroll on layout. You want to achieve the opposite one, so you have to change a little the code. Personally i didn't try this code, but the blogger is a very good developer!
I'm setting up an action bar with Sherlock with 3 items/icons.
Running on a ICS emulator, I only can see 2 icons. And moreover: NO overflow menu (those 3 dots-icon)!
I only get the 3rd icon if I press the menu button of the phone.
Do I have to force the overflow icon, and if so how can I do so?
Do I have to force the overflow icon, and if so how can I do so?
All you need to do is have your theme inherit from one of the .ForceOverflow themes. Note this will only work for Android 2.0 and 3.0. In 4.0 the native ActionBar component is used instead, and the overflow item is only displayed if the device does not have a menu key.
Do I have to force the overflow icon
No.
Your emulator is set up, by default, to emulate a device that has an off-screen MENU key, like the Nexus S. Such devices will not have an on-screen overflow menu button -- users will use the MENU key to access the overflow. Many of those devices, like the Nexus S, will be ones upgraded from Android 2.x, where the user will already be used to pressing the MENU key to get what used to be the options menu and now is the overflow menu.
You can switch your emulator to emulate a device without an off-screen MENU key. In your AVD Manager, for an AVD, add the "Hardware Back/Home keys" property (which, despite the name, also has the MENU key) and set it to be true or false as you wish.
I have searched and searched Google, Stack Overflow, etc. for an answer to this and failed!
I wish to programatically disable/enable selected radio buttons in a single Android preference.
For example, there is a radio button preference with 6 choices, but depending on some condtions (not related to the preferences) some of them will be unselectable and should be shown as disabled.
I can see how we can disable complete radio button groups, but not individual radio buttons
Can Anyone help?
AFAIK, this is not supported by the built-in ListPreference. You are welcome to write your own custom Preference, or perhaps extend ListPreference, where you supply your own Adapter and disable certain items that way.