override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
val rootView = inflater.inflate(R.layout.fragment_tab_item1, container, false)
//здесь какой-то код...
val buttonSpeed = rootView.findViewById<Button>(R.id.buttonSpeed)
Log.i("---buttonSpeed.getTag()---", buttonSpeed.toString())
buttonSpeed.setOnClickListener(::calcSpeed)
return rootView
}