Paste suggestion popup doesn't appear when I longclick on empty EditText (OK with non-empty).
XML
<EditText
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="1"
android:gravity="right"
android:textSize="50sp"
android:inputType="numberDecimal"
android:id="@+id/text"/>
Code which touches EditText
editText.setRawInputType(InputType.TYPE_NULL);
if (Build.VERSION.SDK_INT >= 11) {
editText.setTextIsSelectable(true);
} else {
editText.setFocusable(true);
}
Did you try to copy data first? I just tried it on my own application, and without doing anything I have the collapse dialog which appears after I have copied something. If I have nothing copied, I don't have the popup (which is normal).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With