android: get cursor position from TextCursorLayer/View
Change-Id: I7629deb6e01ace052ac8bec70202844bc627ea85
This commit is contained in:
committed by
Miklos Vajna
parent
6d9af88998
commit
4fb38c6f66
@@ -195,6 +195,10 @@ public class TextCursorLayer extends Layer {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public RectF getCursorPosition() {
|
||||
return mCursorView.getCursorPosition();
|
||||
}
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@@ -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: */
|
||||
|
Reference in New Issue
Block a user