{"id":13644350,"url":"https://github.com/HeZaiJin/SlantedTextView","last_synced_at":"2025-04-21T07:30:56.249Z","repository":{"id":88587511,"uuid":"62270065","full_name":"HeZaiJin/SlantedTextView","owner":"HeZaiJin","description":"Android slanted TextView.","archived":false,"fork":false,"pushed_at":"2023-02-19T02:51:35.000Z","size":763,"stargazers_count":2269,"open_issues_count":2,"forks_count":331,"subscribers_count":49,"default_branch":"master","last_synced_at":"2024-12-03T21:45:22.457Z","etag":null,"topics":["android","slanted","slantedtextview","textview"],"latest_commit_sha":null,"homepage":"https://github.com/HeZaiJin/SlantedTextView","language":"Java","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/HeZaiJin.png","metadata":{"files":{"readme":"README-cn.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,"governance":null}},"created_at":"2016-06-30T01:41:30.000Z","updated_at":"2024-11-15T18:48:44.000Z","dependencies_parsed_at":"2023-03-13T18:21:43.973Z","dependency_job_id":null,"html_url":"https://github.com/HeZaiJin/SlantedTextView","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/HeZaiJin%2FSlantedTextView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeZaiJin%2FSlantedTextView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeZaiJin%2FSlantedTextView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeZaiJin%2FSlantedTextView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HeZaiJin","download_url":"https://codeload.github.com/HeZaiJin/SlantedTextView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250014603,"owners_count":21360980,"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","slanted","slantedtextview","textview"],"created_at":"2024-08-02T01:02:01.746Z","updated_at":"2025-04-21T07:30:55.561Z","avatar_url":"https://github.com/HeZaiJin.png","language":"Java","readme":"[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-SlantedTextView-green.svg?style=true)](https://android-arsenal.com/details/1/3816)\n# SlantedTextView\n一个倾斜的TextView,适用于标签效果。\n\n## 预览\n![预览](https://github.com/HeZaiJin/SlantedTextView/blob/master/screen_shot/screenshot.png)\n\n## Gradle\n```java\ncompile 'com.haozhang.libary:android-slanted-textview:1.2'\n```\n\n## Layout文件\n```java\n\u003ccom.haozhang.lib.SlantedTextView\n    android:layout_width=\"80dp\"\n    android:layout_height=\"80dp\"\n    android:gravity=\"center\"\n    app:slantedBackgroundColor=\"@color/secondary_text\"\n    app:slantedLength=\"40dp\"\n    app:slantedMode=\"left\"\n    app:slantedText=\"IOS\"\n    app:slantedTextColor=\"@color/primary\"\n    app:slantedTextSize=\"16sp\"\n    /\u003e\n```\n## Java\n代码中可以动态设置属性\n```java\n    SlantedTextView stv = (SlantedTextView) findViewById(R.id.test);\n\n    stv.setText(\"PHP\")\n            .setTextColor(Color.WHITE)\n            .setSlantedBackgroundColor(Color.BLACK)\n            .setTextSize(18)\n            .setSlantedLength(50)\n            .setMode(SlantedTextView.MODE_LEFT);\n```\n## 属性\n![注意](https://github.com/HeZaiJin/SlantedTextView/blob/master/screen_shot/note.png)\n## SlantedMode\n![SlantedMode](https://github.com/HeZaiJin/SlantedTextView/blob/master/screen_shot/slanted_mode.png)\n# License\n```\nCopyright 2016 Hand HaoZhang\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","funding_links":[],"categories":["TextView"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHeZaiJin%2FSlantedTextView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHeZaiJin%2FSlantedTextView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHeZaiJin%2FSlantedTextView/lists"}