pivotal/robolectric — Issue #160: Not able to inflate a fragment
Author: blundell
Created: 2011-11-24 12:33:08+00:00
State: open

Pretty simple:

LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
inflater.inflate(layoutId, null);

The layoutId I'm passing resolves to:

The error is :

Caused by: java.lang.RuntimeException: couldn't find view class fragment

The error seems to be caused by the pickViewMethod() method in the class: com.xtremelabs.robolectric.res.ViewLoader.java

The pickViewMethod() to resolve the fragment in the above XML should reference the class attribute I assume?