Open GoogleCodeExporter opened 8 years ago
如果你用Android 4.0,只需要点查询图标就可以显示单词列表。
手势功能以后会加强的。
关于拷贝文本,主要问题是需要使用WebView而不是现在的TextVie
w。这是个大改动,AnyMemo
10不会改进的,所以需要先使用WebView然后再考虑如何选择文��
�。
下面是参考代码。
/**
* Select Text in the webview and automatically sends the selected text to the clipboard. From
* http://cosmez.blogspot.com/2010/04/webview-emulateshiftheld-on-android.html
*/
private void selectAndCopyText() {
try {
KeyEvent shiftPressEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_SHIFT_LEFT, 0, 0);
if (mCurrentSimpleInterface) {
shiftPressEvent.dispatch(mSimpleCard);
} else {
shiftPressEvent.dispatch(mCard);
}
shiftPressEvent.isShiftPressed();
mIsSelecting = true;
} catch (Exception e) {
throw new AssertionError(e);
}
}
Original comment by mrlhwlib...@gmail.com
on 3 Nov 2012 at 9:32
Original comment by mrlhwlib...@gmail.com
on 30 Jan 2014 at 6:27
Original issue reported on code.google.com by
dingweif...@gmail.com
on 2 Nov 2012 at 12:47