项目作者: rezaiyan

项目描述 :
Arc Layout is a view group with which you can add a arc-shaped container in your layout.
高级语言: Kotlin
项目地址: git://github.com/rezaiyan/ArcLayout.git
创建时间: 2018-11-22T14:18:18Z
项目社区:https://github.com/rezaiyan/ArcLayout

开源协议:Apache License 2.0

下载


License

ArcLayout

Arc Layout is a view group with which you can add a arc-shaped container in your layout.
Two main variables are the direction and the curvature of the arc. Check the example below.







Usage

By this instructions you can add this library and I will explain how use it.

Add Maven to your root build.gradle

First of all, Add it to your root build.gradle at the end of repositories:

  1. allprojects {
  2. repositories {
  3. ...
  4. maven { url 'https://jitpack.io' }
  5. }
  6. }

Add Dependency

Add the dependency to your app build.gradle file:

  1. dependencies
  2. {
  3. implementation 'com.github.rezaiyan:arclayout:1.0.1'
  4. }
  1. <ir.alirezaiyan.arclayout.ArcRelativeLayout
  2. android:layout_width="match_parent"
  3. android:layout_height="match_parent"
  4. app:arc_bottom_cropCurve="cropConcave|cropConvex"
  5. app:arc_top_cropCurve="cropConcave|cropConvex"
  6. app:arc_bottom_height="80dp"
  7. app:arc_top_height="80dp"
  8. app:arc_bottom_position="true"
  9. app:arc_top_position="true">
  10. <!-- YOUR CONTENT -->
  11. </ir.alirezaiyan.arclayout.ArcRelativeLayout>

License

  1. Copyright 2016 Ali Rezaiyan, Inc.
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.