• Stars
    star
    581
  • Rank 76,901 (Top 2 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created almost 9 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

tv常用效果控件,包括焦点、边框处理等。

TvWidget

TV常用效果控件,包括焦点、边框处理等。qq群:537960195

截图

界面

界面

界面

使用

//基本用法
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<RelativeLayout>(this,R.layout.custom_item);

//设置放大倍数1.2
borderView.getEffect().setScale(1.2);
//圆角布局 app:radius 为圆角大小
<org.evilbinary.tv.widget.RoundedFrameLayout
      android:id="@+id/view"
      android:layout_width="270dp"
      android:layout_height="406dp"
      android:layout_margin="5dp"
      android:focusable="true"
      app:radius="4dp"
      >
      <ImageView
	  android:layout_width="match_parent"
	  android:layout_height="match_parent"
	  android:scaleType="centerCrop"
	  android:src="@drawable/g2"
	    />
      <TextView
	  android:layout_width="match_parent"
	  android:layout_height="60dp"
	  android:layout_gravity="bottom"
	  android:background="@drawable/border_down_shape"
	  android:gravity="center|left"
	  android:padding="15px"
	  android:text="在线音乐"
	  android:textColor="@color/white"
	  android:textSize="24dp" />
 </org.evilbinary.tv.widget.RoundedFrameLayout>

项目捐赠

喜欢就支持一下

Developed By

#项目主页

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.

More Repositories

1

scheme-lib

鸭库 duck lib scheme for gui gles gl slib openal socket web mongodb box2d game glfw mysql libevent libuv uv json http client server android osx linux chezscheme scheme-lib
Scheme
466
star
2

duck-editor

基于scheme开发的鸭子编辑器
Scheme
196
star
3

YiYiYa

YiYiYa 一个os
C
173
star
4

HighlightTextEditor

An android HighlightTextEditor
Java
138
star
5

myblog

python写的博客,支持3种数据库,现在挂在evilbinary.org
Python
127
star
6

clear

clear 消除游戏 common lisp写的游戏
Common Lisp
24
star
7

robot

robot机器人 可以使用qq号码登录
Python
21
star
8

duck-compiler

🦆鸭子编译器
Scheme
21
star
9

duck-os

基于鸭子编译器写的os
Scheme
21
star
10

duck-typescript

A library for building cross-platform native desktop applications with TypeScript.
TypeScript
16
star
11

RScheme-for-android

RScheme for android 。运行在android上的scheme。
C
15
star
12

RScheme-for-ios

RScheme-for-ios ios lib and gui
C
9
star
13

wechat-pc

scheme写的高仿微信pc版聊天
Scheme
9
star
14

webrtc_lite

webrtc_lite 2016-08-31
C++
9
star
15

lisp--

lisp-- 一个可以跑sicp解释器的lisp--。
C
8
star
16

food

一个点菜的app,可以蓝牙或者无线网络点菜打单。
Java
6
star
17

eatery

eatery 食堂点餐
TypeScript
6
star
18

RScheme-for-windows

RScheme-for-windows run time library and example to call by c.
C
6
star
19

clock

时钟,c51单片机,汇编,有仿真电路图
Assembly
6
star
20

duck-learn

duck-learn 鸭子学习小站
5
star
21

duck

duck kernel
C
4
star
22

evilos

evilos 一个学习型的操作系统
C
4
star
23

OnlineJudge

java在线评判系统
Java
4
star
24

ymake

Python
3
star
25

duck-robot

duck-robot 一个基于qq开发的鸭子机器人。
JavaScript
3
star
26

typescript-pipeline

typescript-pipeline
TypeScript
2
star
27

etk-gui

etk-gui 一个mini的gui,可以用于嵌入式。
C
2
star
28

eqq-python

eqq python version
Python
2
star
29

glfont

gles font
Go
2
star
30

asm

以前汇编学习的代码。 my asm practice project
Assembly
2
star
31

Tank

一个Tank小游戏,自带物理引擎。
C++
2
star
32

foot

C
1
star
33

-

1
star
34

android-vnc-server

Automatically exported from code.google.com/p/android-vnc-server
C
1
star