I've seen in many Java code notation that after a method we call another, here is an example.
Toast.makeText(text).setGravity(Gravity.TOP, 0, 0).setView(layout).show();
As you see after calling makeText
on the return we call setGravity
and so far
How can I do this with my own classes? Do I have to do anything special?
See Question&Answers more detail:os