"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
Do'stlaringiz bilan baham: |