M
M
moved_on2014-10-14 01:41:23
Android
moved_on, 2014-10-14 01:41:23

How to implement listview custom adapter in fragment android?

Hello.
We need a good example of how to implement custom foliage in a fragment.
I've been suffering for a week and a half. The problem is that when you replace this with getActivity() , the app still crashes.
Thank you for your attention.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kozhevnikov, 2014-10-14
@kozhevnikovv

Flying out of NPE? Perhaps you are trying to access the activity before it was created. Please provide your code (the part with passing the context to the listview).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question