android - The cut/copy/selectall bar dissapears when click on SELECT ALL button -


i have multi lines edittext:

    <edittext               android:id="@+id/et1"                android:imeoptions="actiondone"               android:layout_width="300sp"               android:layout_height="90sp"               android:layout_margintop="5dp"               android:layout_marginleft="5dp"               android:layout_marginbottom="5dp"               android:background="@drawable/edittext_bg_white"               android:ems="10"               android:inputtype="textmultiline"               android:lines="8"               android:minlines="6"               android:textsize="18sp"               android:layout_gravity="left"                android:gravity="top|left"               /> 
  1. i add text of 4 lines inside edittext.
  2. i double click on text , cut/copy/selectall bar shows.
  3. i click on select icon in cut/copy/selectall bar.
  4. the bar dissapears (letting activity more place), can not copy/cut anything, , that's problem: want copy have selected.

i appreciate help.

the code add code:

android:textisselectable="true" 

or

android:textisselectable="false" 

your code :

<edittext           android:id="@+id/et1"            android:imeoptions="actiondone"           android:layout_width="300sp"           android:layout_height="90sp"           android:layout_margintop="5dp"           android:layout_marginleft="5dp"           android:layout_marginbottom="5dp"           android:background="@drawable/edittext_bg_white"           android:ems="10"           android:inputtype="textmultiline"           android:lines="8"           android:minlines="6"           android:textsize="18sp"           android:layout_gravity="left"            android:gravity="top|left"           android:textisselectable="true"/> 

====================================

probably link below: action bar select all/cut/copy not showing alert dialog


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -