CopyPastor

Detecting plagiarism made easy.

Score: 0.8656033217906952; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2016-10-14
by nzala

Original Post

Original - Posted on 2012-05-25
by jnthnjns



            
Present in both answers; Present only in the new answer; Present only in the old answer;

**Positioning your Toast**
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.
**Positioning your Toast**
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:
<!-- language: lang-js -->
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.
Source: [Google Developers][1]

[1]: http://developer.android.com/guide/topics/ui/notifiers/toasts.html

        
Present in both answers; Present only in the new answer; Present only in the old answer;