package com.example.takeout.ui.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.example.takeout.R
import com.example.takeout.model.beans.GoodsInfo
import com.example.takeout.model.beans.GoodsTypeInfo
import com.example.takeout.presenter.GoodsFragmentPresenter
import com.example.takeout.ui.adapter.GoodsAdapter
import com.example.takeout.ui.adapter.GoodsTypeRvAdapter
import org.jetbrains.anko.find
import se.emilsjolander.stickylistheaders.StickyListHeadersListView
/**
- 详情页商品列表界面
*/
class GoodsFragment : Fragment() {
lateinit var rvGoodsType: RecyclerView //左侧的RecyclerView
lateinit var slhlv: StickyListHeadersListView //
lateinit var goodsFragmentPresenter: GoodsFragmentPresenter
lateinit var goodsTypeAdapter :GoodsTypeRvAdapter
lateinit var goodsAdapter: GoodsAdapter
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
val goodsView =
LayoutInflater.from(activity).inflate(R.layout.fragment_goods, container, false)
rvGoodsType = goodsView.find(R.id.rv_goods_type)