This commit is contained in:
2025-11-09 14:44:31 +08:00
parent 5bdc7ddec0
commit 705b0f374e

View File

@@ -50,7 +50,8 @@ static const CGFloat JXheightForHeaderInSection = 50;
self.categoryView.titleSelectedColor = [UIColor colorWithHex:0x1B1F1A];
self.categoryView.titleColor = [UIColor colorWithHex:0x9F9F9F];
self.categoryView.titleColorGradientEnabled = YES;
self.categoryView.titleLabelZoomEnabled = YES;
//
self.categoryView.titleLabelZoomEnabled = NO;
self.categoryView.contentScrollViewClickTransitionAnimationEnabled = NO;
// Unselected items need a rounded gray background like the screenshot.
// JXCategoryTitleView supports cell background colors via JXCategoryIndicatorView.
@@ -62,6 +63,7 @@ static const CGFloat JXheightForHeaderInSection = 50;
self.categoryView.cellSpacing = 12; // spacing between items
self.categoryView.contentEdgeInsetLeft = 16;
self.categoryView.contentEdgeInsetRight = 16;
self.categoryView.averageCellSpacingEnabled = NO;
JXCategoryIndicatorBackgroundView *backgroundView = [[JXCategoryIndicatorBackgroundView alloc] init];
backgroundView.indicatorHeight = 20;
@@ -74,6 +76,8 @@ static const CGFloat JXheightForHeaderInSection = 50;
_pagerView = [self preferredPagingView];
self.pagerView.mainTableView.gestureDelegate = self;
[self.view addSubview:self.pagerView];
self.pagerView.listContainerView.scrollView.scrollEnabled = false;
self.categoryView.listContainer = (id<JXCategoryViewListContainer>)self.pagerView.listContainerView;