All Projects → Theophrast → SquareImageView

Theophrast / SquareImageView

Licence: other
SquareImageView is a simple wrapper library for Android ImageView

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to SquareImageView

bpmn-layout-generators
Tools for generating missing BPMNDiagram elements in BPMN files
Stars: ✭ 27 (-3.57%)
Mutual labels:  shape, layout
bubble-layout
An Android ViewGroup that displays avatar bubbles... similar to the chat bubbles on Facebook Messenger.
Stars: ✭ 46 (+64.29%)
Mutual labels:  layout, imageview
smooth-corners
CSS superellipse masks using the Houdini API
Stars: ✭ 133 (+375%)
Mutual labels:  square, rectangle
Motion Shapeofview
Explain how to use MotionLayout with ShapeOfView
Stars: ✭ 236 (+742.86%)
Mutual labels:  shape, layout
View shaper
A library to help create shaped views and layouts in Android
Stars: ✭ 42 (+50%)
Mutual labels:  shape, layout
Shapeofview
Give a custom shape to any android view, Material Design 2 ready
Stars: ✭ 2,977 (+10532.14%)
Mutual labels:  shape, layout
flagpack
A lightweight flag icon toolkit for the web.
Stars: ✭ 51 (+82.14%)
Mutual labels:  square, rectangle
Rwidgethelper
Android UI 快速开发,专治原生控件各种不服
Stars: ✭ 996 (+3457.14%)
Mutual labels:  shape, imageview
Phidl
Python GDS layout and CAD geometry creation
Stars: ✭ 56 (+100%)
Mutual labels:  shape, layout
Music Cover View
Subclass of ImageView that 'morphs' into a circle shape and can rotates. Useful to be used as album cover in Music apps. 📀🎶
Stars: ✭ 239 (+753.57%)
Mutual labels:  shape, imageview
flexboxes
CSS flexbox framework with pure flexbox grid ability
Stars: ✭ 27 (-3.57%)
Mutual labels:  layout
EasyTextView
🌈 🍀支持Java和Xml设置Shape、IconFont、IconFont+String、Span等具有丰富Api的TextView
Stars: ✭ 71 (+153.57%)
Mutual labels:  shape
lipgloss
Style definitions for nice terminal layouts 👄
Stars: ✭ 5,453 (+19375%)
Mutual labels:  layout
Rainlayout
Constraintlayout based rain-animation view developed backed by Kotlin Coroutines.
Stars: ✭ 32 (+14.29%)
Mutual labels:  layout
whot
A Game API for the Nigerian Whot Card Game. https://github.com/mykeels/whot-server, https://github.com/CodeByOmar/whot-app
Stars: ✭ 51 (+82.14%)
Mutual labels:  square
react-super-styled
Responsive JSX layouts with Styled Components
Stars: ✭ 77 (+175%)
Mutual labels:  layout
HorizontalTimesLayout
Layout to display time slots in horizontal 24 hour format
Stars: ✭ 31 (+10.71%)
Mutual labels:  layout
form-bunch
Form-bunch is a component like plugin that make it easier to write form, you could add the most of components what you want to form-bunch for build various form.
Stars: ✭ 18 (-35.71%)
Mutual labels:  layout
react-native-bottom-bar
Fully customizable BottomBar with unique design shape for React Native.
Stars: ✭ 74 (+164.29%)
Mutual labels:  shape
theme-ui-native
Build consistent, themeable React Native apps based on constraint-based design principles
Stars: ✭ 67 (+139.29%)
Mutual labels:  layout

logo

SquareImageView

Description

Simple wrapper library for Android ImageView. If you need an always square or rectangular Imageview, SquareImageView is for you.

demo1 demo1


How to use SquareImageView?

Square shaped ImageView

From xml:

    <com.theophrast.ui.widget.SquareImageView
	     android:layout_width="match_parent"
	     android:layout_height="0dp"
	     android:scaleType="centerCrop"
	     android:src="@drawable/profile_01" />

Check the sample for more details.

Different ratios

For a rectangular shaped ImageView, set the hwRatio (height:width ratio) :

demo1

    <com.theophrast.ui.widget.SquareImageView
        android:layout_width="120dp"
        android:layout_height="0dp"
        android:scaleType="centerCrop"
        android:src="@drawable/img_02"
        app:hwRatio="0.6" />

Gradle dependency

Add it in your root build.gradle at the end of the repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

In your project level's build.gradle:

dependencies {
	...
	compile 'com.github.Theophrast:SquareImageView:1.0.1'
}

License

Copyright 2017 Janos Jakub

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].