Search code examples
androidtextviewandroid-relativelayout

Android onLongClick bug with TextView


I've a strange bug with TextView in RelativeLayout. After setting OnClickListener to RelativeLayout, when I press relativeLayout for long (that is OnLongClick) there appears a popup with button "paste". After pressing "paste" a text from buffer pastes into textView (which is inside RelativeLayout). I'm confused, is it google's side bug, or I made something incorrectly?


Solution

  • I've found solution. It's strange as a problem. Several bugs appears after adding <item name="android:inputType">textFilter|textNoSuggestions</item> to styles. I don't why, but after removing this line, all things becomes right. It was one more bug - all TextViews becomes singleLine