Added Material Design ShapeableImageView for Circular ImageView

This commit is contained in:
h4h13 2020-02-24 11:12:09 +05:30
parent 6f7054c141
commit 437f73b1dc
14 changed files with 116 additions and 33 deletions

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (c) 2020 Hemanth Savarala.
~
~ Licensed under the GNU General Public License v3
~
~ This is free software: you can redistribute it and/or modify it under
~ the terms of the GNU General Public License as published by
~ the Free Software Foundation either version 3 of the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
~ without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
~ See the GNU General Public License for more details.
-->
<resources>
<declare-styleable name="RetroShapeableImageView">
<attr name="retroCornerSize" format="dimension" />
</declare-styleable>
</resources>

View file

@ -183,4 +183,19 @@
<item name="android:windowBackground">@drawable/splash</item>
<item name="android:statusBarColor">@android:color/transparent</item>
</style>
<style name="CircularShapeAppearance" parent="">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">22dp</item>
</style>
<style name="BigCircularShapeAppearance" parent="">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">56dp</item>
</style>
<style name="ExtraBigCircularShapeAppearance" parent="">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">78dp</item>
</style>
</resources>