android / input-samples

Multiple samples showing the best practices in input on Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compatibility issue when migrating to androidx

r0b0t3d opened this issue · comments

This code stop working on devices below 25 when I migrate to androidx recently.
Device info: Sony xperia M5 - Android 6.0.0
Those code block

import android.support.v13.view.inputmethod.EditorInfoCompat;
import android.support.v13.view.inputmethod.InputConnectionCompat;
import android.support.v13.view.inputmethod.InputContentInfoCompat;

are replaced with

import androidx.core.view.inputmethod.EditorInfoCompat;
import androidx.core.view.inputmethod.InputConnectionCompat;
import androidx.core.view.inputmethod.InputContentInfoCompat;

Is it androidx issue?
Thanks,
image

+1

I was also banging my head on wall trying to understand what I was doing wrong in my production app. Seems like with androidx, below Android 8 shows this Toast.

any solution for this? I m facing the same issue