czy1121 / loadinglayout

简单实用的页面多状态布局(content,loading,empty,error)
Apache License 2.0
754 stars 110 forks source link

能否提供各布局的get() 方法? #1

Closed ljf1172361058 closed 7 years ago

ljf1172361058 commented 7 years ago

考虑到需要对自定义布局中的某些控件设置监听,改变样式之类的,希望官方能够提供该方法

ljf1172361058 commented 7 years ago

或者可以把源码中的 mLayouts 的修饰符改为public也行

czy1121 commented 7 years ago

布局在showXX时才会inflate inflate后才可通过findViewById获取对应的View 暴露mLayouts没有必要

czy1121 commented 7 years ago

目前已添加 setOnEmptyInflateListener,setOnErrorInflateListener 可确保在自定义布局inflate后设置监听/样式

ljf1172361058 commented 7 years ago

@czy1121 多谢了.