Profile image

3d View

아빠뎁 | 조회 수 6 | 2021.02.07. 10:27
Category Free

Demo

 

Gradle

Add below code to your root build.gradle file (if you have multiple modules and only one of them require 3dView, add the jcenter() repository only in that module's build.gradle).

allprojects {
    repositories {
        jcenter()
    }
}

And add the following dependency code to your module's build.gradle file.

dependencies {
    implementation "ss.anoop:3dview:${latest-version}"
}

3dView is added a the immediate parent of the view you want to decorate. Below is a simple example

Usage

<ss.anoop.threedview.ThreeDView
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         app:x="5dp"
         app:y="-5dp">

         <!-- Your View Goes here --> />

    </ss.anoop.threedview.ThreeDView>

Customization

Table below describes the properties available to customize the 3dView.

Property Name Format Description
x dimension It horizontal 3d effect. Positive value will add the effect on right side and negative value will add it in the left side
y dimension It vertical 3d effect. Positive value will add the effect on bottom side and negative value will add it in the top side
strokeWidth dimension Defines the width of border strokes
strokeColor dimension Color of the stroke

Find this library useful? ❤️

Support it by joining stargazers for this repository. ⭐

License

Copyright 2020 anoop44 (Anoop)

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.
  • |
  1. 3dview.png (File Size:31.9KB/Download:5)
facebook twitter google plus pinterest kakao story band
사진 및 파일 첨부

여기에 파일을 끌어 놓거나 왼쪽의 버튼을 클릭하세요.

파일 용량 제한 : 0MB (허용 확장자 : *.*)

0개 첨부 됨 ( / )
번호 제목 글쓴이 날짜 조회 수
5 Line Graph file 아빠뎁 21.02.07. 7
» 3d View file 아빠뎁 21.02.07. 6
3 HorizontalWheelView file 두둥 21.02.07. 4
2 Wheel Spinner 두둥 21.02.07. 3
1 Unicorn File Picker file 두둥 21.02.07. 5