Skip to content

修复:用户协议和隐私政策页面无法滚动问题#8

Open
zyraxi21 wants to merge 1 commit into
HIT-A:feat/eas-multicampus-login-and-importfrom
zyraxi21:fix-legal-information-page-not-scrolling
Open

修复:用户协议和隐私政策页面无法滚动问题#8
zyraxi21 wants to merge 1 commit into
HIT-A:feat/eas-multicampus-login-and-importfrom
zyraxi21:fix-legal-information-page-not-scrolling

Conversation

@zyraxi21

@zyraxi21 zyraxi21 commented Jun 5, 2026

Copy link
Copy Markdown

fix: legal info page — full-screen dialog, swipeable tabs, pull-to-dismiss

重写 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 样式

…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 样式
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant