2015-03-27 3 views
0

Я применил один настраиваемый текстовый виджет редактирования, основанный на моем требовании. Я просто устанавливаю чертежи и пользовательский шрифт в поле EditText.Опция Cut copy paste не отображается для CustomEditText в Android

Когда я выполняю Длительное нажатие на текст, я не получаю возможность редактировать текст с помощью функции «Вырезать», «Копировать», «Вставить»? Как я могу включить его? Ниже приведены мои атрибуты элемента.

<CustomEditText 
      android:id="@+id/customEditText" 
      android:layout_width="0dp" 
      android:layout_height="fill_parent" 
      android:layout_gravity="center_vertical" 
      android:layout_marginLeft="10dp" 
      android:layout_weight="8" 
      android:background="@color/blackColor" 
      android:focusable="true" 
      android:focusableInTouchMode="true" 
      android:gravity="center_vertical" 
      android:hint="@string/customHintMessage" 
      android:inputType="textCapSentences|textMultiLine|textLongMessage" 
      android:maxLines="3" 
      android:paddingLeft="5dp" 
      android:scrollbars="vertical" 
      android:singleLine="false" 
      android:textColor="@color/lightWhiteColor" 
      android:textSize="@dimen/editText_font_size" 
      app:typeface="@string/regularFont" > 
</customEditText> 

ответ