//fragment2.ktoverridefunonCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?): View?{
// Inflate the layout for this fragmentval v = inflater.inflate(R.layout.fragment_2, container,false)
v.findViewById<View>(R.id.txt2).setOnClickListener{
val transaction = fragmentManager!!.beginTransaction()
transaction.add(R.id.container,Fragment3())
transaction.commit()}return v
}