Skip to content

Beautify main page with modern card-based layout#8

Merged
Cross2pro merged 2 commits into
masterfrom
copilot/beautify-main-page-layout
Nov 12, 2025
Merged

Beautify main page with modern card-based layout#8
Cross2pro merged 2 commits into
masterfrom
copilot/beautify-main-page-layout

Conversation

Copilot AI commented Nov 12, 2025

Copy link
Copy Markdown

Redesigned the main activity layout from a flat list to a structured card-based UI with proper visual hierarchy and Material Design principles.

Layout Structure

  • Organized content into three elevated card sections: Header (description/warning), Repository Links, and Settings
  • Replaced TableLayout with LinearLayout for simpler maintenance
  • Added dividers between all settings items

Visual Design

  • New color palette: background_grey (#F5F5F5), text_primary (#212121), warning_red (#D32F2F), divider_color (#E0E0E0)
  • Card elevation (2dp) for depth
  • Consistent 16dp padding throughout
  • Text hierarchy: description (16sp), warning (14sp bold red), settings title (18sp bold)

Touch Targets

  • Switch height increased from 48dp to 56dp minimum (Material Design spec)
  • Proper horizontal/vertical padding (16dp/12dp)

Internationalization

  • Added settings_title string to all 8 locale files (EN, ZH variants)

Files: 10 changed (activity_main.xml, colors.xml, 8 locale strings.xml)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-7.2-bin/2dnblmf4td7x66yl1d74lt32g/gradle-7.2/lib/gradle-launcher-7.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.2 (dns block)
  • maven.aliyun.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-7.2-bin/2dnblmf4td7x66yl1d74lt32g/gradle-7.2/lib/gradle-launcher-7.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.2 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

美化主页面,优化布局


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: Cross2pro <30151531+Cross2pro@users.noreply.github.com>
Copilot AI changed the title [WIP] Beautify main page and optimize layout Beautify main page with modern card-based layout Nov 12, 2025
Copilot AI requested a review from Cross2pro November 12, 2025 01:05

@Cross2pro Cross2pro left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

 ERROR:/home/runner/work/android_virtual_cam/android_virtual_cam/app/src/main/res/layout/activity_main.xml:40: AAPT: error: attribute android:lineSpacing not found.

请处理这个错误

@Cross2pro Cross2pro marked this pull request as ready for review November 12, 2025 01:39

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/src/main/res/layout/activity_main.xml
@Cross2pro Cross2pro merged commit 2e2a46b into master Nov 12, 2025
0 of 3 checks passed
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.

2 participants