Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,356 Members 39,139 Now Online
XDA Developers Android and Mobile Development Forum

[APP] Floating Example

Tip us?
 
EatHeat
Old
(Last edited by EatHeat; 5th August 2014 at 05:01 PM.)
#1  
EatHeat's Avatar
Recognized Developer - OP
Thanks Meter 1,410
Posts: 913
Join Date: Jan 2013
Location: Calcutta
Default [APP] Floating Example

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/
[3.0+]Crius.
Customize your clock.


[2.2+]SnowBowl HD.
Enjoy the vacations!


The Following 18 Users Say Thank You to EatHeat For This Useful Post: [ Click to Expand ]
 
EatHeat
Old
#3  
EatHeat's Avatar
Recognized Developer - OP
Thanks Meter 1,410
Posts: 913
Join Date: Jan 2013
Location: Calcutta
Quote:
Originally Posted by nikwen View Post
Wow, I really like your guides.

Good job.
Thanks.
[3.0+]Crius.
Customize your clock.


[2.2+]SnowBowl HD.
Enjoy the vacations!


 
misternox
Old
#4  
Member
Thanks Meter 2
Posts: 32
Join Date: Jul 2009
This is real good, Are you planning for futher devlopment?

Verstuurd vanaf mijn GT-I9505 met Tapatalk 4
 
N_otori0us_
Old
#5  
N_otori0us_'s Avatar
Senior Member
Thanks Meter 478
Posts: 1,578
Join Date: Mar 2013
Location: █ ▆ ▅ ▄ ▂ ▁ ▂ ▄ ▅ ▆ █`
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
My Phone: HTC Panache
ROM : [PORT] AoCP 5.8 (4.2.2)
Recovery : 4EXT 1.0.0.5 RC8

Memorable ROMs: ShenduOS, AoCP, Cyanogen7, SlimBean

I'm learning

If I've helped you, press that thanks button down there, it makes me happy
 
EatHeat
Old
#6  
EatHeat's Avatar
Recognized Developer - OP
Thanks Meter 1,410
Posts: 913
Join Date: Jan 2013
Location: Calcutta
Quote:
Originally Posted by misternox View Post
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_ View Post
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?
[3.0+]Crius.
Customize your clock.


[2.2+]SnowBowl HD.
Enjoy the vacations!


 
Akshay (Aky)
Old
#7  
Akshay (Aky)'s Avatar
Senior Member
Thanks Meter 542
Posts: 793
Join Date: Jul 2012
Location: Pune
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
Jair Player : Music Rainbow




Developing to make life easier
 
N_otori0us_
Old
#8  
N_otori0us_'s Avatar
Senior Member
Thanks Meter 478
Posts: 1,578
Join Date: Mar 2013
Location: █ ▆ ▅ ▄ ▂ ▁ ▂ ▄ ▅ ▆ █`
Quote:
Originally Posted by EatHeat View Post
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
My Phone: HTC Panache
ROM : [PORT] AoCP 5.8 (4.2.2)
Recovery : 4EXT 1.0.0.5 RC8

Memorable ROMs: ShenduOS, AoCP, Cyanogen7, SlimBean

I'm learning

If I've helped you, press that thanks button down there, it makes me happy
 
misternox
Old
(Last edited by misternox; 19th September 2013 at 05:46 AM.)
#9  
Member
Thanks Meter 2
Posts: 32
Join Date: Jul 2009
May be WhatsApp?

Verstuurd vanaf mijn GT-I9505 met Tapatalk 4
 
arashtarafar
Old
#10  
arashtarafar's Avatar
Senior Member
Thanks Meter 43
Posts: 176
Join Date: Sep 2010
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: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes