# TvWidget **Repository Path**: Android-TV/TvWidget ## Basic Information - **Project Name**: TvWidget - **Description**: tv常用效果控件,包括焦点、边框处理等 - **Primary Language**: Android - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-06-23 - **Last Updated**: 2025-06-12 ## Categories & Tags **Categories**: tv-devel **Tags**: None ## README # TvWidget TV常用效果控件,包括焦点、边框处理等。qq群:537960195 # 截图 界面 界面 界面 # 使用 ```java //基本用法 BorderView border=new BorderView(this); border.setBackgroundResource(R.drawable.item_highlight); RelativeLayout main= (RelativeLayout) findViewById(R.id.main); border.attachTo(main); //自定义布局 BorderView borderView = new BorderView(this,R.layout.custom_item); //设置放大倍数1.2 borderView.getEffect().setScale(1.2); ``` ```xml //圆角布局 app:radius 为圆角大小 ``` # 项目捐赠 ![喜欢就支持一下](https://github.com/evilbinary/myblog/raw/master/data/s.png) # Developed By * evilbinary * 个人博客 [http://evilbinary.org](http://evilbinary.org) #项目主页 * [https://github.com/evilbinary/TvWidget](https://github.com/evilbinary/TvWidget) # License Copyright 2016 evilbinary Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.