android: get cursor position from TextCursorLayer/View

Change-Id: I7629deb6e01ace052ac8bec70202844bc627ea85
This commit is contained in:
Tomaž Vajngerl
2015-04-08 12:55:14 +09:00
committed by Miklos Vajna
parent 6d9af88998
commit 4fb38c6f66
2 changed files with 8 additions and 0 deletions

View File

@@ -195,6 +195,10 @@ public class TextCursorLayer extends Layer {
}
});
}
public RectF getCursorPosition() {
return mCursorView.getCursorPosition();
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -372,6 +372,10 @@ public class TextCursorView extends View implements View.OnTouchListener {
}
return null;
}
public RectF getCursorPosition() {
return mCursor.mPosition;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */