“android:textIsSelectable=”true" not working for TextView in RecyclerView

前端 未结 7 1119
甜味超标
甜味超标 2021-01-01 09:31

I know that setting android:textIsSelectable=\"true\" in xml for the TextView will show the native text selection popup and I\'ve been using that i

7条回答
  •  一个人的身影
    2021-01-01 10:06

    Add In Your RecyclerView Adapter:

    public ViewHolder(View itemView) {
                super(itemView);
                txtDate = (TextView) itemView.findViewById(R.id.txtDate);
                txtDate.setTextIsSelectable(true);
    }
    

    its worked for me..

提交回复
热议问题