PagerSlidingTabStrip
                                
                                
                                
                                    PagerSlidingTabStrip copied to clipboard
                            
                            
                            
                        Way to change tab icon at runtime?
I have a requirement , where the icons for the tabs are being downloaded from the internet. Since this process is happening asynchronously, I need to be able to set the icons to the tabs when the bitmaps are downloaded.
How can I do this?
Thankx
hey, I was able to solve it myself .
This is my solution : (Using Glide)
LinearLayout layout = (LinearLayout) tabsStrip.getChildAt(0); Glide.with(StickerActivity.this) .load(stickers.getResult().get(0).getOutlineSmallBlack()) .diskCacheStrategy(DiskCacheStrategy.ALL) .placeholder(R.drawable.icon_sticker) .into((ImageView) layout.getChildAt(0));
thanks @abhimanyu209 it works !