This xml code turns off console and other enterable values for edittext. It also performs the click operation.
<EditText android:id="@+id/dr_data_of_birth" android:layout_width="wrap_content" android:layout_height="wrap_content" android:cursorVisible="false" android:focusable="false" tools:ignore="SpeakableTextPresentCheck" />