TextView及布局Layout默认是没有press及focus状态的,故直接设置selector无作用,需要开启focus、press及focusInTouchMode
textView.setClickable(true);
textView.setFocusable(true);
textView.setFocusableInTouchMode(true);
$l10n 参数必须是一个数组。若要将任意数据传递给脚本,请改用 wp_add_inline_script() 函数。 请查阅调试 WordPress来获取更多信息。 (这个消息是在 5.7.0 版本添加的。) in /data/www/appblog/wp-includes/functions.php on line 6131TextView及布局Layout默认是没有press及focus状态的,故直接设置selector无作用,需要开启focus、press及focusInTouchMode
textView.setClickable(true);
textView.setFocusable(true);
textView.setFocusableInTouchMode(true);