在xml文件的Preference标签中,用给标签加参数,以及标签的android:targetPackage和android:targetClass属性使用注意事项
android:title="prefs_category_one"
android:summary="prefs_summary_category_one">
android:action="prefs_category_action_ONE"
android:targetPackage="com.demo.artshell.uidemo"
android:targetClass="com.demo.artshell.uidemo.settings.SupportOldVersionAndReusedActivityOrFragment$ReusedActivity">
android:name="reused_key"
android:value="reused_fragment_two"/>
android:title="prefs_category_two"
android:summary="prefs_summary_category_two">
android:action="prefs_category_action_TWO"
android:targetPackage="com.demo.artshell.uidemo"
android:targetClass="com.demo.artshell.uidemo.settings.SupportOldVersionAndReusedActivityOrFragment$ReusedActivity"/>