Guruh: 314-17 Bajardi: Ne’matjonov A


Download 1.68 Mb.
bet16/22
Sana08.01.2022
Hajmi1.68 Mb.
#247739
1   ...   12   13   14   15   16   17   18   19   ...   22
Bog'liq
Ne'matjonov Abduvohid

"World Observer"
)
)
// slider.add(SliderData(R.drawable.ico_nature,"Nature"))
// slider.add(SliderData(R.drawable.ico_education,"Education"))
// slider.add(SliderData(R.drawable.ico_public,"Public"))
// slider.add(SliderData(R.drawable.ic_sport,"Sport"))


var newsListData = ListData()
newsListData.name = "DAILY NEWS"
newsListData.type = BaseData.TYPE_NEWS
newsListData.data = news

var data = DataItem()
data.listData = newsListData
this.data.add(data)
// adapter.notifyDataSetChanged()
}

private fun loadCategory() {



var categoryList = ArrayList()
categoryList.add(CategoryData(R.drawable.ico_hotnews, "Hot News"))
categoryList.add(CategoryData(R.drawable.ico_technology, "Technology"))
categoryList.add(CategoryData(R.drawable.ic_healing, "Healthy"))
categoryList.add(CategoryData(R.drawable.ic_sciens, "Science"))
categoryList.add(CategoryData(R.drawable.ico_nature, "Nature"))
categoryList.add(CategoryData(R.drawable.ico_education, "Education"))
categoryList.add(CategoryData(R.drawable.ico_public, "Public"))
categoryList.add(CategoryData(R.drawable.ic_sport, "Sport"))


var categoryListData = ListData()
categoryListData.name = "CATEGORIES"
categoryListData.type = BaseData.TYPE_CATEGORY
categoryListData.data = categoryList


Download 1.68 Mb.

Do'stlaringiz bilan baham:
1   ...   12   13   14   15   16   17   18   19   ...   22




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling