Android Access Element In Fragment

When you convert an Activity to Fragment there is another way for you to access your element e.g. a Textview.

Before

TextView myTextView = (TextView) findViewById(R.id.myTextView);

to

TextView myTextView = (TextView) ll.findViewById(R.id.myTextView);

Previous step.

Next step.

Posted in Android, Tips and Tricks Tagged with: , ,