在我的preferences.xml中,我有一个像这样的首选元素:
<Preference android:title="About" />
我想分配onClick事件,所以如果用户点击它,我就可以打开新的Intent或浏览器.我试着像按钮那样做,但这似乎不起作用.
onClick
Intent
java android android-preferences
android ×1
android-preferences ×1
java ×1