Phương Linh
New member
How can I see fragment activity?
Answer
Simply declare TextView as public in fragment, initialize it by findViewById() in fragment’s onCreateView(). Now by using the Fragment Object which you added in activity you can access TextView. You need to call method findViewById from your fragment view.
Answer
Simply declare TextView as public in fragment, initialize it by findViewById() in fragment’s onCreateView(). Now by using the Fragment Object which you added in activity you can access TextView. You need to call method findViewById from your fragment view.