Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须测试我的广播课女巫有一个远程视图。我想检查远程视图天气中的按钮是否显示。
提前致谢。
我得到了这样的看法。希望有所帮助。
final LayoutInflater inflater = LayoutInflater.from(mContext); ViewGroup view = (ViewGroup) inflater.inflate( R.layout.widget, null); View v = view .findViewById(R.id.text); assertFalse(v.isShown());