xmartlabs / XLPagerTabStrip

Android PagerTabStrip for iOS.
MIT License
6.97k stars 1.33k forks source link

Can't update selected bar width #783

Open cammyc opened 4 years ago

cammyc commented 4 years ago

I'm trying to update the width of the selected bar that moves to the selected item.

I can set the height like this settings.style.selectedBarHeight = 3.0

Is there a way of setting the width?

linhnv106 commented 4 years ago

I'm using this trick. ` self.changeCurrentIndexProgressive = { [weak self] (oldCell: ButtonBarViewCell?, newCell: ButtonBarViewCell?, progressPercentage: CGFloat, changeCurrentIndex: Bool, animated: Bool) -> Void in self?.buttonBarView.selectedBar.frame.size.width = 100

    }`