title: HoloEveryWhere: ViewPagerIndicator with PreferenceFragment, Error inflating class <unknown>
body: <p>I am using HoloEveryWhere together with ViewPagerIndicator and am trying to use <code>PreferenceFragment</code> (HoloEveryWhere) in a <code>PreferenceActivity</code> (HoloEveryWhere) and can't fix the errors...I must be overlooking something   </p>
  
  <p>part of the log:</p>
  
  <pre><code>01-13 20:10:04.310: E/AndroidRuntime(29939): FATAL EXCEPTION: main
  01-13 20:10:04.310: E/AndroidRuntime(29939): android.view.InflateException: Binary XML file line #2: Error inflating class &lt;unknown&gt;
  01-13 20:10:04.310: E/AndroidRuntime(29939):    at android.view.LayoutInflater.createView(LayoutInflater.java:613)
  01-13 20:10:04.310: E/AndroidRuntime(29939):    at org.holoeverywhere.LayoutInflater.tryCreateView(LayoutInflater.java:357)
  01-13 20:10:04.310: E/AndroidRuntime(29939):    at org.holoeverywhere.LayoutInflater.onCreateView(LayoutInflater.java:306)
  01-13 20:10:04.310: E/AndroidRuntime(29939):    at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
  01-13 20:10:04.310: E/AndroidRuntime(29939):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
  01-13 20:10:04.310: E/AndroidRuntime(29939):    at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
  01-13 20:10:04.310: E/AndroidRuntime(29939):    at org.holoeverywhere.LayoutInflater.inflate(LayoutInflater.java:285)
  01-13 20:10:04.310: E/AndroidRuntime(29939):    at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
  01-13 20:10:04.310: E/AndroidRuntime(29939):    at org.holoeverywhere.LayoutInflater.inflate(LayoutInflater.java:270)
  01-13 20:10:04.310: E/AndroidRuntime(29939):    at org.holoeverywhere.preference.Preference.onCreateView(Preference.java:535)
  01-13 20:10:04.310: E/AndroidRuntime(29939):    at org.holoeverywhere.preference.Preference.getView(Preference.java:425)
  01-13 20:10:04.310: E/AndroidRuntime(29939):    at org.holoeverywhere.preference.PreferenceGroupAdapter.getView(PreferenceGroupAdapter.java:160)
  01-13 20:10:04.310: E/AndroidRuntime(29939):    at org.holoeverywhere.widget.ListView$ListAdapterWrapper.getView(ListView.java:341)
  01-13 20:10:04.310: E/AndroidRuntime(29939):    at android.widget.AbsListView.obtainView(AbsListView.java:2273)
  </code></pre>
  
  <p>My <code>PreferenceActivity</code></p>
  
  <pre><code>import org.holoeverywhere.app.Fragment;
  import org.holoeverywhere.preference.PreferenceActivity;
  
  import android.os.Bundle;
  import android.support.v4.app.FragmentManager;
  import android.support.v4.app.FragmentPagerAdapter;
  import android.support.v4.view.ViewPager;
  
  import com.viewpagerindicator.TitlePageIndicator;
  
  
  public class Test extends PreferenceActivity {
  
      ViewPager Pager;
  
      enum PageInfo {
          One(R.string.one), Two(R.string.two), Three(R.string.three); 
          int titleResId;
  
          PageInfo(int titleResId) {
              this.titleResId = titleResId;
          }
      }
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          setContentView(R.layout.main);
  
          Pager = (ViewPager) findViewById(R.id.pager);
          Pager.setAdapter(new PagerAdapter(getSupportFragmentManager()));
          ((TitlePageIndicator) findViewById(R.id.titles)).setViewPager(Pager);
      }//end method
  
      class PagerAdapter extends FragmentPagerAdapter {
  
          public PagerAdapter(FragmentManager fm) {
              super(fm);
          }//end method
  
          @Override
          public Fragment getItem(int position) {
  
              if (PageInfo.One.ordinal() == position) {
                  return new OneFragment();
              } else if (PageInfo.Two.ordinal() == position) {
                  return new TwoFragment();
              } else if (PageInfo.Three.ordinal() == position) {
                  return new ThreeFragment();
              }
              return null;
          }//end method
  
          @Override
          public int getCount() {
              return PageInfo.values().length;
          }//end method
  
          @Override
          public CharSequence getPageTitle(int position) {
              return Test.this.getString(PageInfo.values()[position].titleResId);
          }//end method
      }//end inner class
  }//end class
  </code></pre>
  
  <p>My <code>PreferenceFragment</code> (simplified):</p>
  
  <pre><code>public class OneFragment extends PreferenceFragment {
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          setPreferenceScreen(create());
      }//end method
  
      private PreferenceScreen create(){
          PreferenceScreen root = getPreferenceManager().createPreferenceScreen(context);
  
          CheckBoxPreference backup = new CheckBoxPreference(context);
          backup.setKey(Data.BACKUP_ENABLED);
          root.addPreference(backup); 
  
          return root;
      }//end method   
  }//end class
  </code></pre>
  
  <p>main.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout 
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
      &lt;com.viewpagerindicator.TitlePageIndicator
          android:id="@+id/titles"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="@color/abs__background_holo_dark"
          app:footerIndicatorStyle="triangle" /&gt;
  
      &lt;android.support.v4.view.ViewPager
          android:id="@+id/pager"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;
  
      &lt;ListView
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@android:id/list"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:drawSelectorOnTop="false"
          android:scrollbarAlwaysDrawVerticalTrack="true" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>