只有注册用户登录后才能阅读该文。 阅读全文
摘要:
//SampleView可以是各种View或ViewGroupView SampleView;SampleView.setBackgroundResource(android.R.drawable.list_selector_background);SampleView.setFocusableInTouchMode(true);SampleView.requestFocus();//想设置ViewGroup里各View的焦点顺序特性,可用//layout.setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS);根据参数有不同特 阅读全文