MauW4r3 / anymemo

Automatically exported from code.google.com/p/anymemo
GNU General Public License v2.0
0 stars 1 forks source link

Looking up a word in dictionary by long clicking on the text #141

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
我试了下最新的“nightly build”版本,就查词典发表些看法:
1.操作步骤多,以前长按屏幕就可以调出菜单,现在要两步来
实现。不知为何取消长按这个动作。
2.当我点击查词典后,弹出的界面是个单词列表,这个让我疑
惑了,如果QA里面只有几个单词还行,但是如果有数十个单词
(),按目前的模式,还要去确定要查找的单词。

What is the expected output? What do you see instead?
建议:
1.查词典这个功能比较常用,那么能用最少的动作实现是比较
好的选择。
2.对于第二个问题,可以参照Anki或者阅读软件Moon 
reader的文本选择.
3.手势控制可以强大些。在屏幕不同区域(上下左右),不同
动作(单击,双击,滑动),这些动作来实现指定的功能。��
�如,Q区域就一单词(词库一般都是这样),需要在词典中看
下更详细具体的解释。此时,如果仅仅单击Q区域就自动弹出�
��典解释来,简单快捷,很人性化的。
以上希望软件作者考虑下。
What is the AnyMemo version (E.g 8.999.1, 9.0, 9.1.1)?

What is your Android phone model?

What is your Android version?

Original issue reported on code.google.com by dingweif...@gmail.com on 2 Nov 2012 at 12:47

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago

Original comment by mrlhwlib...@gmail.com on 30 Jan 2014 at 6:27