FORUMS

Mysterious GG1 Google Device Stops by FCC. Glass v2?

As the year progresses, we draw further away from Google’s annual I/O … more

Material and Material Dark Hit Samsung’s Theme Store

The latest version of Touchwiz, launched alongside the Galaxy S6 and S6 Edge, … more

Swappa’s New App Helps You Value Your Device

There comes a sad time in everyone’s life where you must part ways with your … more

Xiaomi Sold 34.7 Million Phones In 6 Months

2015 has been a phenomenal year for Xiaomi so far. With a stellar rise in 2014, 2015 saw … more

[APP] Floating Example

914 posts
Thanks Meter: 1,458
 
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,559
 
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,458
 
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: 498
 
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,458
 
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: 685
 
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: 498
 
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 ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes