How to Change Visibility of an ImageButton within a PagerAdapter?
Try this, where "itemLayout" is your layout : View thisLayout = inflater.inflate(R.layout.itemLayout, null); btnLeft = (ImageButton) thisLayout.findViewById(R.id.buttonleft); <do stuff with btnLeft> ((ViewPager) collection).addView(thisLayout); return thisLayout;
Regarding your Q on updating the UI on a thread, check out runOnUiThread here
The answer to this is right here: http://mobile.tutsplus.com/tutorials/android/android-user-interface-design-horizontal-view-paging/comment-page-1/#comment-14065 Apparently you must refer to the Relative or Linear layout that your button resides in or else findViewById will not be able to find what you are referring to.
Firebase Database Listener performance on Android
In Recyclerview Image get misplaced while scrolling
how to set weight of textview Dyanamicaly inside Tablerow in TableLayout?
LinearLayout under GridView does not wrap content
I want to manage toolbar text while using swiping tabs
Setting audio file as Ringtone fails everytime
sqlite delete row by onItemLongClick gridview sqlite [duplicate]
how to send a notification to android using fcm and j2ee [closed]
Error SeachView filter android
How to structure layout with CoordinatorLayout
Scaling issue on Android - why is picture so clumsy?
How to background color of textview within Listview
How do we sort layout at runtime (android)
onCharacteristicChanged getting called multiple times without change in Characteristic values
Google + Integration fails on Android M device