Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evilbinary/TvWidget
tv常用效果控件,包括焦点、边框处理等。
https://github.com/evilbinary/TvWidget
android border effect focus tvos tvwidget
Last synced: about 21 hours ago
JSON representation
tv常用效果控件,包括焦点、边框处理等。
- Host: GitHub
- URL: https://github.com/evilbinary/TvWidget
- Owner: evilbinary
- License: apache-2.0
- Created: 2016-01-31T15:05:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-07-21T03:30:41.000Z (almost 3 years ago)
- Last Synced: 2024-02-29T03:38:18.134Z (4 months ago)
- Topics: android, border, effect, focus, tvos, tvwidget
- Language: Java
- Size: 7.82 MB
- Stars: 585
- Watchers: 30
- Forks: 134
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-github-android-ui - TvWidget - tv常用效果控件 (TV组件)
- awesome-github-android-ui - TvWidget - tv常用效果控件 (TV组件)
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 athttp://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.