lmw
2024-06-18 1f45a54dc8e149548d3a61d1228741627aa4f23e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.dollearn.student.ui.discovery
 
import androidx.core.os.bundleOf
import cn.sinata.xldutils.fragment.BaseFragment
import com.dollearn.student.R
import com.dollearn.student.network.entity.Shop
import kotlinx.android.synthetic.main.fragment_shop.*
import org.jetbrains.anko.support.v4.startActivity
 
class ShopViewPagerFragment:BaseFragment() {
    override fun contentViewId() = R.layout.fragment_shop
 
    private val shop by lazy { arguments?.getParcelable<Shop>("data") }
    private val isNear by lazy { arguments?.getBoolean("isNear") }
 
    override fun onFirstVisibleToUser() {
 
    }
 
    companion object{
        fun newInstance(shop:Shop,isNear:Boolean):ShopViewPagerFragment{
            val shopViewPagerFragment = ShopViewPagerFragment()
            shopViewPagerFragment.arguments = bundleOf("data" to shop,"isNear" to isNear)
            return shopViewPagerFragment
        }
    }
}