最新回答 / 旺旺蔬菜汁
可以通过:View view = getLayoutInflater().inflate(R.layout.fragment, null,false); text = (TextView) view.findViewById(R.id.text);获取fragment中的控件
2016-07-19
最新回答 / youmux
我也遇到了这个问题,并在网上找到了答案。成功解决实测:在viewpager代码里面添加((ViewPager.LayoutParams) tab.getLayoutParams()).isDecor = true;上面的tab为new PagerTabStrip的变量,并findViewById(R.id.tab)对象
2016-07-18
已采纳回答 / 慕勒9345121
在value文件夹下 创建一个color.xml文件,把颜色都保存进去,再在那里引用。<resources> <color name="white">#ffffffff</color> <color name="red">#FF0000</color> <color name="orange">#FF8040</color> <color name="gray">#808080&...
2016-07-17