采用GridView动态布局,多个按钮样式相同,只是文字不同,采用这种方式可以省事一些,技术含量更高。
private void initTextBtns() { for (String btn : mTextBtns) { mTextBtnsList.add(btn); } }
参考资料:http://www.cnblogs.com/hbuwyg/p/6959320.html
时间: 2024-08-10 23:27:59
采用GridView动态布局,多个按钮样式相同,只是文字不同,采用这种方式可以省事一些,技术含量更高。
private void initTextBtns() { for (String btn : mTextBtns) { mTextBtnsList.add(btn); } }
参考资料:http://www.cnblogs.com/hbuwyg/p/6959320.html