我想写一个可以应用于3.0和3.0之前的设备的首选项.发现PreferenceActivity
包含不推荐使用的方法(尽管附带的示例代码中使用了这些方法),我查看了PreferenceFragement
和兼容包来解决我的问题.
It appears, though, that PreferenceFragment
isn't in the compatibility package. Can anyone tell me whether this was intentional? If so, can I easily target a range of devices (i.e. < 3.0 and >=3.0) or will I have to jump through hoops? If it wasn't intentionally excluded, can we expect a new release of the compatibility package? Or is there another workaround that is safe to use?
干杯
詹姆斯