Mohamed Farahat Mohamed Farahat - 1 year ago 187
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

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download