FORUMS

OnePlus 2 Forums: Discuss Everything About The OP2!

Now that the OnePlus 2 has been officially unveiled and that we have had close-up … more

Intel & Micron Announce “Revolutionary” Storage Tech

Intel & Micron have announced 3D Xpoint technology—”the … more

Google Now Interfaces With Third-Party Messaging Apps

Google has announced that Ok Google voice commands can now be used to send … more

Make Your Lockscreen More Productive With Widgets

Are you running Android Lollipop? Do you miss the ability to add widgets to your lock … more

[APP] Floating Example

914 posts
Thanks Meter: 1,460
 
Post Reply Subscribe to Thread Email Thread
There are a lot of apps coming which float above other apps like Chatheads for Facebook. So I made an example app showing how they work.

It is basically a view in a WindowManager which is inflated in a Service. With a few more tweaks, it can be made to change positions on the fly.

I made this for API 10+ but it should work with lower versions just fine.

Here is how it looks:

Quote:






This is just an example. The possibilites are countless.

Hope it helps developers create other apps like Floating Notifications and such.

Full sources can be found on my Github here.

Sample app can be found here.

Regards.


-----------------------------------

Featured on Portal:

http://www.xda-developers.com/androi...floating-apps/
Last edited by EatHeat; 5th August 2014 at 05:01 PM.
The Following 19 Users Say Thank You to EatHeat For This Useful Post: [ View ]
 
 
16th September 2013, 08:57 PM |#2  
nikwen's Avatar
Recognized Contributor
Thanks Meter: 1,569
 
More
Wow, I really like your guides.

Good job.
17th September 2013, 02:08 PM |#3  
EatHeat's Avatar
OP Recognized Developer
Flag Calcutta
Thanks Meter: 1,460
 
More
Quote:
Originally Posted by nikwen

Wow, I really like your guides.

Good job.

Thanks.
18th September 2013, 08:46 PM |#4  
Member
Thanks Meter: 2
 
More
This is real good, Are you planning for futher devlopment?

Verstuurd vanaf mijn GT-I9505 met Tapatalk 4
18th September 2013, 09:53 PM |#5  
N_otori0us_'s Avatar
Senior Member
Flag █ ▆ ▄ ▂ ▁ ▂ ▄ ▆ █`
Thanks Meter: 500
 
More
Can anyone make a poweramp version? For some reason I cannot open poweramp and have to use a widget instead
-
Maybe It'll work :P
19th September 2013, 03:15 AM |#6  
EatHeat's Avatar
OP Recognized Developer
Flag Calcutta
Thanks Meter: 1,460
 
More
Quote:
Originally Posted by misternox

This is real good, Are you planning for futher devlopment?

Verstuurd vanaf mijn GT-I9505 met Tapatalk 4

Yes, if there's something else to fix or add, I'll certainly do it.

Quote:
Originally Posted by N_otori0us_

Can anyone make a poweramp version? For some reason I cannot open poweramp and have to use a widget instead
-
Maybe It'll work :P

Poweramp version of what?
19th September 2013, 03:20 AM |#7  
Akshay (Aky)'s Avatar
Senior Member
Flag Pune
Thanks Meter: 691
 
More
Great work.
I had an wish to make an floating apps, using your library this would be surely accomplished.

Sent from my GT-I9300 using XDA Premium 4 mobile app
19th September 2013, 03:44 AM |#8  
N_otori0us_'s Avatar
Senior Member
Flag █ ▆ ▄ ▂ ▁ ▂ ▄ ▆ █`
Thanks Meter: 500
 
More
Quote:
Originally Posted by EatHeat

Yes, if there's something else to fix or add, I'll certainly do it.



Poweramp version of what?

Basically if I press the circle the poweramp app will open in it. That is what I wish

Sent from my myTouch 4g using xda app-developers app
19th September 2013, 05:08 AM |#9  
Member
Thanks Meter: 2
 
More
May be WhatsApp?

Verstuurd vanaf mijn GT-I9505 met Tapatalk 4
Last edited by misternox; 19th September 2013 at 05:46 AM.
19th September 2013, 06:40 AM |#10  
arashtarafar's Avatar
Senior Member
Thanks Meter: 43
 
More
Maybe we can expect some multi-window work from you?
That would be awesome... and after I make myself comfortable with android programming, you may count me in, also!
The Following User Says Thank You to arashtarafar For This Useful Post: [ View ]
19th September 2013, 09:57 AM |#11  
Member
Flag Hyderabad
Thanks Meter: 15
 
More
thanks
was looking for this..thanks

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes