title: Using a custom com.android.internal.R.layout.preference
body: <p>Is there any way of setting the layoutResId of android.preference.Preference? I need to replace com.android.internal.R.layout.preference with something more than a ListView. (I want a PreferenceActivity in another view, and for it to inflate the hierarchy of preferences in that view instead of only showing the default ListView). Through PreferenceActivity I can get the PreferenceManager, but PreferenceManager.getPreferenceScreen is package-private. PreferenceScreen.setLayoutResId can change the ResId I want, but I can't get at it. If I could, would changing this work or would it break things?</p>