logcat: ошибка
это код, который я использую:
Код: Выделить всё
class HomeFragment : Fragment() {
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View {
// Inflate the layout for this fragment
val view = inflater.inflate(R.layout.fragment_home, container, false)
val splineContainer = view.findViewById(R.id.spline_container)
splineContainer.addView(
SplineView(requireContext()).apply {
// fetching from cloud
loadUrl("url")
// fetching from local
// loadResource(R.raw.scene)
})
return view
}
}
Подробнее здесь: https://stackoverflow.com/questions/791 ... t-the-libr