|
|
@ -18,6 +18,7 @@ class FindBookFragment : BaseFragment(R.layout.fragment_find_book), |
|
|
|
FindBookAdapter.CallBack { |
|
|
|
FindBookAdapter.CallBack { |
|
|
|
|
|
|
|
|
|
|
|
private lateinit var adapter: FindBookAdapter |
|
|
|
private lateinit var adapter: FindBookAdapter |
|
|
|
|
|
|
|
private lateinit var linearLayoutManager: LinearLayoutManager |
|
|
|
|
|
|
|
|
|
|
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { |
|
|
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { |
|
|
|
setSupportToolbar(toolbar) |
|
|
|
setSupportToolbar(toolbar) |
|
|
@ -31,7 +32,8 @@ class FindBookFragment : BaseFragment(R.layout.fragment_find_book), |
|
|
|
|
|
|
|
|
|
|
|
private fun initRecyclerView() { |
|
|
|
private fun initRecyclerView() { |
|
|
|
ATH.applyEdgeEffectColor(rv_find) |
|
|
|
ATH.applyEdgeEffectColor(rv_find) |
|
|
|
rv_find.layoutManager = LinearLayoutManager(context) |
|
|
|
linearLayoutManager = LinearLayoutManager(context) |
|
|
|
|
|
|
|
rv_find.layoutManager = linearLayoutManager |
|
|
|
adapter = FindBookAdapter(requireContext(), this, this) |
|
|
|
adapter = FindBookAdapter(requireContext(), this, this) |
|
|
|
rv_find.adapter = adapter |
|
|
|
rv_find.adapter = adapter |
|
|
|
} |
|
|
|
} |
|
|
|