Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

列表展示页面规范 #5

Open
bbslzy001 opened this issue Apr 20, 2023 · 0 comments
Open

列表展示页面规范 #5

bbslzy001 opened this issue Apr 20, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@bbslzy001
Copy link
Owner

  • 页面根布局设置 android:paddingHorizontal="8dp"
  • 如果页面顶部存在卡片,则设置 android:layout_marginBottom="8dp"
  • 如果列表存在 Header,需要设置 android:layout_marginHorizontal="8dp"android:layout_marginBottom="8dp"
  • 如果列表存在 Footer,需要设置 android:layout_marginHorizontal="8dp"android:layout_marginTop="8dp"
  • 对于列表中的每一个 Item,都需要设置 android:paddingVertical="8dp"android:paddingHorizontal="8xdp",保证第 x 级 Item 的宽度总比 x+1 级 Item 的宽度多 8dp
  • 如果列表为二级列表,则第一级列表项需要自动悬浮顶部,同时具有展开折叠第二级列表项的功能。
@bbslzy001 bbslzy001 added the documentation Improvements or additions to documentation label Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant