{"id":29951233,"url":"https://github.com/rust-mobile/android-view","last_synced_at":"2026-04-01T17:19:12.190Z","repository":{"id":281036586,"uuid":"943995275","full_name":"rust-mobile/android-view","owner":"rust-mobile","description":"Implement an Android view in Rust","archived":false,"fork":false,"pushed_at":"2025-07-23T13:25:45.000Z","size":615,"stargazers_count":44,"open_issues_count":7,"forks_count":7,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-03-28T00:37:07.967Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rust-mobile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-06T15:58:43.000Z","updated_at":"2026-03-05T15:51:41.000Z","dependencies_parsed_at":"2025-03-22T18:29:52.645Z","dependency_job_id":"665a794e-afc8-4568-9641-635fa6106b7a","html_url":"https://github.com/rust-mobile/android-view","commit_stats":null,"previous_names":["mwcampbell/android-view","rust-mobile/android-view"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rust-mobile/android-view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-mobile%2Fandroid-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-mobile%2Fandroid-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-mobile%2Fandroid-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-mobile%2Fandroid-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-mobile","download_url":"https://codeload.github.com/rust-mobile/android-view/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-mobile%2Fandroid-view/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31290537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-08-03T12:32:27.990Z","updated_at":"2026-04-01T17:19:12.170Z","avatar_url":"https://github.com/rust-mobile.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WIP: Implement an Android view in Rust\n\nThis will be a library that can be reused to implement an Android view in Rust. Things that will distinguish it from `android-activity`:\n\n* No C++ code.\n* Meant to be usable for both pure-Rust Android applications and embedding Rust widgets in existing applications.\n* Event handlers and other view callbacks run directly on the UI thread; there is no sending events to a separate Rust event loop thread.\n* This crate intends to stick as close as possible to the Android framework. This will be especially important for text input support.\n\n## Building and running the demos\n\n### Common setup\n\n```bash\nexport ANDROID_NDK_HOME=\"path/to/ndk\"\nexport ANDROID_HOME=\"path/to/sdk\"\n\nrustup target add aarch64-linux-android\ncargo install cargo-ndk\n```\n\n### Simple editor demo\n\n```bash\ncargo ndk -t arm64-v8a -o app/src/main/jniLibs/ build -p android-view-demo\n./gradlew build\n./gradlew installDebug\nadb shell am start -n org.linebender.android.viewdemo/.DemoActivity\n# To view logs:\nadb shell run-as org.linebender.android.viewdemo logcat -v color\n```\n\n### Masonry demo\n\n```bash\ncargo ndk -t arm64-v8a -o masonry-app/src/main/jniLibs/ build -p android-view-masonry-demo\n./gradlew build\n./gradlew installDebug\nadb shell am start -n org.linebender.android.masonrydemo/.DemoActivity\n# To view logs:\nadb shell run-as org.linebender.android.masonrydemo logcat -v color\n```\n\n## Open questions\n\n* Do we need to be able to handle the view being reattached to a window after it has been detached? If not, then `onDetachedFromWindow` is the logical place to sever the connection between Java and native.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-mobile%2Fandroid-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-mobile%2Fandroid-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-mobile%2Fandroid-view/lists"}