How can I create a floating window in Android Honeycomb like the one of Calculator or notepad application?
I've tested with
android:theme="#android:style/Theme.Dialog"
and I get a centered transparent activity but the problem is that it isn't movable and hasn't close button.
That calculator you show isn't a part of Android. Also, Android windows don't have close buttons like that. I don't know what you are looking at, but it isn't standard Android in any way shape or form.
AirCalc can do it https://play.google.com/store/apps/details?id=com.myboyfriendisageek.aircalc&hl=en
--Edit
Just to add to my previous answer. It doesn't need to be Custom API provided by device manufacturer as #hackbod mentioned in the above answer.
You can actually write a Service and Add a Layout to the WindowManager and set it to be TYPE_SYSTEM_OVERLAY and there you go, your application is running on top of other applications.
Related
I want exactly the same draggable mini window activity for my app like the one present in the app here:
https://play.google.com/store/apps/details?id=com.oryon.multitaskingpro
One of the images of the feature I need is:
[Multi tasking pro screeny
]https://lh5.ggpht.com/6Y5q2MCyoHPLGnDNwt7oQ2lbQkbkEDEgD16jQF6UbmoRjgSAuNjHZ4h6qcNgrfnVKY8n=h900-rw
Just got the answer.....I got an open source library named StandOut to do so.
I anybody else wants to do so can also use above library..its awesome
http://tinypic.com/r/2v85soh/5
Hi!,
Do you see that bottom arrow pointing up? I want to allow users in Android to be able to drag it and use buttons from there!
Regards,
Michael
Android has a SlidingDrawer UI component that can be used for this sort of thing: http://developer.android.com/reference/android/widget/SlidingDrawer.html
Android has a SlidingDrawer widget, but it's deprecated. I would look online for open source libraries/projects that have implemented this kind of functionality. Perhaps something like this: AndroidSlideUpPanel
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.
Could anyone tell me either what this widget is or how it could be recreated? I'm having to port over a iPhone app, and my boss wants me to make it look as similar as possible, but while using android controls. Here is a picture of it in Android:
http://cdn3.staztic.com/screenshots/android-swim-32-2.jpg
Thanks!
It is not a standard thing, but for this purpose, there is a: QuickAction dialog.
this can be done with a PopupWindow (it can also be shown as dropdown) where the background is a custom nine-patch file and the content is a listview (or any other view that fits your needs).
I'm sure that GreenDroid Library can do this but I don't know the name of the class to use
i am looking to add a home screen to my app sort of like facebook app has with little icons and labels under them (Pictures, Chat, Wall, etd). I would like to go this route as opposed to adding bunch of tabs on top.
My question is how i can get it done with Android API? I know i could probably make these icons with labels within but perhaps there is a way to make it in a native way.
Thanks! :)
Use regular Button/ImageButtons, but with android:background="#null". If you want the icons to change while they're being pressed or selected, use StateList Drawables.
http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList
Have you considered looking at the Facebook API and SDK for Android? They also provide functionality to create Facebook style dialogs aswell. Read-up more about the Facebook SDK here
I would suggest using a RelativeLayout and defining the looks of the home screen in XML. I would use ImageButtons like mentioned by gngr44 and then make the text labels from TextViews. You can align them beneath the buttons in XML and RelativeLayout is probably best.
The Android Developers site has a lot of useful info to get started. Like this link: http://developer.android.com/guide/topics/ui/index.html