-
android– 如何使编程可点击布局
概述我以编程方式创建RelativeLayout,因此,我需要以编程方式添加此xml属性:android:clickable=“true”.如何才能做到这一点?谢谢!解决方法:你必须使用setClickable(true).见docs
概述我以编程方式创建RelativeLayout,因此,我需要以编程方式添加此xml属性:android:clickable=“true”.如何才能做到这一点?谢谢!解决方法:你必须使用setClickable(true).见docs