LinearLayout as clickable in fragment java

Hey guys I've been building my own app for my project in that I created fragments in one of my fragment I need to set a value by clicking a whole linear layout.

But when I done that I got error in fragment java code findViewById (cannot resolve method findViewById(init)).

I'm stuck at this please help I'm in hurry!!

Here's my code under OnCreateView

View view = inflater.inflate(R.layout.notification, container, false);

LinearLayout set = (LinearLayout) findViewById(;

return view;...

Read More »

By: StackOverFlow - Monday, 12 March

Related Posts