Select All/Cut/Copy bar not showing for EditText

894 Views Asked by At

When I long click the EditText I want to be able to do the normal things you would expect (Select all/Cut/Copy/Paste) but currently it only lets me paste. Here is the XML from the layout file.

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".ChatActivity" >

<ListView
    android:id="@+id/chatListView"
    android:layout_width="match_parent"
    android:layout_height="0dip"
    android:layout_weight="1"
    android:scrollbars="horizontal" >
</ListView>

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="bottom"
    android:orientation="horizontal"
    android:layout_marginLeft="4sp"
    android:layout_marginRight="4sp"
    android:layout_marginBottom="4sp">

    <EditText
        android:id="@+id/messageEditText"
        android:layout_width="0dip"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:ems="10"
        android:gravity="top"
        android:hint="Type to compose"
        android:scrollHorizontally="true"
        android:inputType="textMultiLine|textCapSentences|textAutoCorrect|textAutoComplete" />

    <Button
        android:id="@+id/sendButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="5dp"
        android:layout_marginRight="5dp"
        android:text="@string/send" />

</LinearLayout>

 </LinearLayout>

Update I finally noticed the action items in question, but the soft keyboard pushes the action bar up out of view. Oh, and I'm also testing on Android 4.3.

0

There are 0 best solutions below