Size: a a a

Android Developers

2020 March 31

V

Valentin in Android Developers
Could i see the stack trace?
источник

J

Jhamil in Android Developers
Valentin
Could i see the stack trace?
idk what is stack trace but here the error log, i knew it will crash since the list is not yet populated
источник

V

Valentin in Android Developers
Show your adapter pls
источник

V

Valentin in Android Developers
getItemCount and list
источник

J

Jhamil in Android Developers
источник

J

Jhamil in Android Developers
источник

V

Valentin in Android Developers
try Collections.Empty_List(don't remember), or = new ArrayList
источник

V

Valentin in Android Developers
where do you use context?
источник

z

zlo in Android Developers
Привет. Kotlin. Есть коллекция классов. Надо найти класс (первый который встретится) у которого значение определённого поля равно заданному. Как красивее )
источник

NT

Nikita Tipun in Android Developers
firstIsInstance
источник

z

zlo in Android Developers
Nikita Tipun
firstIsInstance
Сорвалось. Не дописал
источник

J

Jhamil in Android Developers
Valentin
try Collections.Empty_List(don't remember), or = new ArrayList
What is this for?
источник

СС

Саша Стрельцов... in Android Developers
как передать в поиск браузера текст с приложения?
источник

V

Valentin in Android Developers
Jhamil
What is this for?
because you have uninitialized property
источник

EG

Evgeny GooDi in Android Developers
Мне надо сделать rebase из мастера в мою ветку. Как это сделать в Android studio?
источник

J

Jhamil in Android Developers
Valentin
where do you use context?
Here it is inside the adapter
источник

V

Valentin in Android Developers
you can do like that:
parent.getContext
источник

V

Valentin in Android Developers
and remove one parameter from your Adapter constructor
источник

V

Valentin in Android Developers
And for the second, you should update you data form your callback (onDataChange). So, inside your Adapter class create update method, which calls notifyDataSetChange, like this(for example):

fun updateData(newData: ArrayList<String>) {
       itemsExample = newData
       notifyDataSetChanged()
   }

(it's kotlin, but if you have any questions - ask)
источник

J

Jhamil in Android Developers
Valentin
you can do like that:
parent.getContext
I didnt knew this thanks i already removed the context paramater in constructor
источник