If I add an EditText in XML I can set textCursorDrawable=\"@null\":
EditText
textCursorDrawable=\"@null\"
Using reflection for the cursor drawable is prohibited from Android Q.
Instead, there is a new setTextCursorDrawable API and we can use this.