Code example for Layout

Methods: getLineCount, getLineForVertical

0
		Layout layout = this.childView.getLayout();
		if (layout == null) {
			return false; 
		} 
 
		int line = layout.getLineForVertical(ypos);
		return line == layout.getLineCount() - 1;
	} 
 
	@Override 
	public boolean isAtStart() { 
		return getPosition() == 0; 
	} 
 
	@Override 
	public void loadText(Spanned text) {
 
		childView.setText(addEndTag(text));
		this.text = text;
		updatePosition(); 
	}