{"id":13483750,"url":"https://github.com/equationl/calculatorCompose","last_synced_at":"2025-03-27T15:30:31.267Z","repository":{"id":56871062,"uuid":"523235732","full_name":"equationl/calculatorCompose","owner":"equationl","description":"这是一款完全使用 Jetpack Compose 实现的计算器 APP ， 支持标准计算器和程序员计算器，支持深色模式，支持自动旋转，支持悬浮窗计算器。兄弟项目：使用 Compose Multiplatform实现的跨平台计算器：https://github.com/equationl/calculator-Compose-Multiplatform","archived":false,"fork":false,"pushed_at":"2022-08-23T08:57:54.000Z","size":4642,"stargazers_count":48,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T17:48:12.425Z","etag":null,"topics":["android","compose","jetpack","jetpack-compose","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/equationl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-10T06:58:16.000Z","updated_at":"2024-10-10T06:42:47.000Z","dependencies_parsed_at":"2022-08-20T13:40:12.427Z","dependency_job_id":null,"html_url":"https://github.com/equationl/calculatorCompose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equationl%2FcalculatorCompose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equationl%2FcalculatorCompose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equationl%2FcalculatorCompose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equationl%2FcalculatorCompose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/equationl","download_url":"https://codeload.github.com/equationl/calculatorCompose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245871682,"owners_count":20686246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","compose","jetpack","jetpack-compose","kotlin"],"created_at":"2024-07-31T17:01:14.879Z","updated_at":"2025-03-27T15:30:29.967Z","avatar_url":"https://github.com/equationl.png","language":"Kotlin","funding_links":[],"categories":["Kotlin"],"sub_categories":[],"readme":"# Calculator-Compose\n\n这是一款完全使用 Jetpack Compose 实现的计算器 APP。\n\n## 功能特性\n\n| 是否支持 | 功能 |\n| :----: | :------: |\n| ✔ | 基础四则运算（标准、程序员） |\n| ✔ | 无限输入（标准） |\n| ✔ | % , 1/x , x² , √x 扩展运算（标准）|\n| ✔ | 运算过程历史记录（标准） |\n| ✔ | 二进制、八进制、十进制、十六进制随意切换并实时换算（程序员） |\n| ✔ | 位运算：左移、右移（程序员） |\n| ✔ | 逻辑运算：AND、OR、NOT、XOR（程序员） |\n| ✔ | 无限连续计算（标准、程序员） |\n| ✔ | 支持悬浮窗计算器，可调整位置、大小、透明度（标准） |\n| ✔ | 符合人体握持习惯的横屏键盘 |\n| ✔ | 旋转手机自动切换标准和程序员键盘 |\n| ✔ | 深色模式 |\n| ✔ | 酷炫的数字动效与振动反馈 |\n\n**注意：**\n\n1. 标准模式使用 BigDecimal 计算，所以理论支持无限位数数字计算\n2. 程序员模式因为涉及到二进制计算，所以采用 64 位储存大小，故不支持无限位数计算\n3. 程序员模式不支持带小数运算，如果运算结果有小数，则会直接抛弃小数部分\n\n## 截图\n\n| 浅色  | 深色 |\n| :----: | :----: |\n| ![1](./docs/img/screenshot1.jpg) \u003cbr /\u003e 标准模式 | ![2](./docs/img/screenshot2.jpg) \u003cbr /\u003e 标准模式 |\n| ![3](./docs/img/screenshot3.jpg) \u003cbr /\u003e 历史记录 | ![4](./docs/img/screenshot4.jpg) \u003cbr /\u003e 历史记录 |\n| ![5](./docs/img/screenshot5.jpg) \u003cbr /\u003e 程序员模式 | ![6](./docs/img/screenshot6.jpg) \u003cbr /\u003e 程序员模式 |\n| ![5](./docs/img/screenshot7.jpg) \u003cbr /\u003e 悬浮窗 | ![6](./docs/img/screenshot8.jpg) \u003cbr /\u003e 悬浮窗 |\n\n## 其他\n处理逻辑参考了 *微软计算器*\n\n布局参考了 *小米计算器* 与 *微软计算器*\n\n实现细节：[使用 Jetpack Compose 实现一个计算器APP](http://www.likehide.com/blogs/android/using_compose_made_a_calculator_app/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequationl%2FcalculatorCompose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fequationl%2FcalculatorCompose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequationl%2FcalculatorCompose/lists"}