• Stars
    star
    289
  • Rank 143,419 (Top 3 %)
  • Language
    Java
  • Created over 8 years ago
  • Updated about 8 years ago

Reviews

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

Repository Details

android custom imageview, effective shape view

EffectiveShapeView

Download

A fast,flexible,powerful ImageView that supports rounded corners,circles,polygon.Used by shader which is fastest model of draw. This is based on RoundedImageView from Vince Mi, but more lightweight(under 400 line code).

Also has support for:

  • anti-aliased
  • Borders (with Colors)
  • Hardware acceleration
  • Decorations (with Direction)

Gradle

dependencies {
    compile 'com.library.tangxiaolv:effectiveshapeview:1.0.1'
}

Usage

<tangxiaolv.com.library.EffectiveShapeView
        android:id="@+id/shape"
        android:layout_width="72dp"
        android:layout_height="72dp"
        android:layout_marginLeft="72dp"
        android:layout_marginTop="16dp"
        android:layout_toRightOf="@id/container"
        android:background="#000000"
        android:scaleType="centerCrop"
        android:src="@drawable/android"
        app:shape="polygon"
        app:sides="6"/>

Changelog

v1.0.1

  • Fix set colorDrawable Invalid

v1.0.0

  • Initial release

License

Copyright 2016 - 2017 TangXiaoLv

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.