GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — AndroidEdit/README.md at master · qinci/AndroidEdit

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
32 lines (25 loc) · 736 Bytes
/

README.md

Copy path

File metadata and controls

executable file
·
32 lines (25 loc) · 736 Bytes
Raw
Copy raw file
Download raw file
Edit and raw actions

AndroidEdit

提取我正在做Markdown编辑器的一个功能

####EditText的撤销和恢复撤销操作 #####使用

  • 引入库
    • compile 'ren.qinc.edit:lib:0.0.5'
  • 初始化
    mEditText = ((EditText) findViewById(R.id.editText));
    //创建PerformEdit,一定要传入不为空的EditText
    mPerformEdit = new PerformEdit(mEditText);
    mPerformEdit.setDefaultText("这是初始值,不做撤销记录");
  • 撤销和恢复
	//撤销
	mPerformEdit.undo();
    //重做
    mPerformEdit.redo();
    //清除历史
    mPerformEdit.clearHistory();
  • 演示图

    Image

  • 最后欢迎您star、fork

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.