私がインターネットでできるすべての調査の結果、 /res/drawable フォルダーにあるリソース (私の場合は .xml レイアウト ファイル) にアクセスして Drawable として返すのは、次の行を呼び出すのと同じくらい簡単だったようです。
Ruboto::R::drawable::stroke_bg
ただし、それを試してみると、次のエラーが表示されました。
could not coerce Fixnum to class android.graphics.drawable.Drawable
私の見解の行は次のとおりです。
scroll_view :background => Ruboto::R::drawable::stroke_bg, :layout => { :width => :match_parent, height: 1000 }
そのフォルダからリソースを取得するために欠けているのは何ですか?