Skip to content

Instantly share code, notes, and snippets.

@shts
Last active September 27, 2018 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shts/a1f26f3312d7e8e3dcf0a12ca015cace to your computer and use it in GitHub Desktop.
Save shts/a1f26f3312d7e8e3dcf0a12ca015cace to your computer and use it in GitHub Desktop.
Navigation Editor で自動生成される Fragment
package jp.shts.android.navigationsample
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
class TestFragment : Fragment() {
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?): View? {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_test, container, false)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment