Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: JavaNoober/FloatMenu
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: skyNet2017/FloatMenu
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 7 commits
  • 21 files changed
  • 1 contributor

Commits on Apr 14, 2025

  1. refactor: 将项目从 Android Support Library 迁移到 AndroidX- 更新了 compileSdkVe…

    …rsion 到 34
    
    - 将 minSdkVersion 从 14 提升到 21
    - 更新了 targetSdkVersion 到 34
    - 从 Android Support Library 迁移到 AndroidX 库- 更新了 Gradle 插件版本到 7.4.2
    - 从 Java 7迁移到 Java 8
    - 删除了 .idea 目录下的某些文件
    hss01248 committed Apr 14, 2025
    Configuration menu
    Copy the full SHA
    57cb170 View commit details
    Browse the repository at this point in the history
  2. feat(menu): 实现分组菜单功能

    - 新增 GroupedFloatMenu 类,用于显示分组菜单
    - 在 MainActivity 中添加测试代码,展示分组菜单的使用- 新增 MenuUtil 类,提供菜单显示的工具方法
    - 删除了无用的 ExampleInstrumentedTest 文件
    hss01248 committed Apr 14, 2025
    Configuration menu
    Copy the full SHA
    7ca84ba View commit details
    Browse the repository at this point in the history
  3. feat(menu): 重构菜单布局并添加滚动支持

    - 引入 FlexboxLayout 替代 GridLayout,实现更灵活的布局
    - 添加 ScrollView 以支持菜单滚动
    - 优化菜单样式,包括背景色、字体大小和对齐方式- 修复菜单宽度问题,限制最大宽度为屏幕的 90%
    - 更新菜单项点击逻辑,先关闭菜单再执行点击事件- 为每个菜单项添加随机后缀,提高测试可识别性
    hss01248 committed Apr 14, 2025
    Configuration menu
    Copy the full SHA
    2bc9b9c View commit details
    Browse the repository at this point in the history
  4. feat(menu): 支持按分组展示菜单

    - 新增分组菜单功能,根据菜单的 groupName 进行分组
    - 如果所有菜单都没有分组名称,则直接使用原来的方式显示菜单
    -优化了菜单展示逻辑,提高了用户体验
    hss01248 committed Apr 14, 2025
    Configuration menu
    Copy the full SHA
    fed4dac View commit details
    Browse the repository at this point in the history
  5. feat(menu): 优化菜单显示位置和尺寸

    - 新增屏幕高度计算,设置菜单最小高度
    - 新增菜单显示位置逻辑,根据目标视图位置决定显示在上方或下方
    - 调整菜单宽度限制,使其适应不同屏幕尺寸
    - 重构部分代码结构,提高可维护性
    hss01248 committed Apr 14, 2025
    Configuration menu
    Copy the full SHA
    cab7ae1 View commit details
    Browse the repository at this point in the history
  6. refactor(menu): 优化 GroupedFloatMenu 布局和样式

    - 添加 Display 工具类导入,用于处理尺寸转换
    - 调整菜单组名称和菜单项文本大小
    - 优化菜单组名称和菜单项的内边距
    - 使用 Display 工具类将 dp 转换为 px,提高代码兼容性
    hss01248 committed Apr 14, 2025
    Configuration menu
    Copy the full SHA
    de3cf04 View commit details
    Browse the repository at this point in the history
  7. style(menu): 调整菜单文本字体大小

    - 将组名文本大小从 18sp 调整为 16sp
    - 将菜单项文本大小从 16sp调整为 14sp
    hss01248 committed Apr 14, 2025
    Configuration menu
    Copy the full SHA
    f2ca326 View commit details
    Browse the repository at this point in the history
Loading