siyamed/android-shape-imageview

How can i set border width dynamically and Change its color?

mnikunjm13 opened this issue · 0 comments

i tried this and also from xml default but not working

imageView0 = findViewById(R.id.imageView0);
imageView0.setOnTouchListener(this);
imageView0.setImageURI(uri);
imageView0.setBorderWidth(100);
imageView0.setBorderColor(Color.parseColor("#ff0000"));

<com.github.siyamed.shapeimageview.RoundedImageView
android:id="@+id/imageView0"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:scaleType="centerCrop"

        app:siBorderColor="@color/md_blue_400"
        app:siBorderWidth="41dp"
         />