Skip to content

Repository files navigation

LoweImageView

一个简单的自定义view,能够在布局的时候指定imageview的宽高比例

Example

<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical">
<cn.sz.leonhardt.loweimageview.loweimageview_library.LoweImageView
android:layout_width="match_parent"android:layout_height="wrap_content"app:ratio="2.3"android:scaleType="fitXY"android:src="@drawable/cat"/>
</LinearLayout>

效果图

image

Usage

extends imageview 所以其他用法毫无区别

Building in IntelliJ

Via Gradle:

not now
compile ''

Building in Eclipse

Go home you're drunk

License

  • 你喜欢对这代码做什么就做什么吧【表情】

About

一个简单的自定义view,能够在布局的时候指定imageview的宽高比例

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages