• Stars
    star
    1,620
  • Rank 28,882 (Top 0.6 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 11 years ago
  • Updated over 3 years ago

Reviews

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

Repository Details

A library for supporting custom shaped ImageView(s) using SVGs and paint shapes

CustomShapeImageView Demo (Play Store Demo)

A library for supporting custom shaped ImageView(s) using SVGs and paint shapes

You can also use this gist https://gist.github.com/MostafaGazar/ee345987fa6c8924d61b if you do not want to add this library project to your codebase.

Build Status Android Arsenal Android Weekly PayPal Donations Coverage Status

Usage

<com.meg7.widget.CustomShapeImageView
    android:layout_width="64dp"
    android:layout_height="64dp"
    android:src="@drawable/sample"
    app:shape="circle"
    android:scaleType="centerCrop" />

<com.meg7.widget.CircleImageView
    android:layout_width="64dp"
    android:layout_height="64dp"
    android:src="@drawable/sample"
    android:scaleType="centerCrop" />

<com.meg7.widget.RectangleImageView
    android:layout_width="64dp"
    android:layout_height="64dp"
    android:src="@drawable/sample"
    android:scaleType="centerCrop" />

<com.meg7.widget.SvgImageView
    android:layout_width="64dp"
    android:layout_height="64dp"
    android:src="@drawable/sample"
    app:svg_raw_resource="@raw/shape_star"
    android:scaleType="centerCrop" />

Download

Add the customshapeimageview dependency to your build.gradle file:

Maven Central

dependencies {
    ...
    compile 'com.mostafagazar:customshapeimageview:1.0.4'
    ...
}

Proguard

If you're using proguard for code shrinking and obfuscation, make sure to add the following:

   -keep class com.meg7.widget.** { *; }

Screenshots

main

Libraries used

Developed by

License

Copyright 2013-2016 Mostafa Gazar

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.

Donations

If you'd like to support this library, you could make a donation here:

PayPal Donation

More Repositories

1

soas

Native Android "sample of all samples" for beginners and experienced, 14+, with focus on lollipop and Material
Java
673
star
2

Widgets

Custom Android UI widgets with samples
Java
75
star
3

StackView

A simple Android stack view, build in Kotlin
Kotlin
31
star
4

RevealSearchView

Sample project covering CircularRevealAnimation (lollipop+) and ClassicRevealAnimation!
Java
11
star
5

Emailer

General task plainer thingy with scheduled emails sender just as sample!
Java
10
star
6

lines-segmentation-pytorch

Jupyter Notebook
5
star
7

-Stackoverflow-InsetDividerItemDecoration

https://stackoverflow.com/questions/62417920/how-to-use-inset-dividers-in-recyclerview-using-androidx/62420137
Kotlin
4
star
8

DEGMA-Audio-Handler

Audio editor java windows desktop application. I started this project a couple years while I were in college. It is based on some open source projects like Jripper and Substance. It also uses JNI. Note: I am no longer working on it.
Java
4
star
9

line-reader

Using TensorFlow 2 and inspired by http://github.com/full-stack-deep-learning/fsdl-text-recognizer-project
Jupyter Notebook
3
star
10

CircularImageView-Xamarin-

Circular ImageView and Drawable, Xamarin Android library, and samples project
C#
3
star
11

datasets

Some datasets become less accessible after while, original hosts are down, etc... This repo holds some of these the datasets
2
star
12

MostafaGazar.github.io

HTML
2
star
13

MostafaGazar

1
star
14

keras-examples

Notebooks inspired by "Deep Learning with Python by Francois Chollet" in TensorFlow 2.0 and Keras
Jupyter Notebook
1
star
15

android_apps_decompiled_audits

Android apps decompiled and reviewed
1
star
16

mrw

1
star
17

gladiator

Jupyter Notebook
1
star
18

mobile-ml

1
star
19

iRacerController

A simple demo done in a couple hours, on how to send i-racer (https://www.sparkfun.com/products/11162) commands (http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Robotics/DaguCarCommands.pdf) via bluetooth from an Android device to define pre set track for i-racer car
Java
1
star