Skip to content
this helps to auto zoom for face on ImageView
Kotlin
Branch: master
Clone or download
memishood
memishood 1.2
Latest commit 543f278 Jan 14, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gradle 1.2 Jan 14, 2020
.idea 1.2 Jan 14, 2020
app 1.2 Jan 12, 2020
gradle/wrapper Initial commit Jan 11, 2020
library 1.2 Jan 12, 2020
.gitattributes Initial commit Jan 11, 2020
.gitignore Initial commit Jan 11, 2020
FaceAware-Android.iml Initial commit Jan 11, 2020
LICENSE Initial commit Jan 11, 2020
README.md Update README.md Jan 14, 2020
avatarExample.png
build.gradle 1.2 Jan 12, 2020
gradle.properties Initial commit Jan 11, 2020
gradlew Initial commit Jan 11, 2020
gradlew.bat Initial commit Jan 11, 2020
largeExample.jpg memishood Jan 11, 2020
local.properties Initial commit Jan 11, 2020
settings.gradle Initial commit Jan 11, 2020

README.md

FaceAware for Android Studio

License
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.


For better understanding

You can’t perform that action at this time.