Android 代码中AddView 使用anko

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013148839/article/details/76212100

找了半天 才知道 是用UI 记录下

 for (item in SApplication.getInstance().baseInfo.telList) {
            UI {
                var text = textView(item.title + ":" + item.tel) {
                    textColor = R.color.color_737373
                    setPadding(0, 10, 0, 0)
                }
                ll_platform_tel_list.addView(text)
            }
        }

参考 http://www.jianshu.com/p/7cf5b42eb25f

猜你喜欢

转载自blog.csdn.net/u013148839/article/details/76212100