Last active
July 21, 2017 14:35
-
-
Save bherbst/022c3858ab379a6ea9fd324e34af5f8c to your computer and use it in GitHub Desktop.
Kotlin Android Extensions nullability
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kotlinx.android.synthetic.main.fragment_main.* | |
class SampleFragment : Fragment() { | |
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, | |
savedInstanceState: Bundle?): View? { | |
return inflater.inflate(R.layout.fragment_main, container, false) | |
} | |
override fun onDestroy() { | |
super.onDestroy() | |
Log.d("kotlinx", "onDestroy textView ID: " + textView.id) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment