 |
|
|  |
| [개발 Tip] WebView에서 문자열 선택하기 |
|
|
 |
10년 전 |
http://stackoverflow.com/questions/1111844/selecting-text-in-a-webview
The browser does this by calling public void emulateShiftHeld() method on the WebView which is hidden in the SDK. Any other options? TIA.
public void selectAndCopyText() {
try {
Method m = WebView.class.getMethod("emulateShiftHeld", null);
m.invoke(this, null);
} catch (Exception e) {
throw new AssertionError(e);
}
}
[출처] [개발 Tip] WebView에서 문자열 선택하기 (안드로이드개발 카페 [개발자 커뮤니티]) |작성자 에디터 |
|
추천 : 418 |
추천
목록
|
|
|  |
|