Java Code Examples for android.widget.TextView.getLocationOnScreen()

The following are Jave code examples for showing how to use getLocationOnScreen() of the android.widget.TextView class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: BizareChat   File: ChatRoomRecyclerAdapter.java   Source Code and License Vote up 4 votes
public void setMessageDay(TextView messageDay) {
    this.messageDay = messageDay;
    defaultCoordinates = new int[2];
    messageDay.getLocationOnScreen(defaultCoordinates);
}