android - how to check which fragment is visible -



android - how to check which fragment is visible -

i have 3 fragments can replaced in particular layout. have button in main activity. want text color of button alter accoring fragment displayed on screen. possible?

your toast should

toast.maketext(context, string.valueof(position), toast.length_short).show();

android

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -