title: Instantiating an inner class (Preference) in xml file
body: <p>When you want to access a custom view in some <code>layout.xml</code> file, you  have two options: </p>
  
  <ol>
  <li>The view is in it's own class. Then you do <code>&lt;package.name.MyView android:layout_width= ... /&gt;</code></li>
  <li>The view is an inner class: <code>&lt;view class="package.name.OuterClass$MyView" android:layout_width= ... /&gt;</code>  </li>
  </ol>
  
  <p><strong>Now I want to do the same thing inside a <code>&lt;PreferenceScreen&gt;</code>.</strong> The first way works well, but I would like to put all the custom <code>Preference</code> classes together in my PreferenceActivity. I tried <code>&lt;Preference class="package.name.OuterClass$MyPreference" ... /&gt;</code> (also with '.' instead of '$') as well as <code>&lt;package.name.OuterClass.MyPreference ... /&gt;</code>, but both failed. </p>
  
  <p>Does anyone have an idea?</p>