{"id":13645021,"url":"https://github.com/evilbinary/TvWidget","last_synced_at":"2025-04-21T11:32:34.240Z","repository":{"id":44440218,"uuid":"50779869","full_name":"evilbinary/TvWidget","owner":"evilbinary","description":"tv常用效果控件，包括焦点、边框处理等。","archived":false,"fork":false,"pushed_at":"2021-07-21T03:30:41.000Z","size":8199,"stargazers_count":590,"open_issues_count":0,"forks_count":134,"subscribers_count":30,"default_branch":"master","last_synced_at":"2024-11-09T17:42:52.214Z","etag":null,"topics":["android","border","effect","focus","tvos","tvwidget"],"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/evilbinary.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-31T15:05:10.000Z","updated_at":"2024-08-24T03:41:44.000Z","dependencies_parsed_at":"2022-07-15T16:37:04.717Z","dependency_job_id":null,"html_url":"https://github.com/evilbinary/TvWidget","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilbinary%2FTvWidget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilbinary%2FTvWidget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilbinary%2FTvWidget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilbinary%2FTvWidget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evilbinary","download_url":"https://codeload.github.com/evilbinary/TvWidget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250048019,"owners_count":21366161,"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","border","effect","focus","tvos","tvwidget"],"created_at":"2024-08-02T01:02:23.793Z","updated_at":"2025-04-21T11:32:34.223Z","avatar_url":"https://github.com/evilbinary.png","language":"Java","readme":"# TvWidget\n\nTV常用效果控件，包括焦点、边框处理等。qq群:537960195\n\n\n# 截图\n\n\u003cimg src=\"https://github.com/evilbinary/TvWidget/raw/master/data/device-shot1.png\" alt=\"界面\" style=\"max-width:800px;\" width=\"800px\" /\u003e\n\n\u003cimg src=\"https://github.com/evilbinary/TvWidget/raw/master/data/device-shot2.png\" alt=\"界面\" style=\"max-width:800px;\" width=\"800px\" /\u003e\n\n\u003cimg src=\"https://github.com/evilbinary/TvWidget/raw/master/data/demo1.gif\" alt=\"界面\" style=\"max-width:800px;\" width=\"420px\" /\u003e\n\n# 使用\n```java\n//基本用法\nBorderView border=new BorderView(this);\nborder.setBackgroundResource(R.drawable.item_highlight);\nRelativeLayout main= (RelativeLayout) findViewById(R.id.main);\nborder.attachTo(main);\n\n//自定义布局        \nBorderView borderView = new BorderView\u003cRelativeLayout\u003e(this,R.layout.custom_item);\n\n//设置放大倍数1.2\nborderView.getEffect().setScale(1.2);\n```\n```xml\n//圆角布局 app:radius 为圆角大小\n\u003corg.evilbinary.tv.widget.RoundedFrameLayout\n      android:id=\"@+id/view\"\n      android:layout_width=\"270dp\"\n      android:layout_height=\"406dp\"\n      android:layout_margin=\"5dp\"\n      android:focusable=\"true\"\n      app:radius=\"4dp\"\n      \u003e\n      \u003cImageView\n\t  android:layout_width=\"match_parent\"\n\t  android:layout_height=\"match_parent\"\n\t  android:scaleType=\"centerCrop\"\n\t  android:src=\"@drawable/g2\"\n\t    /\u003e\n      \u003cTextView\n\t  android:layout_width=\"match_parent\"\n\t  android:layout_height=\"60dp\"\n\t  android:layout_gravity=\"bottom\"\n\t  android:background=\"@drawable/border_down_shape\"\n\t  android:gravity=\"center|left\"\n\t  android:padding=\"15px\"\n\t  android:text=\"在线音乐\"\n\t  android:textColor=\"@color/white\"\n\t  android:textSize=\"24dp\" /\u003e\n \u003c/org.evilbinary.tv.widget.RoundedFrameLayout\u003e\n```       \n\n# 项目捐赠\n\n![喜欢就支持一下](https://github.com/evilbinary/myblog/raw/master/data/s.png)\n# Developed By\n\n\n* evilbinary \u003crootdebug@163.com\u003e \n* 个人博客 [http://evilbinary.org](http://evilbinary.org)\n\n#项目主页\n* [https://github.com/evilbinary/TvWidget](https://github.com/evilbinary/TvWidget)\n\n# License\n\nCopyright 2016 evilbinary\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","funding_links":[],"categories":["TV组件"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilbinary%2FTvWidget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevilbinary%2FTvWidget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilbinary%2FTvWidget/lists"}