Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

回复者1的长按事件长按会崩溃 #2

Open
merhong2012 opened this issue Oct 11, 2015 · 2 comments
Open

回复者1的长按事件长按会崩溃 #2

merhong2012 opened this issue Oct 11, 2015 · 2 comments

Comments

@merhong2012
Copy link

错误: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.widget.Editor$SelectionModifierCursorController.getMinTouchOffset()' on a null object reference

@merhong2012 merhong2012 changed the title 长按会崩溃 回复者1的长按事件长按会崩溃 Oct 11, 2015
@pahoehoe
Copy link

pahoehoe commented Jan 2, 2016

textView1.setOnLongClickListener(new View.OnLongClickListener() {
@OverRide
public boolean onLongClick(View v) {
return true;
}
});

设置一个长按监听器即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants