List of usage examples for android.widget TextView getTotalPaddingBottom
public int getTotalPaddingBottom()
From source file:com.juick.android.MessageMenu.java
private int getLineAtCoordinate(TextView textView2, float y) { y -= textView2.getTotalPaddingTop(); // Clamp the position to inside of the view. y = Math.max(0.0f, y);//from www .j av a 2s . c o m y = Math.min(textView2.getHeight() - textView2.getTotalPaddingBottom() - 1, y); y += textView2.getScrollY(); return textView2.getLayout().getLineForVertical((int) y); }