René's URL Explorer Experiment


Title: GitHub - AndroidKun/XTabLayout: Added support to modify text size and indicator width based on the original TabLayout.

Open Graph Title: GitHub - AndroidKun/XTabLayout: Added support to modify text size and indicator width based on the original TabLayout.

X Title: GitHub - AndroidKun/XTabLayout: Added support to modify text size and indicator width based on the original TabLayout.

Description: Added support to modify text size and indicator width based on the original TabLayout. - AndroidKun/XTabLayout

Open Graph Description: Added support to modify text size and indicator width based on the original TabLayout. - AndroidKun/XTabLayout

X Description: Added support to modify text size and indicator width based on the original TabLayout. - AndroidKun/XTabLayout

Opengraph URL: https://github.com/AndroidKun/XTabLayout

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:1ad7a0fd-cdbd-e23a-33a0-a09607205ea1
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idB8C2:14F335:55ADA9B:6FCC096:697521E6
html-safe-nonce7de6d5138e13a0e299da29eba9204e039a786e1d54fbc773f57f604746e79f21
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEMyOjE0RjMzNTo1NUFEQTlCOjZGQ0MwOTY6Njk3NTIxRTYiLCJ2aXNpdG9yX2lkIjoiODU1NjY5NDQ2MzE4MTAzODA1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb228085b121cefaa4ae20468655c8c38abfee1ae5dc461f1d5937ebbd529915e
hovercard-subject-tagrepository:77023344
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location//
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/AndroidKun/XTabLayout
twitter:imagehttps://opengraph.githubassets.com/25b99a018ed99836834be48d1ed8f0b0b3fe0e16f15ca16a2a6cd85a5b7c9fd1/AndroidKun/XTabLayout
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/25b99a018ed99836834be48d1ed8f0b0b3fe0e16f15ca16a2a6cd85a5b7c9fd1/AndroidKun/XTabLayout
og:image:altAdded support to modify text size and indicator width based on the original TabLayout. - AndroidKun/XTabLayout
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f
turbo-cache-controlno-preview
go-importgithub.com/AndroidKun/XTabLayout git https://github.com/AndroidKun/XTabLayout.git
octolytics-dimension-user_id20960553
octolytics-dimension-user_loginAndroidKun
octolytics-dimension-repository_id77023344
octolytics-dimension-repository_nwoAndroidKun/XTabLayout
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id77023344
octolytics-dimension-repository_network_root_nwoAndroidKun/XTabLayout
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release488b30e96dfd057fbbe44c6665ccbc030b729dde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FAndroidKun%2FXTabLayout
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FAndroidKun%2FXTabLayout
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=AndroidKun%2FXTabLayout
Reloadhttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout
Reloadhttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout
Reloadhttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout
AndroidKun https://patch-diff.githubusercontent.com/AndroidKun
XTabLayouthttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FAndroidKun%2FXTabLayout
Fork 111 https://patch-diff.githubusercontent.com/login?return_to=%2FAndroidKun%2FXTabLayout
Star 665 https://patch-diff.githubusercontent.com/login?return_to=%2FAndroidKun%2FXTabLayout
665 stars https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/stargazers
111 forks https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/forks
Branches https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/branches
Tags https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/tags
Activity https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/activity
Star https://patch-diff.githubusercontent.com/login?return_to=%2FAndroidKun%2FXTabLayout
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FAndroidKun%2FXTabLayout
Code https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout
Issues 61 https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/issues
Pull requests 1 https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/pulls
Actions https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/actions
Projects 0 https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/projects
Security 0 https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/security
Insights https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/pulse
Code https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout
Issues https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/issues
Pull requests https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/pulls
Actions https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/actions
Projects https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/projects
Security https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/security
Insights https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/pulse
Brancheshttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/branches
Tagshttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/tags
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/branches
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/tags
39 Commitshttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/commits/master/
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/commits/master/
.ideahttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/tree/master/.idea
.ideahttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/tree/master/.idea
apphttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/tree/master/app
apphttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/tree/master/app
gradle/wrapperhttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/tree/master/gradle/wrapper
gradle/wrapperhttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/tree/master/gradle/wrapper
xtablayoutlibraryhttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/tree/master/xtablayoutlibrary
xtablayoutlibraryhttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/tree/master/xtablayoutlibrary
.gitignorehttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/blob/master/.gitignore
.gitignorehttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/blob/master/.gitignore
README.mdhttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/blob/master/README.md
README.mdhttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/blob/master/README.md
build.gradlehttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/blob/master/build.gradle
build.gradlehttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/blob/master/build.gradle
gradle.propertieshttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/blob/master/gradle.properties
gradle.propertieshttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/blob/master/gradle.properties
gradlewhttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/blob/master/gradlew
gradlewhttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/blob/master/gradlew
gradlew.bathttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/blob/master/gradlew.bat
gradlew.bathttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/blob/master/gradlew.bat
settings.gradlehttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/blob/master/settings.gradle
settings.gradlehttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/blob/master/settings.gradle
sh.exe.stackdumphttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/blob/master/sh.exe.stackdump
sh.exe.stackdumphttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/blob/master/sh.exe.stackdump
READMEhttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#xtablayout可修改选中项字体大小和指示器长度的tablayout
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#xtablayout是基于design包中的tablayout进行了功能的扩展在保留原有功能的基础上增加了修改选中项字体大小修改指示器长度以及限制屏幕显示范围内显示的tab个数
https://camo.githubusercontent.com/a4c7446fc09fc1ba4d3c50c6db069d87a43793488fe287e4b93c229bc752e1cf/687474703a2f2f696d672e626c6f672e6373646e2e6e65742f32303136313232323039353731393333303f77617465726d61726b2f322f746578742f6148523063446f764c324a736232637559334e6b626935755a585176595445314d7a4d314f4467344e6a633d2f666f6e742f3561364c354c32542f666f6e7473697a652f3430302f66696c6c2f49304a42516b46434d413d3d2f646973736f6c76652f37302f677261766974792f536f75746845617374
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#集成步骤
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#1添加xtablayout依赖库
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#在app目录下的buildgradle的dependencies中添加如下引用
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#2在布局文件中设置xtablayout属性
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#tablayout有的属性在xtablayout中都会有属性名称都是前面加个x后面的t变成大写
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#其中增加了xtabindicatorwidth用于设置指示器长度xtabtextsize用于设置未选中项的字体大小xtabselectedtextsize用于设置选中项的字体大小
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#此外101版本中添加如下属性可以设置屏幕范围内显示的tab个数
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#或者在代码中添加
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#这里我们限制为3个则每个tab的宽度为屏幕的13显示效果如下
https://camo.githubusercontent.com/8e3255a2c464879e6990ba846a705976a984b85d438ff3182edc578f0f074e77/687474703a2f2f696d672e626c6f672e6373646e2e6e65742f32303136313232323135303734333836363f77617465726d61726b2f322f746578742f6148523063446f764c324a736232637559334e6b626935755a585176595445314d7a4d314f4467344e6a633d2f666f6e742f3561364c354c32542f666f6e7473697a652f3430302f66696c6c2f49304a42516b46434d413d3d2f646973736f6c76652f37302f677261766974792f536f75746845617374
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#需要注意显示的个数会受adapter的itemcount影响例如itemcount为3但是我们设置appxtabdisplaynum4那么显示出来的tab的宽度其实是屏幕的13并非14
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#3初始化
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#xtablayout的使用方式和tablayout是一样的代码如下
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#更新日志
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#103
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#修改只有一个tab时tab未占满屏幕的bug
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#104
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#增加设置tab背景色的功能
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#两个属性分别对应tab未选中和被选中的背景色效果图如下
https://camo.githubusercontent.com/09806d8ca16005ad8f9fb630dc1690c215baa2de086d948125d84171420cbd3d/687474703a2f2f696d672e626c6f672e6373646e2e6e65742f32303137303332393132323535343138383f77617465726d61726b2f322f746578742f6148523063446f764c324a736232637559334e6b626935755a585176595445314d7a4d314f4467344e6a633d2f666f6e742f3561364c354c32542f666f6e7473697a652f3430302f66696c6c2f49304a42516b46434d413d3d2f646973736f6c76652f37302f677261766974792f536f75746845617374
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#105--106
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#增加设置指示器长度随tab文本内容长度变化的功能
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#使用方式不设置xtabindicatorwidth属性即可
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#107
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#增加设置标题字母大小写转换功能默认小写不自动转大写
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#使用方式在xml文件中添加appxtabtextallcapsfalse或者在代码中调用xtablayoutsetallcapsfalse
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#108
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#增加设置分割线功能
https://camo.githubusercontent.com/b38864e62558fb0420bbfb81987ddbc3780238fa7a8ce7d99b0d3c6893e37559/687474703a2f2f696d672e626c6f672e6373646e2e6e65742f32303137303432363132333833373530343f77617465726d61726b2f322f746578742f6148523063446f764c324a736232637559334e6b626935755a585176595445314d7a4d314f4467344e6a633d2f666f6e742f3561364c354c32542f666f6e7473697a652f3430302f66696c6c2f49304a42516b46434d413d3d2f646973736f6c76652f37302f677261766974792f536f75746845617374
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#使用方式
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#1xml
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#不设置xtabdividerheight属性或者赋值为0时则分割线高度占满
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#2java
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#setdividersize方法中第二个参数为高度如果设置为0时则分割线高度占满
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#109
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#优化设置指示器长度功能
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#使用方式-1
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#a明确指定指示器为某个长度则设置xtabindicatorwidth
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#b指定指示器长度跟随文本变化则设置xtabdividerwidthwidthtext
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#c如果需要指示器长度占满则两个属性都不设置默认占满
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#110
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#增加设置字体粗体功能
https://camo.githubusercontent.com/519709b67a32768edcd091bb34e01a8b9e2ee4f66dece02a8aa4726262ac0418/687474703a2f2f696d672e626c6f672e6373646e2e6e65742f32303137303631353132333434333137393f77617465726d61726b2f322f746578742f6148523063446f764c324a736232637559334e6b626935755a585176595445314d7a4d314f4467344e6a633d2f666f6e742f3561364c354c32542f666f6e7473697a652f3430302f66696c6c2f49304a42516b46434d413d3d2f646973736f6c76652f37302f677261766974792f536f75746845617374
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#使用方式-2
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#114
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#修复反馈的bug
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#115
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#增加指示器圆角功能
CSDN地址http://blog.csdn.net/a1533588867/article/details/53810409
https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#csdn地址
Readme https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout#readme-ov-file
Please reload this pagehttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout
Activityhttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/activity
665 starshttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/stargazers
12 watchinghttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/watchers
111 forkshttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/forks
Report repository https://patch-diff.githubusercontent.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2FAndroidKun%2FXTabLayout&report=AndroidKun+%28user%29
Releaseshttps://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/releases
Packages 0https://patch-diff.githubusercontent.com/users/AndroidKun/packages?repo_name=XTabLayout
Java 100.0% https://patch-diff.githubusercontent.com/AndroidKun/XTabLayout/search?l=java
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.