100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > Android自定义组件——3D立体旋转控件

Android自定义组件——3D立体旋转控件

时间:2018-08-10 09:24:41

相关推荐

Android自定义组件——3D立体旋转控件

BingoIdea

一个3D立体切换的自定义ViewGroup demo,支持横向和纵向滑动翻转。

项目配置

在项目的build.gradle配置

allprojects {repositories {maven {url '/content/groups/public'}}}

在app的build.gradle配置

dependencies {compile 'com.github.bingocode:mutiview:1.0.1-SNAPSHOT'}

使用方式

纵向翻转ViewGroup

<com.whu.zengbin.mutiview.VStereoViewandroid:layout_width="330dp"android:layout_height="250dp"android:id="@+id/stereoView"android:layout_marginTop="50dp"><!--添加组件--></com.whu.zengbin.mutiview.VStereoView>

横向翻转ViewGroup

<com.whu.zengbin.mutiview.HStereoViewandroid:id="@+id/stereoView24"android:layout_width="match_parent"android:layout_height="match_parent"><!--添加组件--></com.whu.zengbin.mutiview.HStereoView>

项目github地址

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。