MostafaGazar/CustomShapeImageView
MostafaGazar/CustomShapeImageView has 1,604 GitHub stars and 416 forks. GitHot measured 0 stars in 24 hours, -1 in 7 days, and -2 in 15 days. Last checked 2026-11-25 04:21 UTC. Last push 2021-07-18.
計測したスター増加
- 24時間
- 0
- 7日間
- -1
- 15日間
- -2
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
概要
SVGとPaintの図形を使ったカスタム形状のImageViewをサポートするライブラリ
制作・メディアREADME.md
オリジナル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.
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:
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

Libraries used
Developed by
- Mostafa Gazar - [email protected]
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:
関連プロジェクトを探す
読み込み中…
