Cannot inflate StickyScrollView in fragment
Opened this issue · 1 comments
francophong commented
Dear emilsjolander,
I tried to inflate the StickyScrollView as below:
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.mylayout, container, false);
}
In mylayout.xml:
<com.test.StickyScrollView
...
/>
When I run the app, it returned the error:
: Error inflating class com.test.StickyScrollView
Please advise me.
Thanks
pforhan commented
You may not have enough information here. Try including the stacktrace and your full layout xml.
It's also possible that github consumed some of your code as formatting characters. Surround the lines with three backtick (`) characters for better formatting.