FaceAware for Android Studio
this helps to auto zoom for face on ImageView.FaceAware is zoom library to face for Android.
Let me show how to use this library:
Setup
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.memishood:FaceAware-Android:1.2'
}
XML
<tr.com.emrememis.library.FaceAware
android:id="@+id/faceAware"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:face_elevation="25"/>
Params
Params | Value |
---|---|
app:face_elevation | int |
Kotlin
faceAware.setImageResource(R.drawable.test)
//or
faceAware.setImageDrawable(ActivityCompat.getDrawable(this,R.drawable.test))
//or
faceAware.setImageBitmap(BitmapFactory.decodeResource(resources,R.drawable.test))
//or
Glide.with(this).load(R.drawable.test).into(faceAware)
do not use android:src="image", use on your code.