修复:用户协议和隐私政策页面无法滚动问题#8
Open
zyraxi21 wants to merge 1 commit into
Open
Conversation
…smiss 重写 UserAgreementDialog 以修复协议页面无法滚动、无法滑动切 标签、下拉关闭行为异常等一系列问题。 # 核心改动 UserAgreementDialog: - BottomSheetDialogFragment → DialogFragment(全屏 + 底部滑入动画) - NestedScrollView → Compose verticalScroll(解决滚动冲突) - 新增 HorizontalPager + PrimaryTabRow 联动(左右滑动切换标签) - 新增 initialPage 参数("指哪打哪":点《用户协议》跳用户协议, 点《隐私政策》跳隐私政策) - 新增 pull-to-dismiss(文字到顶后下拉关闭,含弹性回弹动画, 惯性快速下划立即关闭,回弹中触屏可打断) - TabRow → PrimaryTabRow(消除弃用 warning) - Html.fromHtml(String) → fromHtml(String, FROM_HTML_MODE_LEGACY) - 文字背景改为透明 MainActivity: - 导航栏跟随抽屉动画同步平移和缩放 PopUpLoginEAS: - createAgreementSpannable 按点击的链接传入正确的 initialPage Strings: - "隐私协议" → "隐私政策" - "用户与隐私协议" → "用户协议与隐私政策" Res: - 新增 anim/slide_in_bottom.xml, anim/slide_out_bottom.xml - themes.xml 新增 DialogSlideAnimation 样式
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix: legal info page — full-screen dialog, swipeable tabs, pull-to-dismiss
重写 UserAgreementDialog 以修复协议页面无法滚动、无法滑动切
标签、下拉关闭行为异常等一系列问题。
核心改动
UserAgreementDialog:
点《隐私政策》跳隐私政策)
惯性快速下划立即关闭,回弹中触屏可打断)
MainActivity:
PopUpLoginEAS:
Strings:
Res: