Posts Tagged ‘popup’
Android Tips: Make Your Android Video Player Able to “Pop Up” and “Float” on other Apps, like features in Samsung Galaxy S III or Samsung Galaxy Note
Posted July 31, 2012
on:You somehow wants to feel the way of playing video and still able to look on emails, browsing, texting, or other things?
Here’s a solution from you from moboplayer, a feature that could do that. And you can challenge SGS3 Owner that yours are also have a ‘floating’ video player features.
I’ve tried it with my Samsung Epic 4G Touch running ICS with Super Galaxy Rom and works flawless 😀
Here is the market link:
https://play.google.com/store/apps/details?id=com.clov4r.android.nil&hl=en
Download it, Use it, Proud of it 🙂
A standard toast notification appears near the bottom of the screen, centered horizontally. You can change this position with the setGravity(int, int, int) method. This accepts three parameters: a Gravity constant, an x-position offset, and a y-position offset.
For example, if you decide that the toast should appear in the top-left corner, you can set the gravity like this:
toast.setGravity(Gravity.TOP|Gravity.LEFT, 0, 0);
If you want to nudge the position to the right, increase the value of the second parameter. To nudge it down, increase the value of the last parameter.
Android Tutorial : Make a Simple Toast (Screen Pop Up Window) for several time
Posted May 10, 2012
on:Toast.makeText(v.getContext(), “This is the text.”, 1000).show();
Â
the 1000 is 1000ms (1 second