当我将RecyclerView添加到布局时,它显示为空白屏幕.有没有办法,比如通过tools名称空间,来显示RecyclerView内容的预览?
android android-studio android-recyclerview android-tools-namespace
我正在尝试IntArray像这样在Kotlin中初始化一个:
intArrayOf(1..9)
Run Code Online (Sandbox Code Playgroud)
但我得到了TypeError这Int是必需的,但我提供IntRange。有没有办法用范围初始化数组,还是我必须显式写出每个值?