BubbleTextureView
==============
Custom bubble shape TextureView for Android, OpenGL surface implementation using TextureView. 自定义气泡形状的TextureView,使用OpenGL实现
![screenshot1~](https://raw.github.com/zolad/BubbleTextureView/master/screenshot/screenshot_1.gif)
Features
==============
- Custom radius,arrow position and arrow size
- shape textureview by opengl
Dependency
==============
### Add this in your build.gradle file
```gradle
compile 'com.zolad:bubbletextureview:1.0.0'
```
Usage
==============
### 1.layout xml
```java
<com.zolad.bubbletextureview.BubbleTextureView
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
```
### 2.Set radius, arrow size,arrow direction(left or right),arrow position
```java
/**
* set corner radius and arrow size and arrow direction
*
* @param radius float,pixels, the corner radius of each corner.
* @param arrowSize float,range (0f<arrowSize<1.0f) the size percent of arrow
* @param arrowOffsetFromCenter float,range (-1.0f<arrowSize<1.0f) arrow offset from center
* @param arrowDirection boolean,true is left,false is right, the direction of arrow
*/
mBubbleTextureView.setCornerRadiusAndArrow(40,0.12f, 0.6f,true);
/**
* use surface in this callback
*/
mBubbleTextureView.setSurfaceListner(new SurfaceListener() {
@Override
public void onSurfaceCreated(SurfaceTexture surface) {
//use surface
}
});
```
License
==============
Copyright 2018 Zolad
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.
没有合适的资源?快使用搜索试试~ 我知道了~
Android代码-使用OpenGL实现的自定义气泡形状TextureView。
共51个文件
java:13个
xml:11个
png:10个
需积分: 48 7 下载量 36 浏览量
2019-08-06
05:16:08
上传
评论 1
收藏 7.99MB ZIP 举报
温馨提示
BubbleTextureView Custom bubble shape TextureView for Android, OpenGL surface implementation using TextureView. 自定义气泡形状的TextureView,使用OpenGL实现 Features Custom radius,arrow position and arrow size shape textureview by opengl Dependency Add this in your build.gradle file compile 'com.zolad:bubbletextureview:1.0.0' Usage 1.layout xml 2.Set radius, arrow size,arrow direction(left or right),arrow position /** * set corner radius and arrow size and arrow direction * * @para
资源推荐
资源详情
资源评论
收起资源包目录
Android代码-使用OpenGL实现的自定义气泡形状TextureView。.zip (51个子文件)
BubbleTextureView-master
screenshot
screenshot_1.gif 3.13MB
gradlew.bat 2KB
gradlew 5KB
gradle.properties 726B
sample
proguard-rules.pro 751B
src
test
java
com
zolad
bubbletextureview
sample
ExampleUnitTest.java 395B
androidTest
java
com
zolad
bubbletextureview
sample
ExampleInstrumentedTest.java 752B
main
res
raw
sample_video.mp4 4.72MB
mipmap-xxxhdpi
ic_launcher.png 9KB
ic_launcher_round.png 15KB
drawable
ic_launcher_background.xml 5KB
mipmap-hdpi
ic_launcher.png 3KB
ic_launcher_round.png 5KB
drawable-v24
ic_launcher_foreground.xml 2KB
values
colors.xml 208B
strings.xml 80B
styles.xml 383B
mipmap-xxhdpi
ic_launcher.png 6KB
ic_launcher_round.png 10KB
mipmap-mdpi
ic_launcher.png 2KB
ic_launcher_round.png 3KB
mipmap-xhdpi
ic_launcher.png 4KB
ic_launcher_round.png 7KB
mipmap-anydpi-v26
ic_launcher_round.xml 272B
ic_launcher.xml 272B
layout
activity_main.xml 1KB
java
com
zolad
bubbletextureview
sample
MainActivity.java 3KB
AndroidManifest.xml 728B
.gitignore 7B
build.gradle 995B
gradle
wrapper
gradle-wrapper.jar 53KB
gradle-wrapper.properties 230B
.gitignore 109B
README.md 2KB
settings.gradle 40B
bubbletextureview
proguard-rules.pro 751B
src
test
java
com
zolad
bubbletextureview
ExampleUnitTest.java 388B
androidTest
java
com
zolad
bubbletextureview
ExampleInstrumentedTest.java 743B
main
res
values
strings.xml 80B
java
com
zolad
bubbletextureview
base
GLBubbleGeometry.java 19KB
MultiSampleEGLConfigChooser.java 5KB
GLTextureView.java 70KB
renders
BubbleGLRenderer.java 12KB
egl
EGLLogWrapper.java 16KB
interfaces
SurfaceListener.java 178B
BubbleTextureView.java 2KB
util
LoggerConfig.java 115B
AndroidManifest.xml 114B
.gitignore 7B
build.gradle 899B
build.gradle 537B
共 51 条
- 1
资源评论
weixin_39840914
- 粉丝: 435
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功