Amdroid drop down menu - android

I am looking for a drop down menu similar to this for my Droid app, i would prefer to not home brew it if something already exists:

Closet thing i know of is:
http://www.pavanh.com/2013/05/android-popup-menu-example.html
then perhaps find a way to use a custom 9 patch to make your bubble type effect.

Your activity should be styled as a Dialog.
You need to update your AndroidManifest.xml, add :
<activity
android:name="package.activity"
android:theme="#android:style/Theme.Dialog">
And then customize your theme to approach your bubble idea...
Edit: Muhammad has useful answer too, it's more like a popup window that you need, see
http://androidituts.com/android-popup-window-tutorial-2/

Related

Where can I find all Android built in themes

At the moment im using:
android:theme="#android:style/Theme.Black.NoTitleBar"
Which I'm growing a bit bored of, Is there a link you can direct me to that shows me examples of all the inbuilt themes and their names?
I read on another post that there is quite a few so it would be best if there was a website/other source that could show me some previews :)
Thanks for the help!
Your IDE (I know Android Studio does), should show you them.
Otherwise, here they are in raw xml form. https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/values/themes.xml
More information on Android Dev docs: http://developer.android.com/guide/topics/ui/themes.html
You can see all the theme names in the manifest.xml. For this see the following snapshot:
Android Studio has a Theme Editor which provides preview function.
User can find all built-in themes inside.
2 ways to open it:
Open a styles XML file, for instance res/values/styles.xml. Then click Open editor near the top-right of file-editing window.
in top menu bar Tools-Android-Theme Editor.
I'm pretty noobish with it all but basically I think there are only two themes. Day/Night and Light. You can select individual parts and change them but as far as I can tell there are only two themes.
As I had a comment that said this doesn't answer the question I will add that you can use Theme.AppCompat.DayNight or Theme.AppCompat.Light in the AndroidManifest.xml or in styles.xml and edit any individual attribute but there are about a million attributes and god only knows what they all do. In my opinion it's a massive oversite by android.

Android create layout like default OS menu

I want to create a menu layout in my app, which needs to be the same as the default OS menu.
I wanted to start by looking at Android OS code, but I do not know where I can found that are related to menus
Any help is welcome
Thanks
How to change menu theme in Android
In your Manifest:
you can also try reading this:
http://staticallytyped.wordpress.com/2011/05/05/android-how-can-you-implement-a-custom-menu-class/
I hope it will help
You can use a customized Grid view !

Dynamically Updating Launcher Icon in Android

I am trying to put a dynamic value in the launcher icon of android, as number of messages will be displayed in the message icon. As the icon is static and initialised before the application starts, Is there any way to achieve this??
For Android Launcher Icon you can't. It is impossible. (Or by Making your own launcher) The only one thing is you have to make a Android-Widget for this purpose. Which looks like a application icon. But it will act as a widget.
Also Make a dynamic launcher icon
simple answer is you can't do it also this question says the same. But there may be advance tricky methods/ways that I'm not aware of.
But you may try and develop widgets that changes dynamically.
You have to design your icon as a selector instead of drawable. Have a look at this.
You cant update because its related to manifest.xml stuff only possible with software upgrade.

Implementing custom menu in android system

I am trying to find a way to customize the android menu in system level.I want to remove the existing android menu and replace the custom menu.Can any one done the replacement of default menu.Can any one help me how to do that?? or kindly share some useful links to do that.
Thanks in Advance..
Hope these links will be helpful to you,
http://www.codeproject.com/KB/android/AndroidMenusMyWay.aspx
Adding Custom Menu In Messege Activity in android
Android: customize application's menu (e.g background color)
check this:
http://developer.android.com/guide/topics/ui/menus.html
http://developer.android.com/guide/topics/resources/menu-resource.html

Removing the shadow which comes below a tab layout in android. [done]

I am curious to know if there is anyway I can remove OR change the drop-shadow like effect that android gives below a Tab layout.
As soon as I ask this question, I get the answer in another stackoverflow post. Anyways for the benefit of people who have landed on this post, the answer is to
use a custom theme with its windowContentOverlay set to null

Categories

Resources