{"id":19508630,"url":"https://github.com/commit451/viewtiful","last_synced_at":"2025-10-11T20:09:04.652Z","repository":{"id":83214028,"uuid":"58215260","full_name":"Commit451/Viewtiful","owner":"Commit451","description":"Simple ViewUtils","archived":false,"fork":false,"pushed_at":"2022-06-27T04:35:13.000Z","size":109,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T20:09:02.745Z","etag":null,"topics":["android","kotlin","util","view"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/Commit451.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2016-05-06T15:05:28.000Z","updated_at":"2019-06-11T11:21:47.000Z","dependencies_parsed_at":"2023-03-01T20:31:25.108Z","dependency_job_id":null,"html_url":"https://github.com/Commit451/Viewtiful","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/Commit451/Viewtiful","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commit451%2FViewtiful","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commit451%2FViewtiful/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commit451%2FViewtiful/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commit451%2FViewtiful/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Commit451","download_url":"https://codeload.github.com/Commit451/Viewtiful/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commit451%2FViewtiful/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008580,"owners_count":26084480,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["android","kotlin","util","view"],"created_at":"2024-11-10T23:08:28.106Z","updated_at":"2025-10-11T20:09:04.648Z","avatar_url":"https://github.com/Commit451.png","language":"Java","readme":"# Viewtiful\nSimple view utils\n\n[![Build Status](https://travis-ci.org/Commit451/Viewtiful.svg?branch=master)](https://travis-ci.org/Commit451/Viewtiful)\n[![](https://jitpack.io/v/Commit451/Viewtiful.svg)](https://jitpack.io/#Commit451/Viewtiful)\n\n# Gradle Dependency\nAdd the jitpack url to the project:\n```groovy\nallprojects {\n    repositories {\n        ...\n        maven { url \"https://jitpack.io\" }\n    }\n}\n```\nthen, in your app `build.gradle`\n```groovy\ndependencies {\n    compile \"com.github.Commit451.Viewtiful:viewtiful:latest.version.here\"\n    //and, for kotlin extensions\n    compile \"com.github.Commit451.Viewtiful:viewtiful-kotlin:latest.version.here\"\n}\n```\n\n# Usage\nSee the sample project for a comprehensive example.\n\n```java\nViewtiful.onPreDraw(view, new Runnable() {\n    @Override\n    public void run() {\n        Log.d(\"Hello\", \"The view is about to draw.\");\n    }\n});\n```\nAnd Kotlin:\n```kotlin\nview.onViewPreDraw(Runnable {\n    Log.d(\"Hello\", \"The view is about to draw.\")\n    Toast.makeText(this@MainKotlinActivity, \"The view is about to draw!!! How exciting\", Toast.LENGTH_SHORT).show()\n})\n```\nSimilar examples for `onGlobalLayout`.\n\nSetting padding is also made easier:\n```java\nint padding = Viewtiful.dpToPx(4);\nViewtiful.setPaddingTop(padding);\nViewtiful.setPaddingBottom(padding);\nViewtiful.setPaddingLeft(padding);\nViewtiful.setPaddingRight(padding);\n```\n\nLicense\n--------\n\n    Copyright 2016 Commit 451\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommit451%2Fviewtiful","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommit451%2Fviewtiful","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommit451%2Fviewtiful/lists"}