在我的preferences.xml中,我有一个偏好元素,如下所示:
<Preference android:title="About" />
我想分配onClick事件,所以如果用户会点击它,我将能够做打开新的Intent或浏览器。我试着像使用按钮一样去做,但这似乎不起作用。
onClick
Intent
https://stackoverflow.com/questions/5330677
相似问题