Похожие чаты

My recyclerView is not showing any view i added items to

adapter and called notify

what's wrong here?

class HomeView(context: Context, swipeRefreshEnabled: Boolean = true) : HomeViewContract {

override fun getRootView() = mRootView

private val mRootView: View = context.inflate(R.layout.fragment_home)
private val adapter: HomeAdapter = HomeAdapter()
private val list: RecyclerView
private val swipe: SwipeRefreshLayout
//the problem must be here
init {
mAdapter = HomeAdapter()
this.list = mRootView.findViewById<RecyclerView>(R.id.home_recycler_view) as RecyclerView
list.adapter = mAdapter
var linearLayoutManager = LinearLayoutManager(context)
linearLayoutManager.orientation= LinearLayoutManager.VERTICAL
list.layoutManager = linearLayoutManager



this.swipe = mRootView.findViewById(R.id.home_swipe_refresh_div)
swipe.isEnabled = swipeRefreshEnabled
}

2 ответов

3 просмотра

Please format the code you posted, by wrapping it in triple backticks. -> `

Bahman- Автор вопроса

in logcat : RecyclerView: No adapter attached; skipping layout

Похожие вопросы

Обсуждают сегодня

30 BCH videos in Hausa Language successfully delivered. In December 2023, I created a Flipstarter to produce Bitcoin Cash videos in the Hausa language for greater outreach an...
Munnir
5
читать файл максимально быстро? странный вопрос))
zamtmn
53
братва! где куличи брать?
Alöscha
25
тоесть, указав return eax, сгенерируется никому ненужная инструкция mov eax,eax ?
Aiwan \ (•◡•) / _bot
24
Посоветуйте пожалуйста аудио плеер для библиотеки mp3- FLAC на компьютере. На Винде пользовался Aimp, в том числе для конвертации. Много нужных команд было прямо в контекст...
Виктор Кузнецов
31
📢Join the FUNToken X Pamtoken Zealy Campaign - Let the Quest Begin!🔥 📢Attention, FUNToken Community! We're excited to announce the launch of our Zealy Campaign in collaborat...
OJohnny
7
Добрый день. Созданию отношения таблиц для учёта кораблей, их движения между точками (портами) согласно расписания. Терзают сомнения в правильном ли направлении двигаюсь 😅 1...
Aleksey
1
Is FXTL another frax ecosystem token? Why need fxtl when there is already fxs? Why cant I find a straight answer for this? Maybe thats why people think its all so complicated
MBD Tan
12
Компания Elif ищет менеджера проектов, который будет заниматься поиском и ведением новых проектов. Прежде чем приступить к работе, вам нужно пройти наш недельный курс, где вы ...
Elif
1
Hi guys , do we have update on voting?
HB
16
Карта сайта