Newer
Older
MonCalc / app / src / main / kotlin / jackall / moncalc / fragment / TempleAnalyze.kt
package jackall.moncalc.fragment

import android.arch.lifecycle.ViewModelProviders
import android.databinding.DataBindingUtil
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import jackall.moncalc.R
import jackall.moncalc.databinding.FragmentAnalyzeTempleBinding
import jackall.moncalc.viewmodel.TempleAnalyzeViewModel


/**
 * Created by matsumoto_k on 2017/11/03.
 */
class TempleAnalyze : Fragment() {
    lateinit var binding: FragmentAnalyzeTempleBinding
    val templeAnalyzeViewModel by lazy { ViewModelProviders.of(this, TempleAnalyzeViewModel.Factory()).get(TempleAnalyzeViewModel::class.java) }
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
    }

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        binding = DataBindingUtil.inflate<FragmentAnalyzeTempleBinding>(inflater, R.layout.fragment_analyze_temple, container, false)
        binding.templeAnalyzeViewModel = templeAnalyzeViewModel
        return binding.root
        return null
    }
}