java - android 4.0 and higher : Copy/paste/cut panel disappears onLongClick Listener on the EditText -


i use preferenceactivity in tabs , add footer edittext's :

 <?xml version="1.0" encoding="utf-8"?>   <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:foo="http://schemas.android.com/apk/res/com.assignmentexpert"               android:layout_width="fill_parent"               android:layout_height="fill_parent"               android:orientation="vertical">   <tablelayout      android:id="@+id/tablelayout1"     android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:shrinkcolumns="2"     android:stretchcolumns="0"     >     <tablerow           android:id="@+id/tablerow1"           style="@style/text_row"            android:layout_weight="1"           >   <com.customitems.customedittext         android:id="@+id/tasktext"         style="@style/custom_edittext"         android:gravity="top|left"         android:maxlength="8192"         android:layout_marginleft= "25dp"         android:layout_height="110dp"         android:imeoptions="actiondone"         android:layout_weight="1"         android:layout_width="fill_parent"         android:scrollbars = "vertical"         android:layout_marginright="10dp"         foo:customfont="roboto-regular.ttf"         android:hint="@string/hint_assignment_task"/>     </tablerow>          <tablerow android:layout_height="1px" android:background="#323232">     <textview android:layout_span="1" android:layout_height="1px"               android:layout_width="fill_parent" android:text="">      </textview>         </tablerow>   <tablerow           android:id="@+id/tablerow1"           style="@style/text_row"            android:layout_weight="1"           >   <com.customitems.customedittext         android:id="@+id/taskspecreq"         style="@style/custom_edittext"         android:gravity="top|left"         android:maxlength="8192"         android:layout_marginleft= "25dp"         android:layout_height="110dp"         android:imeoptions="actiondone"         android:layout_weight="1"         android:layout_width="fill_parent"         android:scrollbars = "vertical"         android:layout_marginright="10dp"         foo:customfont="roboto-regular.ttf"         android:hint="@string/hint_assignment_specific_requirements"/>       </tablerow>    </tablelayout>   </linearlayout> 

so , when use longclick on tasktest edittext, copy/paste/cut appears , works properly. when long click on taskspecreq taskspecreq copy/paste/cut panel , tabs disappers screen. taskspecreq in bottom of screen.

long click on 1st edittext : enter image description here

long click on 2nd edittext: enter image description here

as used tabhost , nested activity in it, solved using

  android:windowsoftinputmode="stateunspecified"  

for tabactivity , nested activity :

  android:windowsoftinputmode = "adjustresize" 

it solved issue.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -