R
R
Roman_W2021-02-24 13:29:46
Android
Roman_W, 2021-02-24 13:29:46

"import android.support.v4" how to connect in android studio?

Trying to use removeDialog, onPrepareDialog in DialogFragment
android studio studio reports deprecated. I’m trying to connect support.v4.DialogFragment,
but it doesn’t see it! (I understand that I need to pull up the library from V4. But how can I do it correctly?
Or tell me how to reload the fragment: public class Dialog1 extends DialogFragment
so that the data in its Layout is updated in it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2021-02-24
@zagayevskiy

You don't need support.v4. Need androidx.
Read the details in the guide: https://developer.android.com/jetpack/androidx/rel...
There is also about the connection.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question