Android get view from context

 

View rootView = ((Activity)mContext).getWindow().getDecorView().findViewById(android.R.id.content)

View v = rootView.findViewById(R.id.your_view_id);

 

 

Author: bm on May 26, 2015
Category: Android, View

Your comment:

Your Name

Comment:




Last articles