Mohamed Farahat Mohamed Farahat - 3 months ago 11x
Android Question

switch between three listfragments -android-

i trying to learn switching between listfragments
i have here three list fragments and i want to move between them using three buttons
this is main layout

implement of one of the listfragments

class of one of the fragments

main activity class

and i have this error ** java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mohamed.multilistfragment/com.example.mohamed.multilistfragment.MainActivity}: android.view.InflateException: Binary XML file line #41: Error inflating class fragment
enter image description here


change every listview ID from android:id="@+id/list" to