Custom Layout Inflation with Fragments in Robolectric not working

后端 未结 4 1147
刺人心
刺人心 2021-01-12 10:34

When inflating a layout in a Fragment, with the LayoutInflater, i am getting this exception:

 ./res/layout/locations_list.xml line #-1 (sorry, not yet implem         


        
4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-12 11:04

    I figured it out, and if you got stock to such an situation just look for your IDs in the XML, even though

     android:id="@+id/android:list"
    

    is often seen in some example code it must be:

     android:id="@android:id/list"
    

提交回复
热议问题