gFontaniva
gFontaniva

Reputation: 903

ImageView Android Image resourse resize

How I resize only a image in a ImageView without resize the ImageView?

I need something like this:

enter image description here

Is the same image, but with ImageView different sizes

Upvotes: 1

Views: 72

Answers (1)

kris larson
kris larson

Reputation: 30985

I've done something like this:

    <FrameLayout
        android:layout_width="40dp"
        android:layout_width="40dp"
        android:background="@drawable/bkgd_circle"/>

        <ImageView
            android:layout_width="24dp"
            android:layout_width="24dp"
            android:layout_gravity="center"
            android:src="@drawable/ic_person"/>

    </FrameLayout>

Upvotes: 1

Related Questions